Validation problem after moving from 5.6 to 6.7

Hi there!

I upgraded my cluster from 5.6.0 to 6.7.1, and after that, I realized that documents that were created in version 5.6.0 fail when I try a partial update. The error, in particular, is as follow:

{
  "error": {
    "root_cause": [
      {
        "type": "remote_transport_exception",
        "reason": "[hoge-search001.foo][xxx.xxx.xxx.xxx:9300][indices:data/write/update[s]]"
      }
    ],
    "type": "action_request_validation_exception",
    "reason": "Validation Failed: 1: ifSeqNo is unassigned, but primary term is [3];"
  },
  "status": 400
}

There's no problem with documents created in 6.7.1.
After that, I tried in 6.5.0 (recovering from a snapshot taken in 5.6.0) and no problems so far with old and new documents.

I suspect it's related to the Optimistic Concurrency Control functionality introduced in 6.6.0.
I checked the documents failing and as I thought they don't contain the metadata fields _primary_term and _seq_no, so I wonder from where that 3 in the error is coming from.

Any thoughts?
Thanks.

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