Not sure if this is bug with cassandra 4.0.5 but when i remove data directory and clean up all other directory and try to join node to cluster i get below error. 4.0.4 seem to be works fine
DEBUG [main] 2022-09-09 09:05:57,351 StorageService.java:2600 - Node l2r1cassan002.abc.xyz.com/10.11.180.70:7600 state bootstrapping, token [7440677904722156112, 202341339740687413, -4608008619501212021, 4549633523338081274, -7205177367714369394, -1733332418442686603, 2714110185983303464, -8795181920228268032, 6361305097274554454, -2829374318677624892, -5586154072017326096, 1642609569643270651, 8684197910402748084, -642035307750474343, 3731961590725730479, 5625389404563660813]
INFO [main] 2022-09-09 09:05:57,352 StorageService.java:1634 - JOINING: sleeping 30000 ms for pending range setup
ERROR [main] 2022-09-09 09:06:27,354 CassandraDaemon.java:911 - Exception encountered during startup
java.lang.IllegalStateException: Unable to contact any seeds: [/10.11.180.69:7600, /10.11.180.71:7600, /10.11.227.152:7600]
at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:1766)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:1058)
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:1019)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:801)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:731)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:420)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:765)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:889)
DEBUG [StorageServiceShutdownHook] 2022-09-09 09:06:27,359 StorageService.java:1636 - DRAINING: starting drain process
INFO [StorageServiceShutdownHook] 2022-09-09 09:06:27,360 HintsService.java:222 - Paused hints dispatch
DEBUG [StorageServiceShutdownHook] 2022-09-09 09:06:27,361 StorageService.java:2399 - Ignoring application state RPC_READY from l2r1cassan002.abc.xyz.com/10.11.180.70:7600 because it is not a member in token metadata
WARN [StorageServiceShutdownHook] 2022-09-09 09:06:27,361 Gossiper.java:2032 - No local state, state is in silent shutdown, or node hasn't joined, not announcing shutdown