Skip to content
Browse files
Set seed port to 7001 during upgrade to > 3.11
Patch by brandonwilliams, reviewed by Ekaterina Dimitrova for CASSANDRA-15314
  • Loading branch information
driftx committed Mar 18, 2020
1 parent 981ac73 commit ed55a4961f424f8456e125fdeb70ca644e8572c9
Showing 1 changed file with 8 additions and 1 deletion.
@@ -342,6 +342,13 @@ def upgrade_scenario(self, populate=True, create_schema=True, rolling=False, aft

# upgrade through versions
for version_meta in self.test_version_metas[1:]:
if > '3.11' and internode_ssl:
seeds =[]
for seed in cluster.seeds:
seeds.append(seed.ip_addr + ':7001')
logger.debug("Forcing seeds to 7001 for internode ssl")
cluster.seeds = seeds

for num, node in enumerate(self.cluster.nodelist()):
# sleep (sigh) because driver needs extra time to keep up with topo and make quorum possible
# this is ok, because a real world upgrade would proceed much slower than this programmatic one
@@ -453,7 +460,7 @@ def upgrade_to_version(self, version_meta, partial=False, nodes=None, internode_
logger.debug('Starting %s on new version (%s)' % (, version_meta.version))
# Setup log4j / logback again (necessary moving from 2.0 -> 2.1):
node.start(wait_other_notice=240, wait_for_binary_proto=True)
node.start(wait_other_notice=400, wait_for_binary_proto=True)
node.nodetool('upgradesstables -a')

def _log_current_ver(self, current_version_meta):

0 comments on commit ed55a49

Please sign in to comment.