[JAVA-2204] NettyByteBuf.duplicate incorrectly handles reference counts Created: 03/Jun/16  Updated: 19/Oct/16  Resolved: 07/Jun/16

Status: Closed
Project: Java Driver
Component/s: Async
Affects Version/s: 3.0.0
Fix Version/s: 3.3.0

Type: Bug Priority: Major - P3
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   

NettyByteBuf's implementation of ByteBuf.duplicate does not handle reference counts properly. It assumes that the proxied Netty ByteBuf instance increments its own reference count when it's duplicated, but that's not the case.



 Comments   
Comment by Githook User [ 13/Jun/16 ]

Author:

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

Message: JAVA-2204: NettyByteBuf.duplicate now calls retain on the duplicated proxied ByteBuf
Branch: 3.2.x
https://github.com/mongodb/mongo-java-driver/commit/b3afc48130b85f6e023d44c95bbd11713f67a855

Comment by Githook User [ 07/Jun/16 ]

Author:

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

Message: JAVA-2204: NettyByteBuf.duplicate now calls retain on the duplicated proxied ByteBuf
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ba9a6446cf0d326cc6f485b6932b694cdaf653e0

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