Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-10928

SSTableExportTest.testExportColumnsWithMetadata randomly fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.x
    • Legacy/Testing
    • 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

        1. CASSANDRA_10928_2.1.diff
          1 kB
          Sankalp Kohli

        Issue Links

          Activity

            People

              kohlisankalp Sankalp Kohli
              mkjellman Michael Kjellman
              Sankalp Kohli
              Jason Brown
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: