undertaker86001 commented on PR #2799:
URL: https://github.com/apache/fory/pull/2799#issuecomment-3431491088

   While fixing CI, I encountered a problem. ```LinkedBlockingQueue``` and 
```ArrayBlockingQueue``` both have custom ```writeObject/readObject``` methods. 
According to requireJavaSerialization , they use ```ObjectStreamSerializer ```. 
However, the ```LinkedBlockingQueue.readObject``` method calls the ```add() 
```method during deserialization, which requires a lock. If the serialization 
lock state is incorrect, a deadlock will occur. The key issue is that 
LinkedBlockingQueue and ArrayBlockingQueue are not suitable for using 
ObjectStreamSerializer . JavaSerializer (full JDK serialization) should be used 
instead.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to