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

CASSANDRA-16900 - ArrayCell#unsharedHeapSizeExcludingData includes data twice #1176

Closed
wants to merge 1 commit into from

Conversation

dcapwell
Copy link
Contributor

No description provided.

@@ -43,7 +45,7 @@ public BufferCell(ColumnMetadata column, long timestamp, int ttl, int localDelet
{
super(column);
assert !column.isPrimaryKeyColumn();
assert column.isComplex() == (path != null);
assert column.isComplex() == (path != null) : format("Column %s.%s(%s: %s) isComplex: %b with cellpath: %s", column.ksName, column.cfName, column.name, column.type.toString(), column.isComplex(), path);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a nit from me; asserts should have messages to help (not needed for the patch, but is useful)

@@ -78,7 +78,7 @@ public NativeCell(NativeAllocator allocator,
assert column.isComplex() == (path != null);
if (path != null)
{
assert path.size() == 1;
assert path.size() == 1 : String.format("Expected path size to be 1 but was not; %s", path);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a nit from me; asserts should have messages to help (not needed for the patch, but is useful)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants