Skip to content

Reproducible example for JAVA-6299 - #2045

Open
mateusz-nalepa wants to merge 1 commit into
mongodb:mainfrom
mateusz-nalepa:misleading-command-times
Open

Reproducible example for JAVA-6299#2045
mateusz-nalepa wants to merge 1 commit into
mongodb:mainfrom
mateusz-nalepa:misleading-command-times

Conversation

@mateusz-nalepa

@mateusz-nalepa mateusz-nalepa commented Aug 29, 2026

Copy link
Copy Markdown

Reproducible Example of Misleading Command Response Times: https://jira.mongodb.org/browse/JAVA-6299

How to run:

docker-compose up
run tests from TwoConcurrentRequestsSpecification

Look for logs like:

// response time below are ok, cause mongo thread is doing nothing, 
// so it can process response from database 
[mongo-thread-1] | 21:59:31 | stopped: mongodb.command in 5035.032042 ms
[mongo-thread-1] | 21:59:31 | stopped: mongodb.operation in 5047.782459 ms
[mongo-thread-1] | 21:59:36 | Runnable executed in: 5010 ms
[mongo-thread-1] | 21:59:36 | Runnable waited: 5011 ms

// response time below are misleading, cause mongo thread was busy, 
// by processing previous response from database
// this is sum of server sleep + thread pool task queue wait time
[mongo-thread-1] | 21:59:36 | stopped: mongodb.command in 10050.742625 ms 
[mongo-thread-1] | 21:59:36 | stopped: mongodb.operation in 10054.712417 ms

@mateusz-nalepa
mateusz-nalepa requested a review from a team as a code owner August 29, 2026 20:01
@mateusz-nalepa mateusz-nalepa changed the title add reproducible example Reproducible example for JAVA-6299 Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant