-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Optimize indexing for the autogenerated ID append-only case #20211
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
Changes from all commits
9e75221
7561a1c
43841fb
87141e0
ad74feb
aaa35a4
9e9c2c0
5b0c65c
e89a814
46f4cad
f43d783
16b980f
06851f8
bdd5a69
23ca5b9
2fa9465
39e513e
305198d
836351d
8d52083
a37c6c2
b96ee54
34f97de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -722,6 +722,7 @@ void retry(Exception failure) { | |
| return; | ||
| } | ||
| setPhase(task, "waiting_for_retry"); | ||
| request.onRetry(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we add checks in the unit tests of this class (TransportReplicationActionTests) to make sure this is called?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did my very best, can you check again |
||
| final ThreadContext.StoredContext context = threadPool.getThreadContext().newStoredContext(); | ||
| observer.waitForNextChange(new ClusterStateObserver.Listener() { | ||
| @Override | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we put an extra validation that's explicit for the opType check - i.e.,
if (opType() != OpType.INDEX && id == 1) addValidationError("an id is required for a " + opType() + " operation")(preferably next the currentif (opType() == OpType.CREATE) {line). I think people will be confused by this message if they use create and we should also catch the delete case, while at it.