Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core should retrieve and save documents atomically #334

Open
laserval opened this issue Jun 4, 2014 · 0 comments
Open

Core should retrieve and save documents atomically #334

laserval opened this issue Jun 4, 2014 · 0 comments
Labels

Comments

@laserval
Copy link
Contributor

laserval commented Jun 4, 2014

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.

@laserval laserval added the core label Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant