What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix, feature
What is the current behavior? (You can also link to an open issue here)
We don't have any concurrency protection on create/delete index.
If multiple threads are creating/deleting indexes at the same time, Marqo will face a race condition
What is the new behavior (if this is a feature change)?
We use the Zookeeper inside Vespa to implement a distributed lock. The lock will solve the concurrent issue.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
no
Have unit tests been run against this PR? (Has there also been any additional testing?)
in progress
Related Python client changes (link commit/PR here)
no
Related documentation changes (link commit/PR here)
no
Other information:
no
Please check if the PR fulfills these requirements
[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes/features)
[x] Docs have been added / updated (for bug fixes / features)
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) Bug fix, feature
What is the current behavior? (You can also link to an open issue here) We don't have any concurrency protection on create/delete index. If multiple threads are creating/deleting indexes at the same time, Marqo will face a race condition
What is the new behavior (if this is a feature change)? We use the Zookeeper inside Vespa to implement a distributed lock. The lock will solve the concurrent issue.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?) no
Have unit tests been run against this PR? (Has there also been any additional testing?) in progress
Related Python client changes (link commit/PR here)
no
Related documentation changes (link commit/PR here) no
Other information: no
Please check if the PR fulfills these requirements
[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes/features)
[x] Docs have been added / updated (for bug fixes / features)