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
Synced flush backport #11417
Synced flush backport #11417
Conversation
@@ -358,7 +410,7 @@ public void onResponse(PreSyncedFlushResponse response) { | |||
|
|||
@Override | |||
public void onFailure(Throwable e) { | |||
logger.trace("{} error while performing pre synced flush on [{}], skipping", e, shardId, shard); | |||
logger.trace("{} error while performing pre synced flush on [{}], skipping", shardId, e, shard); |
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.
this looks flipped and does not log the exception?
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.
++
Thx @brwe for picking this up. Left some minor comments |
did not spot any huge differences on my side, except the same question @bleskes had about removing the FLUSH executor... apart from that LGTM |
ok, all done. I let the bwc tests run and found that there we also have to check if it is a bwc test or not when we call indexRandom(). pushed a fix for that. |
6456fdd
to
1ca1d73
Compare
1ca1d73
to
cde4b66
Compare
fixed the bwc test and added checks to make sure we actually have at least one current version node when we run the bwc tests. want to take another look? |
// bwc test | ||
if (cluster() instanceof CompositeTestCluster) { | ||
CompositeTestCluster compositeTestCluster = (CompositeTestCluster) cluster(); | ||
if (compositeTestCluster.numNewDataNodes() > 0) { |
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 add a comment as to why this is needed here? I'm not sure it's trivial to figure out.
LGTM. Left one little comment. Feel free to push. |
cde4b66
to
d22e134
Compare
Was relatively unproblematic, only SyncedFlushService was a little hairy