-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Io jms fix ack message checkpoint (#22932)
* [BEAM-11828] => Fix read message queue implementation * [BEAM-11828] => New implementation to fix acknowledgment * [BEAM-11828] => Some refactoring (remove drainMessage method) * Update CHANGES.md * Pull request review: - Upgrade equals and hashcode method in JmsCheckpointMark - Add a serciveExecutor.schedule method in order to close the JMS session after a tiemout and discard all the related checkpointd * Pull request review: - Get back to the initial implementation of JmsCheckpointMark - Add the discard attribute and discard() method to JmsCheckpointMark * Adding some unit tests to new JmsCHeckpointMark discard method * Code review: discard checkpoint and clear messages at beginning of finalizeCheckpoint method Co-authored-by: Lukasz Cwik <[email protected]> * Throw an IllegalStateException when adding message when checkpoint is discarded * Change closeTimeout from long to Duration * CHeck that closeTimeout is non negative * Add private package fields to perform testd * Code review: update comment Co-authored-by: Lukasz Cwik <[email protected]> * Code review: add comment Co-authored-by: Lukasz Cwik <[email protected]> * Code review: remove empty space Co-authored-by: Lukasz Cwik <[email protected]> * Code review: use ExecutorOptions to get an instance of ShceduleExecutorService * Code review: avoid Thread.sleep with ExecutorService.awaitTermination (don't know if it is better) * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review * Update sdks/java/io/jms/src/test/java/org/apache/beam/sdk/io/jms/JmsIOTest.java Co-authored-by: Lukasz Cwik <[email protected]>
- Loading branch information
Showing
4 changed files
with
229 additions
and
19 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
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
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
Oops, something went wrong.