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

JDK17 - fix nodetool_test.TestNodetool.test_sjk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • CI
    • None

    Description

       
      https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/2321/workflows/de1f521d-c5cb-4ddd-bc45-9ec71b577bf3/jobs/19923/tests
       

      AssertionError: Expected 'SJK hh' output assert False == True self = <nodetool_test.TestNodetool object at 0x7f9ab6d95908> @since('4.0') def test_sjk(self): """ Verify that SJK generally works. """ cluster = self.cluster cluster.populate([1]).start() node = cluster.nodelist()[0] out, err, _ = node.nodetool('sjk --help') logger.debug(out) hasPattern = False for line in out.split(os.linesep): if " ttop [Thread Top] Displays threads from JVM process" == line: hasPattern = True assert hasPattern == True, "Expected help about SJK ttop" out, err, _ = node.nodetool('sjk') logger.debug(out) hasPattern = False for line in out.split(os.linesep): if " ttop [Thread Top] Displays threads from JVM process" == line: hasPattern = True assert hasPattern == True, "Expected help about SJK ttop" out, err, _ = node.nodetool('sjk hh -n 10 --live') logger.debug(out) hasPattern = False for line in out.split(os.linesep): if re.match('.*Instances.*Bytes.*Type.*', line): hasPattern = True > assert hasPattern == True, "Expected 'SJK hh' output" E AssertionError: Expected 'SJK hh' output E assert False == True nodetool_test.py:482: AssertionError

      Attachments

        Activity

          People

            e.dimitrova Ekaterina Dimitrova
            e.dimitrova Ekaterina Dimitrova
            Ekaterina Dimitrova
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: