Open consulthys opened 4 years ago
@dimitris-athanasiou I'm not sure how this fixes the issue I've reported above... Are you sure about the issue number ? Wasn't it #56419 ?
@consulthys I think you are right, this bug has been accidentally closed via a commit message
Pinging @elastic/es-core-infra (:Core/Infra/Scripting)
This should always fail, we'll try to reproduce.
@stu-elastic Note that I can still reproduce this in 8.13.3
Elasticsearch version (
bin/elasticsearch --version
): 7.6.1 on Elastic CloudPlugins installed: N/A
JVM version (
java -version
): Elastic CloudOS version (
uname -a
if on a Unix-like system): Elastic CloudDescription of the problem including expected versus actual behavior:
I'm getting inconsistent and sporadic errors while updating documents (via script) through the
_bulk
API. The issue only happens when trying to update objects (i.e. JSON hash) inside the document.Steps to reproduce:
Here is a way to easily reproduce the problem.
1. First create a sample index+document
2. Create a script to be used in the bulk update
The script simply replaces the existing
hash
field with whatever it receives inside theparams
and adds another field to that hash:Now the thing is that sometimes the response is OK
and sometimes it yields this:
Now I know that
params
is not modifiable and I'm trying to add a field to it. The error is pretty clear. But I would expect that it always fails, not randomly.Also worth noting that it makes no difference whether the index has one primary shard or more.