GithubHelp home page GithubHelp logo

Comments (2)

pav-kv avatar pav-kv commented on September 17, 2024

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.

arulajmani avatar arulajmani commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.