What is happening
The detach-cluster command resets cluster identity so a node can join a different cluster, while override-version changes the recorded compatibility version. Elasticsearch warns that these are last-resort recovery operations. If the surviving nodes contain different metadata generations, choosing the wrong basis can orphan indexes or accept stale primary shards.