Skip to content

LongsLongEncodingReader: Implement "duplicate", fixing concurrency bug.#11098

Merged
gianm merged 1 commit intoapache:masterfrom
gianm:fix-long-decoding-thread-safety
Apr 13, 2021
Merged

LongsLongEncodingReader: Implement "duplicate", fixing concurrency bug.#11098
gianm merged 1 commit intoapache:masterfrom
gianm:fix-long-decoding-thread-safety

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 12, 2021

Regression introduced in #11004 due to overzealous optimization. Even though
we replaced stateful usage of ByteBuffer with stateless usage of Memory, we
still need to create a new object on "duplicate" due to semantics of setBuffer.

This issue was causing LongFilteringTest.testMultithreaded to be flaky. I didn't
add new tests for this issue, because LongFilteringTest.testMultithreaded already
covers it — it's just that the flaky test retrier was too zealous in retrying. Maybe
we should tune it down a bit (perhaps create a list of known-flaky tests and
don't retry others?)

Credit to @clintropolis for noticing this.

Regression introduced in apache#11004 due to overzealous optimization. Even though
we replaced stateful usage of ByteBuffer with stateless usage of Memory, we
still need to create a new object on "duplicate" due to semantics of setBuffer.
@gianm gianm added the Bug label Apr 12, 2021
Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

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

🤘

@gianm gianm merged commit c8e3940 into apache:master Apr 13, 2021
@gianm gianm deleted the fix-long-decoding-thread-safety branch April 13, 2021 15:01
@clintropolis clintropolis added this to the 0.22.0 milestone Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants