[JAVA-1743] Zero message size reported to ConnectionListener.messagesSent Created: 02/Apr/15  Updated: 05/May/15  Resolved: 07/Apr/15

Status: Closed
Project: Java Driver
Component/s: Monitoring
Affects Version/s: 3.0.0
Fix Version/s: 3.0.1, 3.1.0

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The message size is being calculated based on ByteBuf.remaining(), but that has to happen before the byte buffer is sent to the stream. Otherwise remaining equals 0.



 Comments   
Comment by Jeffrey Yemin [ 05/May/15 ]

Closed for 3.0.1 release.

Comment by Githook User [ 07/Apr/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Message size for send message event must be calculated before the message is written. Otherwise, ByteBuf.remaining() returns 0.

JAVA-1743
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/4d9c1a62235779316f51db94d9db4a958dc91c8b

Comment by Githook User [ 07/Apr/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Message size for send message event must be calculated before the message is written. Otherwise, ByteBuf.remaining() returns 0.

JAVA-1743
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/449d75da096517e67e8b2211ff64d9159ddb9d9d

Generated at Thu Feb 08 08:55:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.