Comments (3)
@annrpom since you are working with zone configs, could you see if this repros in a recent version? I think we should try to do DROP DATABASE CASCADE after setting a zone config on an index. If that doesn't cause the error, we can close this as unactionable, since we don't know how to repro this.
from cockroach.
@rafiss 🫡
from cockroach.
on 24.1, this does not repro:
[email protected]:26257/movr> CREATE DATABASE foo;
CREATE DATABASE
Time: 13ms total (execution 13ms / network 1ms)
[email protected]:26257/movr> USE foo;
SET
Time: 6ms total (execution 6ms / network 0ms)
[email protected]:26257/foo> CREATE TABLE my_table (
-> id INT PRIMARY KEY,
-> name STRING
-> );
CREATE TABLE
Time: 4ms total (execution 4ms / network 0ms)
[email protected]:26257/foo> CREATE INDEX my_index ON my_table (name);
CREATE INDEX
Time: 175ms total (execution 175ms / network 0ms)
[email protected]:26257/foo> ALTER INDEX my_table@my_index CONFIGURE
-> ZONE USING
-> num_replicas = 10;
CONFIGURE ZONE 1
Time: 7ms total (execution 6ms / network 0ms)
[email protected]:26257/my_database> set use_declarative_schema_changer =
-> unsafe_always;
SET
Time: 1ms total (execution 0ms / network 0ms)
[email protected]:26257/my_database> set sql_safe_updates = false;
SET
Time: 1ms total (execution 1ms / network 0ms)
[email protected]:26257/my_database> drop database my_database cascade;
DROP DATABASE
Time: 79ms total (execution 79ms / network 0ms)
warning: error retrieving the database name: ERROR: database "my_database" does not exist (SQLSTATE 3D000)
from cockroach.
Related Issues (20)
- pkg/ccl/logictestccl/tests/5node/5node_test_/5node_test_shard_4/5: pkg failed HOT 1
- roachtest: failover/chaos/read-write failed HOT 2
- kvserver/rangefeed: memory accounting is missing for catch up scans HOT 1
- LDR: setup and upgrade guardrails HOT 2
- pkg/sql/logictest/tests/cockroach-go-testserver-23.2/cockroach-go-testserver-23_2_test: TestLogic_cross_version_tenant_backup failed HOT 1
- roachprod gc: enable cluster cleanup for multiple azure subscriptions HOT 1
- server: add unique store ids to SpanStats response
- pkg/sql/logictest/tests/cockroach-go-testserver-24.1/cockroach-go-testserver-24_1_test: TestLogic_cross_version_tenant_backup failed
- roachtest: update mixedversion's logic for performing skip-version upgrades HOT 1
- pkg/settings/integration_tests/integration_tests_test: TestSettingsSetAndShow failed HOT 1
- pkg/settings/integration_tests/integration_tests_test: TestSettingsRefresh failed HOT 2
- sql: delete from query hangs HOT 5
- security: TestUseCerts failed HOT 3
- Sentry: error.go:61: unexpected error from the vectorized engine: node unavailable; try another peer (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql/colflow/col...
- ccl/changefeedccl: TestChangefeedWithNoDistributionStrategyAndConstrainedLocality failed HOT 2
- Sentry: pebble.go:1481: log.Fatal: local corruption detected: corrupted timeseries: × (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/storage.(*Pebble).makeMetricE...
- backupccl: determine if full cluster restore from old version should add bootstrap zone configs that were added in later versions HOT 2
- pkg/sql/logictest/tests/cockroach-go-testserver-24.1/cockroach-go-testserver-24_1_test: TestLogic_upgrade_skip_version failed HOT 1
- sql/catalog/lease: TestRangefeedUpdatesHandledProperlyInTheFaceOfRaces failed [test deadlocks in LeaseAcquiredEvent testing knob] HOT 3
- raft: leaders stepping down when switching joint configurations need to de-fortify HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cockroach.