Repository navigation
Io jms fix ack message checkpoint - #22932
Conversation
|
Assigning reviewers. If you would like to opt out of this review, comment R: @lukecwik for label java. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
Reminder, please take a look at this pr: @lukecwik @chamikaramj |
|
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment R: @apilloud for label java. Available commands:
|
|
Reminder, please take a look at this pr: @apilloud @johnjcasey |
|
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment R: @kileys for label java. Available commands:
|
- 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
- Get back to the initial implementation of JmsCheckpointMark - Add the discard attribute and discard() method to JmsCheckpointMark
|
Sorry for the long wait, lots of other issues blocked me from reviewing this. Taking a follow-up look now. |
lukecwik
left a comment
There was a problem hiding this comment.
All my comments are minor other then improving how we author the testCloseWithTimeout so it isn't reliant on Thread.sleep
| JmsIO.UnboundedJmsReader reader = source.createReader(null, null); | ||
|
|
||
| reader.start(); | ||
| reader.close(); |
There was a problem hiding this comment.
I would suggest using a mock ScheduledExecutorService that you set on the PipelineOptions object when creating the reader. This way you can inject here in the test and capture the runnable/callable directly without needing to have a test reliant on Thread.sleep
There was a problem hiding this comment.
How do we get the executor service from ExecutorOptions? As far as I can see, PipelineOptions should be then a reader field, but how do we get the ExecutorService from PipelineOptions?
There was a problem hiding this comment.
pipelineOptions.as(ExecutorOptions.class).getScheduledExecutorService(), the key part being the as(...) method
There was a problem hiding this comment.
Yes I get it. I don't know exactly how to mock it.
…nalizeCheckpoint method Co-authored-by: Lukasz Cwik <lcwik@google.com>
|
#23234 was merged allowing you to use the ScheduledExecutorService from PipelineOptions |
| consumer = null; | ||
| closeAutoscaler(); | ||
| closeConsumer(); | ||
| ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor(); |
There was a problem hiding this comment.
pipelineOptions.as(ExecutorOptions.class).getScheduledExecutorService(), the key part being the as(...) method
|
Note that the next release cut is this Wednesday so if your able to clean-up this PR we could merge it and it would make its way into the 2.43 release otherwise it will be another 6 weeks before the next release cut. |
Co-authored-by: Lukasz Cwik <lcwik@google.com>
Co-authored-by: Lukasz Cwik <lcwik@google.com>
Co-authored-by: Lukasz Cwik <lcwik@google.com>
… (don't know if it is better)
lukecwik
left a comment
There was a problem hiding this comment.
I'll try updating the test to use a mock.
|
Updated to use a mock, now waiting for results of test run before merging. |
|
Run Java PreCommit |
|
Thanks @lukecwik ! |
Hi @lukecwik would you kindly review this PR related to the following issue:
#20814
Please find the following design documentation:
https://docs.google.com/document/d/19HiNPoJeIlzCFyWGdlw7WEFutceL2AmN_5Z0Vmi1s-I/edit?usp=sharing
assign to next reviewer:
R: @lukecwik
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username).addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.