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

Running tests in parallel can sometimes result in port collision

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0, 4.0-rc1
    • Component/s: Test/unit
    • Labels:
      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

            • Assignee:
              jlewandowski Jacek Lewandowski
              Reporter:
              jlewandowski Jacek Lewandowski
              Authors:
              Jacek Lewandowski
              Reviewers:
              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 - 10m
                10m