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

Synced flush backport #11417

Merged
merged 8 commits into from May 30, 2015
Merged

Synced flush backport #11417

merged 8 commits into from May 30, 2015

Conversation

brwe
Copy link
Contributor

@brwe brwe commented May 29, 2015

Was relatively unproblematic, only SyncedFlushService was a little hairy

@@ -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);
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

++

@bleskes
Copy link
Contributor

bleskes commented May 29, 2015

Thx @brwe for picking this up. Left some minor comments

@spinscale
Copy link
Contributor

did not spot any huge differences on my side, except the same question @bleskes had about removing the FLUSH executor...

apart from that LGTM

@brwe
Copy link
Contributor Author

brwe commented May 29, 2015

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.

@brwe
Copy link
Contributor Author

brwe commented May 29, 2015

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) {
Copy link
Contributor

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.

@bleskes
Copy link
Contributor

bleskes commented May 29, 2015

LGTM. Left one little comment. Feel free to push.

brwe added a commit that referenced this pull request May 30, 2015
@brwe brwe merged commit 8378f98 into elastic:1.x May 30, 2015
@clintongormley clintongormley added >feature :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. v1.6.0 labels May 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. >feature v1.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants