I'm working with the latest build of ES (just downloaded yesterday
morning from source) and I've come across an issue where when I
attempt to do a bulk delete of a child document, I'm getting an error
saying versions don't match (even through I don't specify a version,
which I understood to mean use the latest). I put a curl example at
I'm working with the latest build of ES (just downloaded yesterday
morning from source) and I've come across an issue where when I
attempt to do a bulk delete of a child document, I'm getting an error
saying versions don't match (even through I don't specify a version,
which I understood to mean use the latest). I put a curl example at bulk delete child not working · GitHub
I've tried your script both on 0.15.1 and the latest from master (from
today).
I don't get any errors. All works fine.
But I wonder if adding a cluster_health 'wait_for_status' pause after
your refresh might help?
Thanks for the reply! I'm definitely getting an error on the final delete
everytime I try it (all the other command succeed as expected):
{"took":9,"items":[{"delete":{"_index":"err_test_real","_type":"results","_id":"8a08dfb3af854f07b72b04b977f27f2a:81","error":"VersionConflictEngineException[[err_test_real][4]
[results][8a08dfb3af854f07b72b04b977f27f2a:81]:
version conflict, current
[-1], required [2]]"}}]}
I suppose I could try the cluster_health check (I'll have to dig into how
that's done), but I was under the impression that doing a refresh on the
index waiting until everything was flushed out before it returns, which is
why that call is there before the delete (or am I incorrect on the refresh
use?)
I just tried adding a curl
-XGET 'http://localhost:9200/_cluster/health?wait_for_status=yellow'
(yellow because I only have 1 node in the test setup so no replicas) and
still get the same error. I'm going to try pulling the latest and see if it
still occurs with that version
Thanks for the reply! I'm definitely getting an error on the final delete
everytime I try it (all the other command succeed as expected):
{"took":9,"items":[{"delete":{"_index":"err_test_real","_type":"results","_id":"8a08dfb3af854f07b72b04b977f27f2a:81","error":"VersionConflictEngineException[[err_test_real][4]
[results][8a08dfb3af854f07b72b04b977f27f2a:81]:
version conflict, current
[-1], required [2]]"}}]}
I suppose I could try the cluster_health check (I'll have to dig into how
that's done), but I was under the impression that doing a refresh on the
index waiting until everything was flushed out before it returns, which
is why that call is there before the delete (or am I incorrect on the
refresh use?)
Thanks for the reply! I'm definitely getting an error on the final
delete everytime I try it (all the other command succeed as expected):
{"took":9,"items":[{"delete":{"_index":"err_test_real","_type":"results","_id":"8a08dfb3af854f07b72b04b977f27f2a:81","error":"VersionConflictEngineException[[err_test_real][4] [results][8a08dfb3af854f07b72b04b977f27f2a:81]: version conflict, current [-1], required [2]]"}}]}
I retried with a cluster of 3 nodes, and it still works. I get this:
{"took":3,"items":[{"delete":{"_index":"err_test_real","_type":"results","_id":"8a08dfb3af854f07b72b04b977f27f2a:81","_version":2,"ok":true}}]}
I suppose I could try the cluster_health check (I'll have to dig into
how that's done), but I was under the impression that doing a refresh
on the index waiting until everything was flushed out before it
returns, which is why that call is there before the delete (or am I
incorrect on the refresh use?)
I think it should, but I know there have been issues with it in the
past.
Try upgrading to the latest master from today (kimchy moves at quite a
speed, so yesterday's "latest" is today's old news)
And perhaps you have something non-default in your config?
Thanks for the reply! I'm definitely getting an error on the final
delete everytime I try it (all the other command succeed as expected):
{"took":9,"items":[{"delete":{"_index":"err_test_real","_type":"results","_id":"8a08dfb3af854f07b72b04b977f27f2a:81","error":"VersionConflictEngineException[[err_test_real][4]
[results][8a08dfb3af854f07b72b04b977f27f2a:81]: version conflict, current
[-1], required [2]]"}}]}
I retried with a cluster of 3 nodes, and it still works. I get this:
Well, interesting results. It definitely still occurs with the latest from
source, BUT it doesn't happen every time I run the script (dropping the
index in between runs, refreshing and waiting for green status), I can
typically get 1 execution of the script to work from a fresh install,
usually the 1st or 2nd try succeeds, then I get the error
Thanks for the reply! I'm definitely getting an error on the final
delete everytime I try it (all the other command succeed as expected):
{"took":9,"items":[{"delete":{"_index":"err_test_real","_type":"results","_id":"8a08dfb3af854f07b72b04b977f27f2a:81","error":"VersionConflictEngineException[[err_test_real][4]
[results][8a08dfb3af854f07b72b04b977f27f2a:81]: version conflict, current
[-1], required [2]]"}}]}
I retried with a cluster of 3 nodes, and it still works. I get this:
Well, interesting results. It definitely still occurs with the latest
from source, BUT it doesn't happen every time I run the script
(dropping the index in between runs, refreshing and waiting for green
status), I can typically get 1 execution of the script to work from a
fresh install, usually the 1st or 2nd try succeeds, then I get the
error
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.