-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
On the docs page https://github.com/mongodb/docs/blob/e02edf16172277368f238e8da2b81491f61bf39d/source/reference/method/sh.removeTagRange.txt#L16 and all possible references from other pages, there is mentioned a tag parameter on the sh.removeTagRange.
This 'tag' parameter has never existed, thus the docs are misleading. This part should be removed: https://github.com/mongodb/docs/blob/e02edf16172277368f238e8da2b81491f61bf39d/source/reference/method/sh.removeTagRange.txt#L65-L70 from all the docs and versions.
Description of Linked Ticket
The command removeTagRange(nss, min, max, tagName) from util_sh.js removes the range independently of the given tag name; the tagName parameter is ignored. This command (removeTagRange) is an alias for removeRangeFromZone. On the other hand, removeRangeFromZone(nss, min, max) from the mongo shell removes the range from the tag without passing this as a parameter. It can be done this way because there is a 1:N relationship between tags - ranges. One range can only belong to one tag, thus there is no need to have the tag name to remove a range.
The goals of this ticket:
- Match the behaviour between the mongo command (util_sh.js) and the mongo shell command (shard.ts).
- Flag for downstream impact to update the docs, they are not aware that the tagName parameter that does not exist in the mongosh.
- documents
-
SERVER-77216 sh.removeTagRange ignores the tagName parameter
- Closed