Allow ack unpromotable refresh request before shard is created
If a search node lags behind in cluster state, it is possible that a refresh request arrives before the shard is even ready. This in turn fails the shard and leads to unnecessary failure and recovery. This PR allow search node to ack the refresh request before the shard is created to prevent that from happening. The subsequent recovery process of the search shard should ensure it using the latest commit data.
Depends on: serverless 2277
Resolves: serverless 2258
Pinging @elastic/es-distributed (Team:Distributed)
As suggested, updated this PR to just respond OK to the refresh request (depends on serverless 2195). Thanks!
@elasticmachine update branch