Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
The SSTableExportTest.testExportColumnsWithMetadata test will randomly fail (bogusly). Currently, the string check used won’t work if the JSON generated happened to order the elements in the array differently.
assertEquals( "unexpected serialization format for topLevelDeletion", "{\"markedForDeleteAt\":0,\"localDeletionTime\":0}", serializedDeletionInfo.toJSONString());
[junit] Testcase: testExportColumnsWithMetadata(org.apache.cassandra.tools.SSTableExportTest): FAILED [junit] unexpected serialization format for topLevelDeletion expected:<{"[markedForDeleteAt":0,"localDeletionTime]":0}> but was:<{"[localDeletionTime":0,"markedForDeleteAt]":0}> [junit] junit.framework.AssertionFailedError: unexpected serialization format for topLevelDeletion expected:<{"[markedForDeleteAt":0,"localDeletionTime]":0}> but was:<{"[localDeletionTime":0,"markedForDeleteAt]":0}> [junit] at org.apache.cassandra.tools.SSTableExportTest.testExportColumnsWithMetadata(SSTableExportTest.java:299) [junit]
Attachments
Attachments
Issue Links
- relates to
-
CASSANDRA-9065 SSTableExportTest can fail due broken assertion
- Resolved