Skip to content

Commit

Permalink
server,status: disable reconciliation job for few stat tests
Browse files Browse the repository at this point in the history
It's unclear why these tests experience a massive slowdown.
Investigating it is tracked as part of cockroachdb#74919.

Release note: None
  • Loading branch information
irfansharif committed Jan 18, 2022
1 parent 3f383fd commit f562686
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/ccl/serverccl/statusccl/tenant_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/roachpb"
"github.com/cockroachdb/cockroach/pkg/security"
"github.com/cockroachdb/cockroach/pkg/server/serverpb"
"github.com/cockroachdb/cockroach/pkg/spanconfig"
"github.com/cockroachdb/cockroach/pkg/sql/catalog/catconstants"
"github.com/cockroachdb/cockroach/pkg/sql/catalog/descpb"
"github.com/cockroachdb/cockroach/pkg/sql/sem/tree"
Expand Down Expand Up @@ -91,6 +92,9 @@ func TestTenantCannotSeeNonTenantStats(t *testing.T) {
ctx := context.Background()

serverParams, _ := tests.CreateTestServerParams()
serverParams.Knobs.SpanConfig = &spanconfig.TestingKnobs{
ManagerDisableJobCreation: true, // TODO(irfansharif): #74919.
}
testCluster := serverutils.StartNewTestCluster(t, 3 /* numNodes */, base.TestClusterArgs{
ServerArgs: serverParams,
})
Expand Down
7 changes: 7 additions & 0 deletions pkg/server/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/server/diagnostics/diagnosticspb"
"github.com/cockroachdb/cockroach/pkg/server/serverpb"
"github.com/cockroachdb/cockroach/pkg/server/status/statuspb"
"github.com/cockroachdb/cockroach/pkg/spanconfig"
"github.com/cockroachdb/cockroach/pkg/sql"
"github.com/cockroachdb/cockroach/pkg/sql/catalog/catconstants"
"github.com/cockroachdb/cockroach/pkg/sql/catalog/descpb"
Expand Down Expand Up @@ -1819,6 +1820,9 @@ func TestStatusAPIStatements(t *testing.T) {
AOSTClause: "AS OF SYSTEM TIME '-1us'",
StubTimeNow: func() time.Time { return timeutil.Unix(aggregatedTs, 0) },
},
SpanConfig: &spanconfig.TestingKnobs{
ManagerDisableJobCreation: true, // TODO(irfansharif): #74919.
},
},
},
})
Expand Down Expand Up @@ -1932,6 +1936,9 @@ func TestStatusAPICombinedStatements(t *testing.T) {
AOSTClause: "AS OF SYSTEM TIME '-1us'",
StubTimeNow: func() time.Time { return timeutil.Unix(aggregatedTs, 0) },
},
SpanConfig: &spanconfig.TestingKnobs{
ManagerDisableJobCreation: true, // TODO(irfansharif): #74919.
},
},
},
})
Expand Down

0 comments on commit f562686

Please sign in to comment.