-
Notifications
You must be signed in to change notification settings - Fork 924
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARTEMIS-5155 Race on AMQP large message read and close
When the final frame of a large message is being written to the file in the session thread and an IO error occurs such that that connection is torn down, the large message reader can be closed before the message is fully processed resulting in corruption. The large message file close logic needs to occur on the session thread so that the processing of the bytes can finish and the message gets added to the Queue and the close can react by not deleting the file when it runs following the read task.
- Loading branch information
Showing
1 changed file
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters