Concurrent merge failed, ErrorLoggingConcurrentMergeScheduler

51 views
Skip to first unread message

maria abreu

unread,
Jan 10, 2018, 3:10:57 AM1/10/18
to RavenDB - 2nd generation document database
I am getting this warning every few seconds 

Message
Concurrent merge failed

Exception
Lucene.Net.Index.MergePolicy+MergeException: Exception of type 'Lucene.Net.Index.MergePolicy+MergeException' was thrown. ---> Lucene.Net.Index.CorruptIndexException: docs out of order (0 <= 0 )
   at Lucene.Net.Index.IndexWriter.HandleMergeException(Exception t, OneMerge merge)
   at Lucene.Net.Index.IndexWriter.Merge(OneMerge merge)
   at Lucene.Net.Index.ConcurrentMergeScheduler.MergeThread.Run()
   --- End of inner exception stack trace ---
   at Lucene.Net.Index.ConcurrentMergeScheduler.HandleMergeException(Exception exc)
   at Raven.Database.Indexing.ErrorLoggingConcurrentMergeScheduler.HandleMergeException(Exception exc) in C:\Builds\RavenDB-Stable-3.5\Raven.Database\Indexing\ErrorLoggingConcurrentMergeScheduler.cs:line 15

Logged
a minute ago (01/09/18, 2:13pm)

Level
Warn

Logger
Raven.Database.Indexing.ErrorLoggingConcurrentMergeScheduler

- We are using RavenDB-Build-35215, can someone please tell me what does the warning mean, how is affecting the server and how to fix it ?


Oren Eini (Ayende Rahien)

unread,
Jan 10, 2018, 3:13:20 AM1/10/18
to ravendb
Try reset the index, it should fix this issue

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

maria abreu

unread,
Jan 11, 2018, 8:59:37 AM1/11/18
to RavenDB - 2nd generation document database
The logs don't show me the database or the index and I enable admin logging to get more info and this is what I got.
  {
    "Level": "Warn",
    "Database": null,
    "TimeStamp": "2018-01-11T02:23:21.8103973Z",
    "Message": "Concurrent merge failed",
    "LoggerName": "Raven.Database.Indexing.ErrorLoggingConcurrentMergeScheduler",
    "Exception": "Lucene.Net.Index.MergePolicy+MergeException: Exception of type 'Lucene.Net.Index.MergePolicy+MergeException' was thrown. ---> Lucene.Net.Index.CorruptIndexException: docs out of order (0 <= 0 )\r\n   at Lucene.Net.Index.IndexWriter.HandleMergeException(Exception t, OneMerge merge)\r\n   at Lucene.Net.Index.IndexWriter.Merge(OneMerge merge)\r\n   at Lucene.Net.Index.ConcurrentMergeScheduler.MergeThread.Run()\r\n   --- End of inner exception stack trace ---\r\n   at Lucene.Net.Index.ConcurrentMergeScheduler.HandleMergeException(Exception exc)\r\n   at Raven.Database.Indexing.ErrorLoggingConcurrentMergeScheduler.HandleMergeException(Exception exc) in C:\\Builds\\RavenDB-Stable-3.5\\Raven.Database\\Indexing\\ErrorLoggingConcurrentMergeScheduler.cs:line 15",
    "StackTrace": "   at Raven.Database.Server.Connections.AdminLogsConnectionState.Send(LogEventInfo logEvent)\r\n   at Raven.Database.Server.Connections.AdminLogsTarget.Write(LogEventInfo logEvent)\r\n   at Raven.Abstractions.Logging.LoggerExecutionWrapper.Log[TException](LogLevel logLevel, Func`1 messageFunc, TException exception)\r\n   at Raven.Database.Indexing.ErrorLoggingConcurrentMergeScheduler.HandleMergeException(Exception exc)\r\n   at Lucene.Net.Index.ConcurrentMergeScheduler.MergeThread.Run()\r\n   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()\r\n"
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Jan 11, 2018, 9:20:21 AM1/11/18
to ravendb
How many indexes do you have?
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Message has been deleted

maria abreu

unread,
Jan 11, 2018, 9:35:18 AM1/11/18
to RavenDB - 2nd generation document database
191 databases each with 32 indexes, 1 database with 17 indexes, and 13 databases each with 4 indexes.

Tal Weiss

unread,
Jan 11, 2018, 10:43:14 AM1/11/18
to RavenDB - 2nd generation document database
i'm checking what is the best approach to locate the faulty index.

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Tal Weiss l Core Team Developer Mobile:+972-54-802-4849

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811l Skype: talweiss1982

RavenDB paving the way to "Data Made Simplehttp://ravendb.net/ 

Tal Weiss

unread,
Jan 11, 2018, 11:31:29 AM1/11/18
to RavenDB - 2nd generation document database
Can you check in the studio if any of your databases are showing stale indexes under Status->State->Stale Indexes
And then out of those indexes check per database if there is an index that is lagging behind the others in term of its Last indexed Etag (in the bottom of the stats there is a list of index stats).
I would expect the erroring index to have much smaller Last indexed Etag compare to its sibling stale indexes.



Reply all
Reply to author
Forward
0 new messages