Coder Social home page Coder Social logo

Comments (3)

tsuna avatar tsuna commented on June 2, 2024

I think I finally nailed down this one. It's not a race condition, but a flaw in the logic that handles NSRE. I need to write a unit test to try to reproduce this in a controlled fashion, but I think the problem goes like this:

  • One RPC get NSRE'd on some region that's being split
  • After a small timeout, an exists probe is sent to check if the region is still NSRE'd.
  • The exists probe causes a .META. lookup and its target region is set to be another region, because the target is now a daughter region.
  • The probe reaches the RS but the daughter region is also NSRE'd.
  • The probe comes back to handleNSRE but the lookup in got_nsre now searches for the daughter's name.
  • A new probe is created for the daughter, and the first probe is queued up.
  • The new probe doesn't succeed because the daughter is still NSRE'd, and for some reason the code doesn't register a timeout to retry again later.

The scenario is not entirely clear yet.

from asynchbase.

tsuna avatar tsuna commented on June 2, 2024

I wrote a unit test for the scenario above, it works fine. So this isn't it. There's something else I'm missing. How come there's an entry in got_nsre without a NSRETimer for it. I've seen this bug during a loadtest a few days ago, but I still understand how it crops up.

from asynchbase.

tsuna avatar tsuna commented on June 2, 2024

Fixed by 86c82ab

from asynchbase.

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.