Repository navigation
metric(submitqueue): record creates whose callers accept an existing row as result=already_exists - #1167
Merged
Conversation
… as result=already_exists
roychying
force-pushed
the
chenghan.ying/storage-already-exists-metric
branch
from
December 3, 2026 04:46
14be0c9 to
5616350
Compare
roychying
marked this pull request as ready for review
December 3, 2026 21:43
mnoah1
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
Stores record a duplicate create as
result=error, even where the caller treatsErrAlreadyExistsas success. The gateway re-creates URI mappings and receipts on every request log, which leads to false "errors" right now in. Orchestrator redeliveries and lost races do the same. So store error rates can't be alerted on.What?
Only the metric's
resulttag changes. Callers and returned errors are unchanged.storage.CompleteCreateMetricsOprecordsErrAlreadyExistsasresult=already_exists; everything else goes throughop.Complete.request_uri/request_receipt; orchestratorrequest,request_batch,batch_dependent,build,path_build,speculation_path_set; tangosignature.request_summary, orchestratorbatch) or whereCreatehas no caller (tangodictionary).Test Plan
TestCompleteCreateMetricsOp, plus result-tag assertions in the gateway URI and receipt store tests.bazel testpasses for the storage, tango, gateway and orchestrator packages;make lintandmake gazelleare clean.Issue