[ https://issues.apache.org/jira/browse/SOLR-15830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528772#comment-17528772 ]
ASF subversion and git services commented on SOLR-15830: -------------------------------------------------------- Commit 3e4e230bfcb1d8e9889a0e705f6c397fbad42d86 in solr's branch refs/heads/branch_9x from Andras Salamon [ https://gitbox.apache.org/repos/asf?p=solr.git;h=3e4e230bfcb ] SOLR-15830: Concurrent core reloads mess up commits when using Schema API (#462) Co-authored-by: Bence Szabo <szabo.bencesando...@gmail.com> (cherry picked from commit bdbb56cc0a38e964ba5c9c965c04c14e19cd7e67) > Concurrent core reloads mess up commits when using Schema API > ------------------------------------------------------------- > > Key: SOLR-15830 > URL: https://issues.apache.org/jira/browse/SOLR-15830 > Project: Solr > Issue Type: Bug > Reporter: Bence Szabó > Assignee: Andras Salamon > Priority: Major > Time Spent: 50m > Remaining Estimate: 0h > > When using Schema API SchemaManager class triggers a core reload here: > [https://github.com/apache/solr/blob/cfc953b6b906ef742bba57024d327fbde5d564c2/solr/core/src/java/org/apache/solr/schema/SchemaManager.java#L132] > As I understand this was introduced in SOLR-9832 and is useful to avoid > accidentally reloading to an older version of the config. The problem is that > in the solr core a listener is implemented to initiate a reload whenever a > config change happens in ZK, this can be found here: > [https://github.com/apache/solr/blob/cfc953b6b906ef742bba57024d327fbde5d564c2/solr/core/src/java/org/apache/solr/core/SolrCore.java#L3140] > When updating the schema using the Schema API both of these reloads get > triggered and this can result a strange bug, where not all the indexed > documents are visible if the indexing is started just after the schema API > returned. -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org