Question about doing a rolling upgrade from 6.8.6 to 7.9.3


We are preparing to do a rolling upgrade on a fairly large cluster. As part of that, we have done the rolling upgrade on a much smaller development cluster.

We left it half upgraded to see how the services will behave in the middle of the larger upgrade. Our services use Golang olivere elastic library which I don't expect support for that and my issue seems unrelated to it.

The two concerns were the way total hits are returned have changed and the removal of the doc type.

And with the cluster half upgraded (half 6.8 & half 7.9) we do get a slightly different response type depending if the load balancer hits a v6 node or v7. the olivere library naturally breaks if it gets a 7.x response due to total hits not being an integer.

Is this expected and not part of the backwards compatibility that should happen during an upgrade? implies it should be backwards compatible until the final node is upgraded expect for a few scenarios that can cause that not to happen.

Is it possible to do a rolling upgrade a large cluster (that might take 10hrs to upgrade) from 6.8.6 to 7.9.3 with no downtime or writing code to account for random responses?

It seems it should be the case and that we've done something wrong and I'm not sure what we did wrong in the process. I would just like to make sure I'm not chasing an expected outcome that won't happen because I didn't understand what the docs meant.

Yes, you should pass ?rest_total_hits_as_int=true as a query parameter in your search request to preserve the 6.x behaviour into 7.x.

You should be getting deprecation warnings in 6.8 to tell you about things like this, but perhaps this one was missed. If so, would you report it as a bug? It's also described in the breaking changes docs but that's easy to miss.


My bad, you are right that was missed and if the only thing we need to do is add that then that's very easy. Thank you.

I will check the logs regarding deprecation warnings and handle that accordingly wrt to filing a bug if it's not there.

1 Like

Sorry I didn't answer the other bit of this: you also need to specify include_type_name=true too to preserve the 6.x response format into 7.x in this respect. The docs say that omitting this argument does emit a deprecation warning.


Okay, I'll keep that in mind too. Thank you again.

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