Skip to content

馃悆 Ordering tie breaker can cause undefined ordering with the same identity#513

Description

@DanielVF

The current log ordering uses the Lamport clock first, then breaks ties by using the public id of the Orbit DB identity that created the entry.

Because of the current limitation on changing access controls after a database is created, it's often required for a single identity to be reused by the same user on different devices. This means however that the same identity may by syncing with itself. In this case there may be entries with identical clock .id and clock.time fields. This can cause ordering to become non-deterministic.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions