Skip to content

Commit

Permalink
Merge #134193
Browse files Browse the repository at this point in the history
134193: intentresolver: disable warning about empty admission header r=tbg a=tbg

As far as I can tell, nobody's proactively fixing them, so we should not
prompt engineers to report additional duplicates.

Touches #112680.

Epic: none
Release note: None


Co-authored-by: Tobias Grieger <tobias.b.grieger@gmail.com>
  • Loading branch information
craig[bot] and tbg committed Nov 4, 2024
2 parents 546c489 + a54d46a commit ac5101d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/kv/kvserver/intentresolver/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ go_library(
importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/intentresolver",
visibility = ["//visibility:public"],
deps = [
"//pkg/build",
"//pkg/internal/client/requestbatcher",
"//pkg/keys",
"//pkg/kv",
Expand Down
7 changes: 5 additions & 2 deletions pkg/kv/kvserver/intentresolver/intent_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"sort"
"time"

"github.com/cockroachdb/cockroach/pkg/build"
"github.com/cockroachdb/cockroach/pkg/internal/client/requestbatcher"
"github.com/cockroachdb/cockroach/pkg/keys"
"github.com/cockroachdb/cockroach/pkg/kv"
Expand Down Expand Up @@ -1028,8 +1027,12 @@ func (ir *IntentResolver) resolveIntents(
reqs := resolveIntentReqs(intents, opts, singleReq[:])
h := opts.AdmissionHeader
// We skip the warning for release builds to avoid printing out verbose stack traces.
// NB: this was disabled in general since there's a large backlog of reported warnings
// that yet have to be resolved, and in the meantime it's not worth more engineering
// time making additional reports.
// TODO(aaditya): reconsider this once #112680 is resolved.
if !build.IsRelease() && h == (kvpb.AdmissionHeader{}) && ir.everyAdmissionHeaderMissing.ShouldLog() {
// if !build.IsRelease() && h == (kvpb.AdmissionHeader{}) && ir.everyAdmissionHeaderMissing.ShouldLog() {
if false {
log.Warningf(ctx,
"test-only warning: if you see this, please report to https://github.com/cockroachdb/cockroach/issues/112680. empty admission header provided by %s", string(debug.Stack()))
}
Expand Down

0 comments on commit ac5101d

Please sign in to comment.