Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUCENE-8639: Prevent new threadstates from being created while we cut over to a new delete queue #535

Merged
merged 1 commit into from
Jan 16, 2019

Conversation

s1monw
Copy link
Member

@s1monw s1monw commented Jan 15, 2019

This prevents an edge case where suddenly a lot of threads start indexing
while we carry over sequence ids from the previous to the new delete queue.
We now lock creation of new thread states for a very short time until we created and assigned
a new delete queue.

@mikemccand
Copy link
Member

LGTM -- sneaky.

@mikemccand
Copy link
Member

I like the test case!!

@s1monw s1monw force-pushed the fix_seq_no_accounting branch 2 times, most recently from da1531d to 43603e7 Compare January 16, 2019 15:35
… over to a new delete queue

This prevents an edge case where suddenly a lot of threads start indexing
while we carry over sequence ids from the previous to the new delete queue.
We now lock creation of new thread states for a very short time until we created and assigned
a new delete queue.
@s1monw s1monw merged commit e35adf6 into apache:master Jan 16, 2019
s1monw added a commit that referenced this pull request Jan 16, 2019
… over to a new delete queue (#535)

This prevents an edge case where suddenly a lot of threads start indexing
while we carry over sequence ids from the previous to the new delete queue.
We now lock creation of new thread states for a very short time until we created and assigned
a new delete queue.
s1monw added a commit that referenced this pull request Jan 16, 2019
… over to a new delete queue (#535)

This prevents an edge case where suddenly a lot of threads start indexing
while we carry over sequence ids from the previous to the new delete queue.
We now lock creation of new thread states for a very short time until we created and assigned
a new delete queue.
msokolov pushed a commit to msokolov/lucene-solr that referenced this pull request Feb 4, 2019
… over to a new delete queue (apache#535)

This prevents an edge case where suddenly a lot of threads start indexing
while we carry over sequence ids from the previous to the new delete queue.
We now lock creation of new thread states for a very short time until we created and assigned
a new delete queue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants