Skip to content

Add back pending deletes#18698

Merged
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:fix/readd-pending-deletes
Jun 6, 2016
Merged

Add back pending deletes#18698
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:fix/readd-pending-deletes

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Jun 2, 2016

It was lost in #18602

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know previous behavior was to spawn a thread every time. I think it will be cleaner to return a boolean from the deletion methods to say whether the index deletion was succesful or is marked as pending and only spawn the thread for the latter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree this would be a good thing to do. As this touches a lot more places in the code, I will do a follow-up.

@bleskes
Copy link
Copy Markdown
Contributor

bleskes commented Jun 5, 2016

LGTM, with a minor suggestion. This introduces old behavior and I know that is what you wanted to achieve here. Long term I think we can clean up more things here (like shard level pending deletes which are really only processed as far as I can tell when index deletion happens).

Triggering the pending deletes logic was accidentally removed in the clean up PR elastic#18602.
@ywelsch ywelsch force-pushed the fix/readd-pending-deletes branch from 7467aac to 736d772 Compare June 6, 2016 13:12
@ywelsch ywelsch merged commit 0a8afa2 into elastic:master Jun 6, 2016
@ywelsch
Copy link
Copy Markdown
Contributor Author

ywelsch commented Jun 6, 2016

Thanks for the review, @bleskes. I've added a comment to hasUncompletedPendingDeletes() why it's needed.

jasontedor added a commit that referenced this pull request Jun 6, 2016
* master: (184 commits)
  Add back pending deletes (#18698)
  refactor matrix agg documentation from modules to main agg section
  Implement ctx.op = "delete" on _update_by_query and _reindex
  Close SearchContext if query rewrite failed
  Wrap lines at 140 characters (:qa projects)
  Remove log file
  painless: Add support for the new Java 9 MethodHandles#arrayLength() factory (see https://bugs.openjdk.java.net/browse/JDK-8156915)
  More complete exception message in settings tests
  Use java from path if JAVA_HOME is not set
  Fix uncaught checked exception in AzureTestUtils
  [TEST] wait for yellow after setup doc tests (#18726)
  Fix recovery throttling to properly handle relocating non-primary shards (#18701)
  Fix merge stats rendering in RestIndicesAction (#18720)
  [TEST] mute RandomAllocationDeciderTests.testRandomDecisions
  Reworked docs for index-shrink API (#18705)
  Improve painless compile-time exceptions
  Adds UUIDs to snapshots
  Add test rethrottle test case for delete-by-query
  Do not start scheduled pings until transport start
  Adressing review comments
  ...
@clintongormley clintongormley added :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. and removed :Cluster labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants