[
https://issues.apache.org/jira/browse/SOLR-13709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16946032#comment-16946032
]
Chris M. Hostetter commented on SOLR-13709:
-------------------------------------------
it sounds like you've identified a legitimate bug _in the code_:
* "deleting a collection while core reloads are in progress causes errors"
...but your suggested change is _solely for the test_:
* "wait an artificial amount of time after indexing documents just in case it's
still reloading coes"
If the bug is in the code, then the code should be fixed to account for this
possibility and not produce an error. -- why not fix the schema APIs zkWatcher
to deal with core reload in a better way that won't produce these kinds of
errors ...my impression from your earlier comments was that if a *user* sent a
core RELOAD command there are protections to prevent that command against these
kinds of concurrency errors (while the CoreDescriptor is null) at the
collections API level, correct? so why not leverage those same
APIs/protections?
----
However.... I'd like to be very clear about something: *What you are
describing does _not_ match what i see when reviewing the log messages in the
attached {{apache_Lucene-Solr-Tests-8.x_449.log.txt}} file*.
It's very possible you have identified an _additional_ bug -- but it's hard to
be certain if that's true, since you haven't attached any log files
demonstrating what you are describing.
AFAICT In the currently attached {{apache_Lucene-Solr-Tests-8.x_449.log.txt}}
log file, I don't see any evidence that the "client" has sent a DELETE command
for the collection -- from the messages that are logged it seems like the
"schema api zkWatcher callback" triggers a reload (which fails with NPE) _while
the core is still loading for the first time_. Do you see any evidence in that
log file that i'm overlooking? (which indicates a DELETE has been requested?)
In the case you described the "error" may not be that bad (misleading error
messages for a collection right before it's deleted) but if in fact it's
possible for this Schema zkWatcher to fail w/NPE _while a core is
(independently) re/loading that means that a schema API call could result in a
a schema modification that is ignored by one or more nodes, which could
continute using the old schema.
> Race condition on core reload while core is still loading?
> ----------------------------------------------------------
>
> Key: SOLR-13709
> URL: https://issues.apache.org/jira/browse/SOLR-13709
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Chris M. Hostetter
> Assignee: Erick Erickson
> Priority: Major
> Attachments: apache_Lucene-Solr-Tests-8.x_449.log.txt
>
>
> A recent jenkins failure from {{TestSolrCLIRunExample}} seems to suggest that
> there may be a race condition when attempting to re-load a SolrCore while the
> core is currently in the process of (re)loading that can leave the SolrCore
> in an unusable state.
> Details to follow...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]