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

Fix GCS Mock Broken Handling of some Blobs #50666

Merged
merged 3 commits into from
Jan 6, 2020

Conversation

original-brownbear
Copy link
Member

@original-brownbear original-brownbear commented Jan 6, 2020

We were incorrectly handling blobs starting in \r\n which broke
tests randomly when blobs started on these. Fixed by never skipping two lines of \r\n in a row and instead interpreting the second \r\n as valid bytes.

Relates #49429 (maybe this was another cause of random blob upload failures leading us to interpret blob \r\n as empty).
Example failure https://gradle-enterprise.elastic.co/s/zk2ogav6iag6u/console-log?anchor=3506

We were incorrectly handling blobs starting in `\r\n` which broke
tests randomly when blobs started on these.

Relates elastic#49429
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.0.0 v7.6.0 labels Jan 6, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Armin!

@original-brownbear
Copy link
Member Author

Thanks Tanguy!

@original-brownbear original-brownbear merged commit 08ae313 into elastic:master Jan 6, 2020
@original-brownbear original-brownbear deleted the fix-49429 branch January 6, 2020 16:52
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jan 6, 2020
* Fix GCS Mock Broken Handling of some Blobs

We were incorrectly handling blobs starting in `\r\n` which broke
tests randomly when blobs started on these.

Relates elastic#49429
original-brownbear added a commit that referenced this pull request Jan 6, 2020
* Fix GCS Mock Broken Handling of some Blobs

We were incorrectly handling blobs starting in `\r\n` which broke
tests randomly when blobs started on these.

Relates #49429
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
* Fix GCS Mock Broken Handling of some Blobs

We were incorrectly handling blobs starting in `\r\n` which broke
tests randomly when blobs started on these.

Relates elastic#49429
@original-brownbear original-brownbear restored the fix-49429 branch August 6, 2020 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test Issues or PRs that are addressing/adding tests v7.6.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants