Giter Club home page Giter Club logo

Comments (1)

arulajmani avatar arulajmani commented on August 16, 2024

I think this is a flake caused by a lease transfer. We see a lease transfer happen around the time the test fails:

I240318 20:59:40.329316 24933 13@kv/kvserver/lease_queue.go:132 ⋮ [T1,Vsystem,n1,lease,s1,r68/1:‹/{Table/104-Max}›] 25  transferring lease to s2 usage=[batches/s=0.8 request_cpu/s=194µs raft_cpu/s=85µs write(keys)/s=0.9 write(bytes)/s=67 B read(keys)/s=0.2 read(bytes)/s=9 B]

The relevant commentary around how this can causes us to not strictly enforce the GC TTL is around:

// In order to make this check inexpensive, we keep a copy of the reading of
// protected timestamp state in the replica. This state may be stale, may not
// exist, or may be unusable given the current lease status. In those cases we
// must return the GC threshold. On the one hand this seems like a big deal,
// after a lease transfer, for minutes, users will be able to read data that
// has technically expired. Fortunately this strict enforcement is merely a
// user experience win; it's always safe to allow reads to continue so long
// as they are after the GC threshold.
c := r.mu.cachedProtectedTS
if st.State != kvserverpb.LeaseState_VALID || c.readAt.Less(st.Lease.Start.ToTimestamp()) {
return *r.mu.state.GCThreshold
}

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.