Details
-
Task
-
Resolution: Duplicate
-
Major
-
None
-
1.0.0-dp.12
-
3
Description
Hooks can actually mutate or remove a document. When they do so, they should call into the cluster in the typical async fashion. Doing so, they would need to be passed a callback to call when done.
For now, I have a workaround where we spawn a thread, call the cluster operation and return. Then, the hook monitors the future (with wait(0), and a this_thread::sleep_for) until it is done. Ugly, but ok for now. Lets redo this, and so they hooks can be called as if they are (at least potentially) async, with a callback.
Attachments
Issue Links
- blocks
-
CXXCBC-458 Transactions hooks should be asynchronous
- Closed
For Gerrit Dashboard: CXXCBC-265 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
202159,4 | CXXCBC-364: Fix performer hanging at hook mutate action | master | transactions-fit-performer | Status: MERGED | +2 | +1 |