elasticsearch/elasticsearch — pull request #7639 by bleskes (2014-09-08 10:14:03+00:00)
Title: [Stats] update action returns before updating stats for `NONE` operations

We keep around a noop stats indicating how many update operations ended up not updating the document (typically because it didn't change). However, the TransportUpdateAction update that counter only after returning the result. This can throw off stats check which are done immediately after, potentially causing test failures.