-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Tighten the CountedBitSet class #27632
Conversation
This commit addresses the missed comments from elastic#27547.
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.
I left one suggestion but either way LGTM.
@@ -79,6 +82,7 @@ public void testReleaseInternalBitSet() { | |||
assertThat(countedBitSet.isInternalBitsetReleased(), equalTo(true)); | |||
assertThat(countedBitSet.length(), equalTo(numBits)); | |||
assertThat(countedBitSet.cardinality(), equalTo(numBits)); | |||
assertThat(countedBitSet.ramBytesUsed(), lessThan(ramBytesUsedWithBitSet)); |
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.
Make the constant package private and assert that the size here is BASE_RAM_BYTES_USED
?
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.
I pushed 8dbf71d
Thanks @dnhatn! |
Thanks @jasontedor. |
Pinging @elastic/es-distributed |
Sorry @jasontedor for missing your comments in #27547. This PR addresses those comments.