Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update action returns before updating stats for NONE operations #7639

Closed
wants to merge 1 commit into from

Conversation

bleskes
Copy link
Contributor

@bleskes bleskes commented Sep 8, 2014

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.

…ions

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.
@martijnvg
Copy link
Member

LGTM

1 similar comment
@s1monw
Copy link
Contributor

s1monw commented Sep 8, 2014

LGTM

@s1monw s1monw removed the review label Sep 8, 2014
@nik9000
Copy link
Member

nik9000 commented Sep 8, 2014

LGTM thanks for catching my mistake!

@clintongormley clintongormley changed the title [Stats] update action returns before updating stats for NONE operations Stats: Update action returns before updating stats for NONE operations Sep 8, 2014
@bleskes bleskes closed this in 9054ce5 Sep 8, 2014
bleskes added a commit that referenced this pull request Sep 8, 2014
…ions

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.

Closes #7639
@bleskes bleskes deleted the noop_stats_before_return branch September 8, 2014 18:49
@bleskes
Copy link
Contributor Author

bleskes commented Sep 8, 2014

thx @martijnvg, @s1monw @nik9000

@clintongormley clintongormley changed the title Stats: Update action returns before updating stats for NONE operations Update action returns before updating stats for NONE operations Jun 7, 2015
@clintongormley clintongormley added the :Data Management/Stats Statistics tracking and retrieval APIs label Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants