canonical / canonical/mongodb-operator

[Missing]: Remove shard does not handle jumbo chunks

Open
#436 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
14
Forks
15
Avg merge
9h 44m
Merged PRs (30d)
17

Description

The current implementation of removing shards does not handle jumbo chunks at all.
According to [the docs](https://www.mongodb.com/docs/v6.0/tutorial/remove-shards-from-cluster/#check-the-status-of-the-migration), there should be a handling of the jumbo chunks, otherwise the removal of the shard will never end.
[The docs](https://www.mongodb.com/docs/v6.0/tutorial/clear-jumbo-flag/) provide some information on how to handle jumbo chunks, and this should be implemented otherwise the cluster would get stuck in draining mode forever / until manual intervention of the operator.

Contributor guide

Open the contributing guide

Research direction

Start by locating the current shard-removal implementation and compare its behavior with the linked MongoDB documentation on checking migration status and clearing the jumbo flag. Done means jumbo chunks are handled during shard removal so the cluster does not remain in draining mode indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.