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

Running tests in parallel can sometimes result in port collision

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-rc1, 4.0
    • Test/unit
    • None

    Description

      When running unit tests with parallel execution we may sometimes notice the port collision. In this mode, test classes from the list get consecutive offsets which are added to native transport port, storage port and ssl storage port ( OffsetAwareConfigurationLoader ). However we add to the ports configured in test/conf/cassandra.yaml we as we can see we have the following default config:

      storage_port: 7012
      ssl_storage_port: 7011 

      This results in the situation that thread n has the same storage port as thread n+1 has ssl storage port. There are not much such tests, but we can see ConnectionTests failing frequently because of that. 

      The other problem is that OffsetAwareConfigurationLoader does not adjust native transport ssl port.


       

      Patch at https://github.com/apache/cassandra/pull/925

      Attachments

        1. screenshot-1.png
          280 kB
          Jacek Lewandowski

        Activity

          People

            jlewandowski Jacek Lewandowski
            jlewandowski Jacek Lewandowski
            Jacek Lewandowski
            Brandon Williams, Michael Semb Wever
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m