This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
[PDS-10{3841,4895}] Part 5: Don't Reuse Streams In The Stream Store #4444
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generate changelog in
|
(This is an unforked version of #4443 plus tests) |
OStevan
reviewed
Nov 26, 2019
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.
Thanks for asking me to review.
atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/StreamTest.java
Outdated
Show resolved
Hide resolved
atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/StreamTest.java
Outdated
Show resolved
Hide resolved
atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/StreamTest.java
Show resolved
Hide resolved
atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/StreamTest.java
Outdated
Show resolved
Hide resolved
atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/StreamTest.java
Show resolved
Hide resolved
jeremyk-91
commented
Nov 26, 2019
atlasdb-tests-shared/src/test/java/com/palantir/atlasdb/schema/stream/StreamTest.java
Outdated
Show resolved
Hide resolved
OStevan
approved these changes
Nov 26, 2019
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.
Looks good.
felixdesouza
approved these changes
Nov 26, 2019
Thanks for the reviews! |
Released 0.174.2 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks to @jackwickham and @j-baker for helping to puzzle through this issue!
Goals (and why):
storeStreams
plural, and read theSha256Hash
data from the stream for whatever reason. Previously, this would invokestoreBlocksAndGetHashlessMetadata
multiple times. But since the input stream was already consumed, it either returns nothing (e.g. if usingByteArrayInputStream
), or throws.Implementation Description (bullets):
Testing (What was existing testing like? What have you done to improve it?):
Added two new tests validating
Concerns (what feedback would you like?):
Where should we start reviewing?:
StreamTest
Priority (whenever / two weeks / yesterday): yesterday