Race condition in PacketWriter

Description

1. the queue.poll() method in nextpacket() returns null
2. context switches happen and the queue gets 500 queue.put(packet) in sendPacket(packet) from different threads
3. the 501the queue.put(packet) blocks ( the size of the queue is 500)
4. nextpacket() continues and starts waiting on a notification
5. a notification never happens because all the following queue.put(packet) are blocked...

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Expected Effort

Ignite Forum URL

Components

Fix versions

Affects versions

Priority

Created May 3, 2014 at 8:01 AM
Updated October 28, 2020 at 1:28 PM
Resolved May 8, 2014 at 2:30 PM