title: Issue num_tokens on cassandra after perform a node restore - Cassandra 3.11.10 and 3.11.11
body: <p>After upgrading from 3.0.13 to 3.11.10 I'm having issue when I retsore the data from the node. After the restore is done it changes the number of tokens from 256 to 512.In cassandra.yaml it still num_token: 256, so I have no idea what's going on here.</p>
  <p>These are the steps I'm performing</p>
  <pre><code>rm -rf /var/lib/cassandra/data/*
  rm -rf /var/lib/cassandra/commitlog/*
  rm -rf /var/lib/cassandra/saved_caches/*
  rm -rf /var/lib/cassandra/hints/*
  rm -rf /var/log/cassandra/*
  tar -xvf $BACKUP_LOC/$BACKUP_NAME.tar -C /
  find ${DATA_DIR} -mindepth 2 -path &quot;*/snapshots/${BACKUP_NAME}/*&quot; -type f \-exec bash -c 'dir={} &amp;&amp; cd ${dir%/*} &amp;&amp; mv {} ../..' \;
  
  nodetool -u $NODETOOL_USR -pw $NODETOOL_PASSWD -h $(hostname) refresh $keyspace $table --ssl&quot; &gt;&gt;$BACKUP_LOC/nodetool_refresh_commands.sh
  </code></pre>
  <p>When I restart the node after perfoming the steps above it changes the tokens from 256 to 512.</p>
  <p>ERROR:</p>
  <blockquote>
  <p>ERROR [main] 2021-10-07 15:16:24,060 CassandraDaemon.java:803 - Fatal configuration error
  org.apache.cassandra.exceptions.ConfigurationException: Cannot change the number of tokens from 512 to 256
  at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:1102) ~[apache-cassandra-3.11.11.jar:3.11.11]
  at org.apache.cassandra.service.StorageService.initServer(StorageService.java:760) ~[apache-cassandra-3.11.11.jar:3.11.11]
  at org.apache.cassandra.service.StorageService.initServer(StorageService.java:694) ~[apache-cassandra-3.11.11.jar:3.11.11]
  at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:395) [apache-cassandra-3.11.11.jar:3.11.11]
  at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:633) [apache-cassandra-3.11.11.jar:3.11.11]
  at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:786) [apache-cassandra-3.11.11.jar:3.11.11]
  INFO  [StorageServiceShutdownHook] 2021-10-07 15:16:24,064 HintsService.java:209 - Paused hints dispatch
  INFO  [StorageServiceShutdownHook] 2021-10-07 15:16:24,064 Gossiper.java:1683 - Announcing shutdown</p>
  </blockquote>
  <p>Any ideas on it?
  Thanks,</p>