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

Don't write recoveryType twice #11347

Merged
merged 1 commit into from May 26, 2015
Merged

Don't write recoveryType twice #11347

merged 1 commit into from May 26, 2015

Conversation

brwe
Copy link
Contributor

@brwe brwe commented May 26, 2015

This caused scary warnings in the logs
Message not fully read (request) for [157] and action [internal:index/shard/recovery/start_recovery], resetting.

closes #11335

Must have happened while backporting #11179

@bleskes
Copy link
Contributor

bleskes commented May 26, 2015

LGTM. I wonder if we can catch this kind of thing in our BWC tests.. (unconsumed left over).

This caused scary warnings in the logs
Message not fully read (request) for [157] and action [internal:index/shard/recovery/start_recovery], resetting

closes elastic#11335
@brwe
Copy link
Contributor Author

brwe commented May 26, 2015

@bleskes it is not really a backwards compat problem, it was for same versions as well. Would be great to always check that but I have no smart idea how.
I found that I do not have to just read something and catch the EOF but instead assertThat(in.read(), equalTo(-1)); Still looks good?

@bleskes
Copy link
Contributor

bleskes commented May 26, 2015

yeah looks good. We should probably look at the place that logs the warning message and make it assert that everything is consumed (with some escape root for actions where this is expected - I remember discussing using it as a temporary solution in a mixed version cluster). /cc @spinscale

brwe added a commit that referenced this pull request May 26, 2015
recovery: don't write recoveryType twice
@brwe brwe merged commit 987b9bd into elastic:1.x May 26, 2015
@clintongormley clintongormley changed the title recovery: don't write recoveryType twice Don't write recoveryType twice May 29, 2015
@clintongormley clintongormley added v1.6.0 >non-issue :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. >bug and removed >non-issue labels May 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Recovery Anything around constructing a new shard, either from a local or a remote source. v1.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants