Skip to content

Core should retrieve and save documents atomically #334

Description

@laserval

When receiving a document from a stage, Core will do two database operations:
https://github.com/Findwise/Hydra/blob/master/core/src/main/java/com/findwise/hydra/net/MarkHandler.java#L65

https://github.com/Findwise/Hydra/blob/master/core/src/main/java/com/findwise/hydra/net/MarkHandler.java#L74

https://github.com/Findwise/Hydra/blob/master/core/src/main/java/com/findwise/hydra/net/MarkHandler.java#L108

This could mean that a document is available for the getDocumentById() call, but is missing when one of the markXXXXX() methods are called.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions