Coder Social home page Coder Social logo

Comments (8)

andrewjstone avatar andrewjstone commented on August 21, 2024

CC @yuliasherman

from concord-bft.

yuliasherman avatar yuliasherman commented on August 21, 2024

We have already an open bug for this issue: SkvbcPersistenceTest fails intermittently (in CI & locally) #294. Looks like we have some incorrect behavior that requires a deep investigation.

from concord-bft.

guyg7 avatar guyg7 commented on August 21, 2024

Okay. I will look at #294 .
But, for now, I suggest to rollback to the correct version of this line.

from concord-bft.

yuliasherman avatar yuliasherman commented on August 21, 2024

Did you observe the second assert being thrown? Because we did not somehow.

from concord-bft.

guyg7 avatar guyg7 commented on August 21, 2024

This may be another bug....
Let me look at #294 first

from concord-bft.

guyg7 avatar guyg7 commented on August 21, 2024

Okay. I believe that #294 arises because two Checkpoint messages are written in the same transaction (to the same sequence number), and only the first message is actually written to the disk/database, the second message is not written.
From what I can see, it is because of a bug in DBMetadataStorage: in DBMetadataStorage, the write operations are collected by using unordered_map::insert. Notice that unordered_map::insert does not add element <k,v> if the map already contains key k.

from concord-bft.

guyg7 avatar guyg7 commented on August 21, 2024

I guess it would be simple to fix DBMetadataStorage :-)

from concord-bft.

yuliasherman avatar yuliasherman commented on August 21, 2024

Hm. I remember I've already fixed this bug in the past. The entry in the map needs to be deleted and then a new one inserted. But now I don't see the fix. Thanks for your attention!

from concord-bft.

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.