[
https://issues.apache.org/jira/browse/CASSANDRA-7201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benedict updated CASSANDRA-7201:
--------------------------------
Attachment: 7201.txt
Counters store data in their value() context written in big endian format, so
this was breaking counter context processing when they were read back from
native cells. Rather than convert all native byte buffers to big endian, I've
attached a patch that swaps the endianness of counter value only.
> Regression: ColumnFamilyStoreTest, NativeCellTest, SSTableMetadataTest unit
> tests on 2.1
> ----------------------------------------------------------------------------------------
>
> Key: CASSANDRA-7201
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7201
> Project: Cassandra
> Issue Type: Test
> Components: Tests
> Reporter: Michael Shuler
> Assignee: Benedict
> Labels: qa-resolved
> Fix For: 2.1 rc1
>
> Attachments: 7201.txt
>
>
> http://cassci.datastax.com/job/cassandra-2.1_utest/252/testReport/
> {noformat}
> REGRESSION:
> org.apache.cassandra.db.ColumnFamilyStoreTest.testSliceByNamesCommandOnUUIDTypeSCF
> Error Message:
> null
> Stack Trace:
> java.lang.NullPointerException
> at
> org.apache.cassandra.db.ColumnFamilyStoreTest.testSliceByNamesCommandOnUUIDTypeSCF(ColumnFamilyStoreTest.java:992)
> REGRESSION: org.apache.cassandra.db.NativeCellTest.testCells
> Error Message:
> null
> Stack Trace:
> java.lang.IllegalArgumentException
> at java.nio.Buffer.position(Buffer.java:236)
> at
> org.apache.cassandra.db.context.CounterContext.updateDigest(CounterContext.java:659)
> at
> org.apache.cassandra.db.NativeCounterCell.updateDigest(NativeCounterCell.java:139)
> at org.apache.cassandra.db.NativeCellTest.test(NativeCellTest.java:148)
> at
> org.apache.cassandra.db.NativeCellTest.testCells(NativeCellTest.java:132)
> REGRESSION:
> org.apache.cassandra.io.sstable.SSTableMetadataTest.testLegacyCounterShardTracking
> Error Message:
> null
> Stack Trace:
> junit.framework.AssertionFailedError:
> at
> org.apache.cassandra.io.sstable.SSTableMetadataTest.testLegacyCounterShardTracking(SSTableMetadataTest.java:306)
> {noformat}
> All 3 tests bisect to:
> {noformat}
> commit 1ac72f637cdfc9876d2d121302061e46ac104bf8
> Author: Jonathan Ellis <[email protected]>
> Date: Thu May 8 16:44:35 2014 -0500
> prefer MemoryUtil.getByteBuffer to JNA Native.getDirectByteBuffer;
> specify native endian on the former
> patch by bes; reviewed by jbellis for CASSANDRA-6575
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)