[SERVER-24880] Inconsistency in histogram statistics for mongos Created: 01/Jul/16  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: query-44-grooming
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File sharding-histogram-miscounts.js    
Issue Links:
Depends
Assigned Teams:
Query Execution
Operating System: ALL
Steps To Reproduce:

Attached is a script showing inconsistency in how killCursors is not counted. Put sharding-histogram-miscounts.js in jstests. This script is asserts that the killCursors command is being counted 0 times. If you run with the core executor, it will fail as expected, i.e.:

python ./buildscripts/resmoke.py --executor=core ./jstests/sharding-histogram-miscounts.js

This fails with the expected message:

[thread1] Error: [99] != [0] are not equal : Miscounted commands :

However, running the following will incorrectly succeed:

python ./buildscripts/resmoke.py --executor=sharded_collections_jscore_passthrough ./jstests/sharding-histogram-miscounts.js

However, if the test is run with the sharded_collections_jscore_passthrough executor and repeated multiple times, it will strangely fail

python ./buildscripts/resmoke.py --repeat=30 --executor=sharded_collections_jscore_passthrough ./jstests/sharding-histogram-miscounts.js

This fails with the a message similar to this one:

[js_test:sharding-histogram-miscounts] 2016-07-01T14:23:30.530-0400 assert: [700] != [0] are not equal : Miscounted commands

My current conjecture (based on logging from mongod) is that the kill cursors command are these additional commands. I'm unsure why these are counted since the script does call close on the cursors.

Participants:

 Description   

Statistics for the operation latency histogram are inconsistently recorded for mongos.



 Comments   
Comment by Githook User [ 06/Jul/16 ]

Author:

{u'username': u'kevinAlbs', u'name': u'Kevin Albertson', u'email': u'kevin.albertson@10gen.com'}

Message: SERVER-24880 Exclude operation latency histogram test from sharding suites
Branch: master
https://github.com/mongodb/mongo/commit/8833b39af63a926fe7c8538e26666f3c2f20855b

Generated at Thu Feb 08 04:07:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.