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

Add different cache flags to ConcurrentOpenLongPairRangeSet for size() and toString() #5040

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

fxbing
Copy link
Contributor

@fxbing fxbing commented Aug 26, 2019

Fix #4895

Motivation

In ConcurrentOpenLongPairRangeSet, size() and toString() use the same cache flag.
So, after using one of size() and toString(), another can't get the correct result.

Modifications

  • add different cache flags to ConcurrentOpenLongPairRangeSet for size() and toString()
  • add test for it

@merlimat
Copy link
Contributor

run cpp tests
run java8 tests

@sijie
Copy link
Member

sijie commented Aug 26, 2019

run java8 tests

1 similar comment
@fxbing
Copy link
Contributor Author

fxbing commented Aug 27, 2019

run java8 tests

@fxbing
Copy link
Contributor Author

fxbing commented Aug 27, 2019

run java8 tests

3 similar comments
@sijie
Copy link
Member

sijie commented Aug 27, 2019

run java8 tests

@fxbing
Copy link
Contributor Author

fxbing commented Aug 28, 2019

run java8 tests

@fxbing
Copy link
Contributor Author

fxbing commented Aug 29, 2019

run java8 tests

@merlimat merlimat merged commit a4cfcd7 into apache:master Aug 29, 2019
@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Aug 29, 2019
@merlimat merlimat modified the milestones: 2.5.0, 2.4.2 Aug 29, 2019
@fxbing fxbing deleted the fix-#4895 branch August 30, 2019 03:06
wolfstudy pushed a commit that referenced this pull request Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PulsarBrokerStatsClientTest.testTopicInternalStats is flaky
4 participants