Skip to content

Float64 PnCounter does not always eventually reach consistency when overflowing #2566

Open

Description

Float64 PnCounter does not always eventually reach consistency when overflowing. Because floats 'overflow' to infinity, and adding/subtracting to/from infinity results in infinity, the order of operations is important and is not accounted for by the crdt.

This is documented by TestP2PUpdate_WithPNCounterSimultaneousOverflowIncrement_DoesNotReachConsitency and TestP2PUpdate_WithPNCounterSimultaneousOverflowDecrement_DoesNotReachConsitency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/crdtRelated to the (Merkle) CRDT systembugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions