Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
8.3, 8.4, 8.5, 8.6, 8.7, 9.0
Description
Parallel indexing does not make sense at moment when child documents are used.
The org.apache.solr.update.processor.DistributedUpdateProcessor checks at the end of the method doVersionAdd if Ulog caches should be refreshed.
This check will return true if any child document is included in the AddUpdateCommand.
If so ulog.openRealtimeSearcher(); is called, this call is very expensive, and executed in a synchronized block of the UpdateLog instance, therefore all other operations on the UpdateLog are blocked too.
Because every important UpdateLog method (add, delete, ...) is done using a synchronized block almost each operation is blocked.
This reduces multi threaded index update to a single thread behavior.
The described behavior is not depending on any option of the UpdateRequest, so it does not make any difference if 'waitFlush', 'waitSearcher' or 'softCommit' is true or false.
The described behavior makes the usage of ChildDocuments useless, because the performance is unacceptable.
Attachments
Issue Links
- causes
-
SOLR-15468 Regression: Adding _root_ schema field to existing index causes atomic update failures
- Resolved
- is caused by
-
SOLR-12638 Support atomic updates of nested/child documents for nested-enabled schema
- Resolved
- is related to
-
SOLR-15192 Atomic update error when RTG component is involved
- Resolved
- relates to
-
SOLR-15064 Atomic/partial updates to nested docs should not assume _route_ param is the root ID
- Closed
- requires
-
SOLR-15069 child doc transformer should make parentFilter obsolete
- Resolved
- links to