Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
91840: server: remove unused apiv2 server field r=knz a=dhartunian

Epic: None
Resolves: cockroachdb#91829
Release note: None

91857: skip flaky tests r=andrewbaptist a=knz

Informs cockroachdb#91856
Informs cockroachdb#91858

Co-authored-by: David Hartunian <[email protected]>
Co-authored-by: Raphael 'kena' Poss <[email protected]>
  • Loading branch information
3 people committed Nov 14, 2022
3 parents 3f00311 + 460fea4 + a9dc45b commit bc06ae6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions pkg/kv/kvclient/kvcoord/dist_sender_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/testutils/kvclientutils"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
"github.com/cockroachdb/cockroach/pkg/util/hlc"
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
"github.com/cockroachdb/cockroach/pkg/util/log"
Expand Down Expand Up @@ -1079,6 +1080,9 @@ func TestMultiRangeScanReverseScanDeleteResolve(t *testing.T) {
// using the clock local to the distributed sender.
func TestMultiRangeScanReverseScanInconsistent(t *testing.T) {
defer leaktest.AfterTest(t)()

skip.WithIssue(t, 91856) // flaky test

defer log.Scope(t).Close(t)

for _, rc := range []roachpb.ReadConsistencyType{
Expand Down
3 changes: 0 additions & 3 deletions pkg/server/api_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import (
"strconv"

"github.com/cockroachdb/cockroach/pkg/kv"
"github.com/cockroachdb/cockroach/pkg/roachpb"
"github.com/cockroachdb/cockroach/pkg/security/username"
"github.com/cockroachdb/cockroach/pkg/server/serverpb"
"github.com/cockroachdb/cockroach/pkg/server/telemetry"
Expand Down Expand Up @@ -82,7 +81,6 @@ type apiV2ServerOpts struct {
admin *adminServer
status *statusServer
promRuleExporter *metric.PrometheusRuleExporter
tenantID roachpb.TenantID
sqlServer *SQLServer
db *kv.DB
}
Expand All @@ -100,7 +98,6 @@ type apiV2Server struct {
status *statusServer
promRuleExporter *metric.PrometheusRuleExporter
mux *mux.Router
tenantID roachpb.TenantID
sqlServer *SQLServer
db *kv.DB
}
Expand Down
1 change: 0 additions & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,6 @@ func (s *Server) PreStart(ctx context.Context) error {
admin: s.admin,
status: s.status,
promRuleExporter: s.promRuleExporter,
tenantID: roachpb.SystemTenantID,
sqlServer: s.sqlServer,
db: s.db,
}), /* apiServer */
Expand Down
1 change: 0 additions & 1 deletion pkg/server/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ func (s *SQLServerWrapper) PreStart(ctx context.Context) error {
s.debug, /* handleDebugUnauthenticated */
newAPIV2Server(workersCtx, &apiV2ServerOpts{
sqlServer: s.sqlServer,
tenantID: s.sqlCfg.TenantID,
db: s.db,
}), /* apiServer */
); err != nil {
Expand Down
3 changes: 3 additions & 0 deletions pkg/sql/sem/builtins/builtins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ func TestMapToUniqueUnorderedID(t *testing.T) {
func TestSerialNormalizationWithUniqueUnorderedID(t *testing.T) {
defer leaktest.AfterTest(t)()
ctx := context.Background()

skip.WithIssue(t, 91858) // flaky test

skip.UnderRace(t, "the test is too slow and the goodness of fit test "+
"assumes large N")
params := base.TestServerArgs{}
Expand Down

0 comments on commit bc06ae6

Please sign in to comment.