MongoDB refuses a second DHCP custom option with the same tag on a scope or tag rule, and refuses to start on existing duplicates #60
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
lantea-one/ninlil#60
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The relational engines have unique indexes. MongoDB has a plain index only on
(ScopeId, OptionTag)and(TagRuleId, OptionTag)(src/dotnet/src/Ninlil.Dns.Data.MongoDb/Maintenance/MongoIndexCatalog.cs:310-327).IndexSet.Unique(:445) takes one field only.What changes
IndexSetwith a compound unique index.MongoSchemaSteps.Knownstep.DatabaseStartupRefusedException(exit code 78, AGENTS.md "Storage") whose message lists each duplicate (collection, scope or tag rule id, option tag, document ids) and tells the operator to delete the extra documents. Nothing is deleted automatically.Acceptance
src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests(MongoDB, Docker): two inserts with the same tag, the second throws the mapped conflict (fails on HEAD).Source
b23-design.md:248(routed out).Owner decision 2026-10-31 (Q-BUG-6): "refuse start, list them".
Ghost referenced this issue2026-11-05 13:30:26 -05:00
Ghost referenced this issue2026-11-05 13:38:17 -05:00
Ghost referenced this issue2026-11-05 15:58:55 -05:00