Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roachtest: multitenant-upgrade failed #91589

Closed
cockroach-teamcity opened this issue Nov 9, 2022 · 3 comments · Fixed by #91662
Closed

roachtest: multitenant-upgrade failed #91589

cockroach-teamcity opened this issue Nov 9, 2022 · 3 comments · Fixed by #91662
Assignees
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot.
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Nov 9, 2022

roachtest.multitenant-upgrade failed with artifacts on master @ ee4fdb7fff683a7916ee585ac0c1e22d5d9a4412:

test artifacts and logs in: /artifacts/multitenant-upgrade/run_1
(test_impl.go:297).Fatalf: expected error 'pq: preventing tenant upgrade from running as the host cluster has not yet been upgraded: host cluster version = 22.1-76, tenant cluster version = 22.1-76', got: pq: internal error: tenant found at higher cluster version than host cluster: host cluster at version 22.1, tenant at version 22.1-76.
HINT: You have encountered an unexpected error.
Please check the public issue tracker to check whether this problem is
already tracked. If you cannot find it there, please report the error
with details by creating a new issue.
If you would rather not post publicly, please contact us directly
using the support form.
We appreciate your feedback.
DETAIL: stack trace:
github.com/cockroachdb/cockroach/pkg/upgrade/upgrademanager/manager.go:129: safeToUpgradeTenant()
github.com/cockroachdb/cockroach/pkg/upgrade/upgrademanager/manager.go:174: Migrate()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:644: runMigrationsAndUpgradeVersion()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:580: setVersionSetting()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:419: writeNonDefaultSettingValue()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:353: func1()
github.com/cockroachdb/cockroach/pkg/kv/db.go:959: func1()
github.com/cockroachdb/cockroach/pkg/kv/txn.go:926: exec()
github.com/cockroachdb/cockroach/pkg/kv/db.go:958: runTxn()
github.com/cockroachdb/cockroach/pkg/kv/db.go:921: TxnWithAdmissionControl()
github.com/cockroachdb/cockroach/pkg/kv/db.go:900: Txn()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:338: writeSettingInternal()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:246: startExec()
github.com/cockroachdb/cockroach/pkg/sql/plan.go:518: func2()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:112: func1()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:297: visitInternal()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:79: visit()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:43: walkPlan()
github.com/cockroachdb/cockroach/pkg/sql/plan.go:521: startExec()
github.com/cockroachdb/cockroach/pkg/sql/plan_node_to_row_source.go:159: Start()
github.com/cockroachdb/cockroach/pkg/sql/colexec/columnarizer.go:189: Init()
github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:92: init()
github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92: CatchVectorizedRuntimeError()
github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:101: Init()
github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:247: func1()
github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92: CatchVectorizedRuntimeError()
github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:246: init()
github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:291: Run()
github.com/cockroachdb/cockroach/pkg/sql/colflow/vectorized_flow.go:320: Run()
github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:688: Run()
github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1553: PlanAndRun()
github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1305: PlanAndRunAll()
(test_impl.go:291).Fatal: cluster.RunE: context canceled
(test_impl.go:291).Fatal: cluster.RunE: context canceled
(test_impl.go:291).Fatal: cluster.RunE: context canceled

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_fs=ext4 , ROACHTEST_localSSD=true , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

/cc @cockroachdb/multi-tenant

This test on roachdash | Improve this report!

Jira issue: CRDB-21337

@cockroach-teamcity cockroach-teamcity added branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. labels Nov 9, 2022
@cockroach-teamcity cockroach-teamcity added this to the 23.1 milestone Nov 9, 2022
@knz
Copy link
Contributor

knz commented Nov 9, 2022

@ajstorm wanna have a look?

@ajstorm
Copy link
Collaborator

ajstorm commented Nov 9, 2022 via email

@ajstorm ajstorm removed the release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. label Nov 9, 2022
@ajstorm ajstorm self-assigned this Nov 9, 2022
@cockroach-teamcity
Copy link
Member Author

roachtest.multitenant-upgrade failed with artifacts on master @ d6ae9653b67071cca09ed296711cecc821fc284e:

test artifacts and logs in: /artifacts/multitenant-upgrade/run_1
(test_impl.go:297).Fatalf: expected error 'pq: preventing tenant upgrade from running as the host cluster has not yet been upgraded: host cluster version = 22.1-76, tenant cluster version = 22.1-76', got: pq: internal error: tenant found at higher cluster version than host cluster: host cluster at version 22.1, tenant at version 22.1-76.
HINT: You have encountered an unexpected error.
Please check the public issue tracker to check whether this problem is
already tracked. If you cannot find it there, please report the error
with details by creating a new issue.
If you would rather not post publicly, please contact us directly
using the support form.
We appreciate your feedback.
DETAIL: stack trace:
github.com/cockroachdb/cockroach/pkg/upgrade/upgrademanager/manager.go:129: safeToUpgradeTenant()
github.com/cockroachdb/cockroach/pkg/upgrade/upgrademanager/manager.go:174: Migrate()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:635: runMigrationsAndUpgradeVersion()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:571: setVersionSetting()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:419: writeNonDefaultSettingValue()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:353: func1()
github.com/cockroachdb/cockroach/pkg/kv/db.go:959: func1()
github.com/cockroachdb/cockroach/pkg/kv/txn.go:926: exec()
github.com/cockroachdb/cockroach/pkg/kv/db.go:958: runTxn()
github.com/cockroachdb/cockroach/pkg/kv/db.go:921: TxnWithAdmissionControl()
github.com/cockroachdb/cockroach/pkg/kv/db.go:900: Txn()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:338: writeSettingInternal()
github.com/cockroachdb/cockroach/pkg/sql/set_cluster_setting.go:246: startExec()
github.com/cockroachdb/cockroach/pkg/sql/plan.go:518: func2()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:112: func1()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:297: visitInternal()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:79: visit()
github.com/cockroachdb/cockroach/pkg/sql/walk.go:43: walkPlan()
github.com/cockroachdb/cockroach/pkg/sql/plan.go:521: startExec()
github.com/cockroachdb/cockroach/pkg/sql/plan_node_to_row_source.go:159: Start()
github.com/cockroachdb/cockroach/pkg/sql/colexec/columnarizer.go:189: Init()
github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:92: init()
github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92: CatchVectorizedRuntimeError()
github.com/cockroachdb/cockroach/pkg/sql/colflow/stats.go:101: Init()
github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:247: func1()
github.com/cockroachdb/cockroach/pkg/sql/colexecerror/error.go:92: CatchVectorizedRuntimeError()
github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:246: init()
github.com/cockroachdb/cockroach/pkg/sql/colflow/flow_coordinator.go:291: Run()
github.com/cockroachdb/cockroach/pkg/sql/colflow/vectorized_flow.go:320: Run()
github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:688: Run()
github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1553: PlanAndRun()
github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:1305: PlanAndRunAll()
(test_impl.go:291).Fatal: cluster.RunE: context canceled
(test_impl.go:291).Fatal: cluster.RunE: context canceled
(test_impl.go:291).Fatal: cluster.RunE: context canceled

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_fs=ext4 , ROACHTEST_localSSD=true , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

craig bot pushed a commit that referenced this issue Nov 10, 2022
91081: ui: migrate statement diagnostics requests to use sql-over-http endpoint r=THardy98 a=THardy98

Part of: #89429

Addresses: #90273, #90274, #90275

Blocked from resolving by #80789

DB-Console Demo: https://www.loom.com/share/d74c02eb3dfb41fc913577d0e8992441
CC-Console Demo: https://www.loom.com/share/2adba8a53b8c48ac9f031e4481f284cf

This change migrates the existing statement diagnostics requests to use the sql-over-http endpoint on our apiV2, making these requests tenant-scoped once the sql-over-http endpoint is scoped to tenants (this should be the case when #91323 is completed).

91534: lint: remove Golint r=yuzefovich a=yuzefovich

This commit removes `TestGolint` linter as well as all mentions of `golint` I could find. The rationale is that
- the linter is no longer maintained
- is partially duplicated with the `staticcheck`
- due to a recent change in `gcexportdata.Find`, if we bump some dependencies, it takes on the order of an hour when run via bazel, and we'd need to fork `golint` to go around that.

Epic: None

Release note: None

91626: kvstreamer: improve the behavior with very low budget r=yuzefovich a=yuzefovich

This commit makes it so that the streamer tries a bit harder to not hit its low budget limit in `Enqueue`. Previously, due to some of the internal state being reused across different `Enqueue` batches (in particular, the truncation helper as well as some things in the results buffer), the streamer's budget might be insufficient to account for the newly-enqueued requests, and we would error out. This commit makes it so that - if the budget limit is reached - we first discard the overhead (freeing up some budget) and then try to consume the requests' footprint again. This shouldn't be a big deal with reasonably large workmem limits, but we have seen some problems when it is on the order of 100KiB or less.

Fixes: #91587.

Release note: None

91662: multi-tenant: Bump uninitialized storage cluster version r=knz a=ajstorm

Previously, in cases where the version value in system.tenant_settings was uninitialized, we assumed that that the version was 22.1. With the change of the build tag to 23.1, we need to adjust the previous version to 22.1.76. This will need one more bump when we finally mint the 22.2 version number in master.

Resolves: #91589

Release note: None

Co-authored-by: Thomas Hardy <[email protected]>
Co-authored-by: Yahor Yuzefovich <[email protected]>
Co-authored-by: Adam Storm <[email protected]>
@craig craig bot closed this as completed in 24ee721 Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants