[ https://issues.apache.org/jira/browse/CASSANDRA-10928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Kjellman updated CASSANDRA-10928: ----------------------------------------- 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. {code} assertEquals( "unexpected serialization format for topLevelDeletion", "{\"markedForDeleteAt\":0,\"localDeletionTime\":0}", serializedDeletionInfo.toJSONString()); {code} {noformat} [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] {noformat} was: The SSTableExportTest.testExportColumnsWithMetadata test will randomly fail (bogusly). Currently, the string check used won’t work if the JSON generated happened to ordered the elements in the array differently. {code} assertEquals( "unexpected serialization format for topLevelDeletion", "{\"markedForDeleteAt\":0,\"localDeletionTime\":0}", serializedDeletionInfo.toJSONString()); {code} {noformat} [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] {noformat} > SSTableExportTest.testExportColumnsWithMetadata randomly fails > -------------------------------------------------------------- > > Key: CASSANDRA-10928 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10928 > Project: Cassandra > Issue Type: Bug > Components: Testing > Reporter: Michael Kjellman > > 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. > {code} > assertEquals( > "unexpected serialization format for topLevelDeletion", > "{\"markedForDeleteAt\":0,\"localDeletionTime\":0}", > serializedDeletionInfo.toJSONString()); > {code} > {noformat} > [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] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)