Thanks for sending the full query result.
It’s clear from the query result that all of the ranges had been safely replicated onto the decommissioned nodes (all of the replicas in the output are on nodes 1, 3, and 5), and that the only issue here was one of the decommissioned nodes not properly garbage-collecting the removed replicas. You could have kept the nodes off without ever restarting them and the cluster would have been perfectly fine.
However, this is still clearly a bug in the system that the replicas weren’t GC’ed more effectively. If you have the logs from the decommissioned nodes, they might be useful. And if you could explain the steps you took to get into this state, that may help as well. Did you do anything more than just running the
docker exec -it roach1 ./cockroach node decommission 2 4 6 --insecure --wait=live --host=172.18.44.120 --port=26257 command on a 6-node cluster?
I’ve opened https://github.com/cockroachdb/cockroach/issues/25131 to track the issue.