Order of _bulk request operations


Is the order a bulk request guaranteed? I am making Nest calls from C# by using the BulkDescriptor to perform both inserts, updates, and deletes against a 2 node cluster. I wrote a simple application testing whether or not order is preserved and after hours of running, I had no notifications that it is not ordered. I tried looking through the BulkProcessor class in source code and it seems that it has a concurrent value of 1 by default, where 0 is stated as single thread. Please let me know if I can rely on the operations happening in a specific order.

Thank you.

Handling Conflicts
Order Mismatch in Update Operations
(Adrien Grand) #2

You can rely on the fact that operations on the same document (same _index, _type and _id) will be in order. However you can't assume anything for documents that have different indices/types/ids.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.