Sample Header Ad - 728x90

MongoDB Shard Zone Range Overlapping

0 votes
2 answers
189 views
I am configuring a test mongo setup with 2 shards, and I'm trying to add zone ranges to each shard: sh.updateZoneKeyRange('mydb.test', {id:MinKey,ts:MinKey}, {id:MaxKey,ts:1548787704000}, 'cold') sh.updateZoneKeyRange('mydb.test', {id:MinKey,ts:1548787704000}, {id:MaxKey,ts:MaxKey}, 'hot') First command runs fine, but second tells me: Zone range: { id: MinKey, ts: 1548787704000.0 } -->> { id: MaxKey, ts: MaxKey } on hot is overlapping with existing: { id: MinKey, ts: MinKey } -->> { id: MaxKey, ts: 1548787704000.0 } on cold I thought the maximum bounds were exclusive and minimum bounds inclusive?
Asked by Thiatt (123 rep)
Jan 29, 2020, 07:54 PM
Last activity: Jun 23, 2025, 09:04 PM