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

in-jvm dtest support for subnets doesn't change seed provider subnet

    XMLWordPrintableJSON

    Details

    • Bug Category:
      Correctness - Test Failure
    • Severity:
      Normal
    • Complexity:
      Low Hanging Fruit
    • Discovered By:
      Unit Test
    • Platform:
      All
    • Impacts:
      None
    • Since Version:
    • Test and Documentation Plan:
      Hide

      To test, back-ported the GossipSettlesTest and made it use a non-zero subnet, which will fail if the patch is not applied. See GitHub PRs for patch details.

      Show
      To test, back-ported the GossipSettlesTest and made it use a non-zero subnet, which will fail if the patch is not applied. See GitHub PRs for patch details.

      Description

      When using the `withSubnet` function on AbstractCluster.Builder, the newly-selected subnet is never used when setting up the SeedProvider in the constructor of InstanceConfig, which is hard-coded to 127.0.0.1. Because of this, clusters with any subnet other than 0, and gossip enabled, cannot start up as they have no seed provider in their subnet and what should be the seed (instance 1) doesn't think it is the seed.

        Attachments

          Activity

            People

            • Assignee:
              drohrer Doug Rohrer
              Reporter:
              drohrer Doug Rohrer
              Authors:
              Doug Rohrer
              Reviewers:
              David Capwell, Yifan Cai
            • 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 - 1h 20m
                1h 20m