Skip to content

Commit

Permalink
Merge #77429
Browse files Browse the repository at this point in the history
77429: kvserver: remove "not observed below raft" assertion r=erikgrinaker a=tbg

This "meta test" intercepts all protos below raft and makes assertions
about them. In particular, it was injecting a nonzero exit code if one
of the tracked protos was *not* seen (so that we could stop tracking
it). But in a bazel world where sharding is the norm, you can't really
expect any given shard to see all of the protos. Take out this
particular assertion.

Release justification: testing-only fix
Release note: None


Co-authored-by: Tobias Grieger <[email protected]>
  • Loading branch information
craig[bot] and tbg committed Mar 7, 2022
2 parents fd66b4b + 53f21e0 commit 8467577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/kv/kvserver/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ func TestMain(m *testing.M) {
delete(notBelowRaftProtos, reflect.TypeOf(&roachpb.InternalTimeSeriesData{}))
delete(notBelowRaftProtos, reflect.TypeOf(&enginepb.MVCCMetadataSubsetForMergeSerialization{}))
for typ := range notBelowRaftProtos {
failed = true
// NB: don't set failed=true. In a bazel world, we may just end up sharding in a way that
// doesn't observe some of the protos below raft.
fmt.Printf("%s: not observed below raft!\n", typ)
}

Expand Down

0 comments on commit 8467577

Please sign in to comment.