I kind remember that ES introduce 2 phrase commit for cluster state update

can anyone show me the github issue/pull request or is it just the fake memory?

Maybe this: https://github.com/elastic/elasticsearch/pull/13062