Comments (2)
The error formatted in consumable way:
error executing query="ALTER TABLE t EXPERIMENTAL_RELOCATE VALUES (ARRAY[1,4,5], 1)" args=[]:
pq: while carrying out changes [{ADD_VOTER n5,s5} {REMOVE_VOTER n2,s2}]:
change replicas of r69 failed:
(n2,s2):2VOTER_DEMOTING_LEARNER received invalid ChangeReplicasTrigger LEAVE_JOINT:
after=[(n1,s1):1 (n2,s2):2LEARNER (n3,s3):3 (n5,s5):4] next=5 to remove self (leaseholder); lhRemovalAllowed: true;
current desc: r69:/{Table/104/1/0-Max} [(n1,s1):1, (n2,s2):2VOTER_DEMOTING_LEARNER, (n3,s3):3, (n5,s5):4VOTER_INCOMING, next=5, gen=7, sticky=9223372036.854775807,2147483647];
proposed desc: r69:/{Table/104/1/0-Max} [(n1,s1):1, (n2,s2):2LEARNER, (n3,s3):3, (n5,s5):4, next=5, gen=8, sticky=9223372036.854775807,2147483647]:
lease target replica cannot hold lease
from cockroach.
From the logs, we see:
W240605 10:55:07.442566 13586 kv/kvclient/kvcoord/dist_sender.go:2786 ⋮ [T1,Vsystem,n1,client=127.0.0.1:52210,hostssl,user=root] 875 slow replica RPC: have been waiting 10.61s (0 attempts) for RPC AdminRelocateRange [/Table/104/1/‹1›/‹0›] to replica (n1,s1):1; resp: ‹(err: while carrying out changes [{ADD_VOTER n5,s5} {REMOVE_VOTER n2,s2}]: change replicas of r69 failed: (n2,s2):2VOTER_DEMOTING_LEARNER received invalid ChangeReplicasTrigger LEAVE_JOINT: after=[(n1,s1):1 (n2,s2):2LEARNER (n3,s3):3 (n5,s5):4] next=5 to remove self (leaseholder); lhRemovalAllowed: true; current desc: r69:/{Table/104/1/0-Max} [(n1,s1):1, (n2,s2):2VOTER_DEMOTING_LEARNER, (n3,s3):3, (n5,s5):4VOTER_INCOMING, next=5, gen=7, sticky=9223372036.854775807,2147483647]; proposed desc: r69:/{Table/104/1/0-Max} [(n1,s1):1, (n2,s2):2LEARNER, (n3,s3):3, (n5,s5):4, next=5, gen=8, sticky=9223372036.854775807,2147483647]: lease target replica cannot hold lease)›
We're unable to exit the joint configuration because the leaseholder (n5) is still a VOTER_DEMOTING_LEARNER
and is being demoted to the LEARNER
. Given how long the slow range RPC is waiting, my guess is that it transferred the lease away, which expired, and then it was able to reacquire the lease.
We've previously closed such issues out (when they were running on engflow under race) as infra-flakes. I'll do the same here. If this comes back, we can look into retrying after these errors.
from cockroach.
Related Issues (20)
- TTL processing on big table fails with lexical error HOT 2
- Sentry: logical_props_builder.go:1736: comparison overload not found (×, ×, ×) (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql/o...
- Sentry: logical_props_builder.go:1736: comparison overload not found (×, ×, ×) (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/sql/o...
- Sentry: syncing_file.go:67: write ×: There is not enough space on the disk. (1) attached stack trace -- stack trace: | runtime.gopanic | GOROOT/src/runtime/panic.go:884 | github.com/cockroac...
- Sentry: mvcc_index_merger.go:428: executing declarative schema change PostCommitPhase stage 5 of 7 with 1 BackfillType op (rollback=false) for CREATE INDEX: expected value to be present in temp index ...
- sql/stmtdiagnostics: TestDiagnosticsRequest failed
- sql: TestRelocateNonVoters failed
- Sentry: catch.go:29: runtime error: invalid memory address or nil pointer dereference (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/u...
- rac2: delay closing send stream on probe
- Implement ALTER TABLE ... CONFIGURE ZONE USING ... in declarative schema changer HOT 1
- Implement ALTER INDEX ... CONFIGURE ZONE USING ... in declarative schema changer HOT 1
- Implement ALTER PARTITION ... CONFIGURE ZONE USING ... in declarative schema changer
- crosscluster/logical: test fully connected 4 way replication and dag replication HOT 1
- Implement ALTER RANGE ... CONFIGURE ZONE USING ... in declarative schema changer
- crosscluster/logical: disallow replicating into a table with non-nullable column in a column family (including in the primary key) HOT 1
- opt: partial indexes with `col IS NULL` predicates are not properly constrained in ordered, limited scans HOT 3
- build: Update to go 1.23 HOT 1
- ctxutil: Remove linkname of `context.cancelCtxKey`
- goschedstats: remove linkname of runtime.{allp,lock,unlock}
- pkg/ccl/testccl/workload/schemachange/schemachange_test: TestWorkload failed [duplicate key value violates unique constraint] HOT 2
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.