Skip to content

Conversation

@rice668
Copy link

@rice668 rice668 commented Mar 7, 2018

…e resultLock

What is the purpose of the change

Currently MaterializedCollectStreamResult#retrievePage checks page range and calls snapshot.subList() without holding resultLock. resultLock should be taken. If we do not lock, we might see the stale data.

Brief change log

Add synchronized to protect it.

@twalthr
Copy link
Contributor

twalthr commented Mar 12, 2018

Thank you @zhangminglei. Merging...

@asfgit asfgit closed this in 7d837a3 Mar 12, 2018
asfgit pushed a commit that referenced this pull request Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants