GithubHelp home page GithubHelp logo

Comments (3)

kvoli avatar kvoli commented on September 26, 2024

The lease hits this unexpected error when attempting to switch the lease type in pre-processing by the lease queue:

E240525 08:51:03.323593 6990355 kv/kvserver/queue.go:1202 ⋮ [T1,Vsystem,n3,lease,s3,r69/3:‹/{Table/Max-Max}›] 415  expiration of liveness record liveness(nid:3 epo:1 exp:1716627069.258107621,0) is not greater than expiration of the previous lease repl=(n3,s3):3 seq=2 start=1716627063.286141249,0 exp=1716627069.285657100,0 pro=1716627063.285657100,0 after liveness heartbeat

The lease does actually transfer later, right before the test shuts down the cluster:

I240525 08:51:48.622312 8480724 13@kv/kvserver/lease_queue.go:143 ⋮ [T1,Vsystem,n2,lease,s2,r69/2:‹/{Table/Max-Max}›] 1152  transferring lease to s1 usage=[batches/s=0.0 request_cpu/s=0µs raft_cpu/s=0µs write(keys)/s=0.0 write(bytes)/s=0 B read(keys)/s=0.0 read(bytes)/s=0 B]

This is potentially related to #124223, which merged two weeks prior.

from cockroach.

kvoli avatar kvoli commented on September 26, 2024

Actually, the error is from:

return errors.AssertionFailedf("expiration of liveness record %s is not greater than "+
"expiration of the previous lease %s after liveness heartbeat", l, status.Lease)

Which was was added in #123442. Not having looked much deeper, this appears like a case we may have permitted previously but do not now. cc @nvanbenschoten.

from cockroach.

cockroach-teamcity avatar cockroach-teamcity commented on September 26, 2024

kv/kvserver.TestLeaseQueueProactiveEnqueueOnPreferences failed on master @ bd4c5fd7c65c0a9afa8ba05675e49747a4f68881:

=== RUN   TestLeaseQueueProactiveEnqueueOnPreferences
    test_log_scope.go:170: test logs captured to: outputs.zip/logTestLeaseQueueProactiveEnqueueOnPreferences2520501900
    test_log_scope.go:81: use -show-logs to present logs inline
    lease_queue_test.go:410: -- test log scope end --
test logs left over in: outputs.zip/logTestLeaseQueueProactiveEnqueueOnPreferences2520501900
--- FAIL: TestLeaseQueueProactiveEnqueueOnPreferences (56.39s)
=== RUN   TestLeaseQueueProactiveEnqueueOnPreferences/less-preferred
    lease_queue_test.go:398: condition failed to evaluate within 45s: from lease_queue_test.go:404: lease not on preferred node 1, on n2,s2
    --- FAIL: TestLeaseQueueProactiveEnqueueOnPreferences/less-preferred (45.20s)

Parameters:

  • attempt=1
  • deadlock=true
  • run=1
  • shard=22
Help

See also: How To Investigate a Go Test Failure (internal)

Same failure on other branches

  • #124691 kv/kvserver: TestLeaseQueueProactiveEnqueueOnPreferences failed [C-test-failure O-robot P-1 T-kv X-duplicate branch-release-24.1 release-blocker]

This test on roachdash | Improve this report!

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.