-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 5.1.0, 5.0.0-rc1
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
v5.0
-
-
Sharding EMEA 2021-06-28
-
158
The legacy shard collection path is prepared to detect and warn about leftover metadata if finds entries on config.chunks when sharding a collection. There is a helper script that, if included, automatically tries to clean up config.chunks but, this helper is not ready to handle if the config server steps down when cleaning the metadata.
We could add a try/catch block and retry if there is any stepdown error.