Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
I'm using buk write operations and trying to make them work correctly in the event of a Primary failure.
When my primary fails the returned BulkWriteResult is null - I'd like to run execute() again on the BulkWriteOperation but I can't because it's 'already executed'
Whats the correct pattern here? only create bulkWriters at the last moment and stage all the insets/updates in another collection? use clone() to create a copy to use before the execute()
How do I use this safely?