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

Running tests in parallel can sometimes result in port collision

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jlewandowski Jacek Lewandowski Assign to me
            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

                Slack

                  Issue deployment