[BEAM-11907] SQS source with full functionality#14244
[BEAM-11907] SQS source with full functionality#14244aromanenko-dev merged 3 commits intoapache:masterfrom
Conversation
5c2264f to
0f88155
Compare
|
cc: @boyuanzz |
0f88155 to
3e8160b
Compare
|
@dennisylyung - Thank you for your contribution. Is this PR ready for review? |
Not yet sorry. |
|
Run Java PreCommit |
1 similar comment
|
Run Java PreCommit |
|
R: @aaltay |
|
@dennisylyung - Thank you! Not sure who might be a good reviewer for this PR. Do you mind pinging the dev@ thread you started (or a new thread) ask for reviews? |
|
@iemejia Do you think you can review, or ping someone who is suitable? Thanks! |
|
@dennisylyung I am a bit busy this week but maybe @aromanenko-dev can take a look. In the main time can you please rebase and squash your commits. Thanks ! |
a31475f to
3948f03
Compare
|
Run Java PreCommit |
1 similar comment
|
Run Java PreCommit |
|
@iemejia Sure, I'll take a look as soon as I can (I hope in a couple of next days). |
|
In the same time, I see that these 2 gradle tasks failed: More details are here |
c3fa627 to
d4a4d4b
Compare
|
Run Java PreCommit |
03d3af9 to
231518f
Compare
|
Run Java PreCommit |
|
Run Java_Examples_Dataflow_Java11 PreCommit |
checkstyle errors spotless restore nullness check suppression spotless supress nullness warning in checkpointmark''
71711ec to
ada287a
Compare
|
@aromanenko-dev It passes the java precommit tests now |
|
@dennisylyung Thanks! I'll take a look in the next week. |
@aromanenko-dev, thank you and a gentle ping to get this in your review queue. |
|
Sorry, I was quite busy last week. I'll try to take a look asap. |
aromanenko-dev
left a comment
There was a problem hiding this comment.
Code looks good for me in general, just a couple of notes. Though, since it's mostly based on Pubsub implementation (iiic), then it would make sense to ask someone, who knows PubsubIO well, take a look on this. Wdyt, @aaltay ?
.../io/amazon-web-services/src/main/java/org/apache/beam/sdk/io/aws/sqs/SqsUnboundedReader.java
Show resolved
Hide resolved
| } | ||
|
|
||
| @Test | ||
| public void checkpointCoderIsSane() { |
There was a problem hiding this comment.
Please, add "test" prefix for all test methods
There was a problem hiding this comment.
changed in the new commit
aromanenko-dev
left a comment
There was a problem hiding this comment.
It looks fine for me in general (since new functionality is mostly based on PubsubReader ones). I have just a minor request about tests.
@aaltay Please, ping someone who knows this PubsubReader functionality and who can review this in more details.
| final PCollection<Message> output = | ||
| pipeline.apply(SqsIO.read().withQueueUrl(queueUrl).withMaxNumRecords(100)); | ||
| @Test | ||
| public void testReadOneMessage() throws IOException { |
There was a problem hiding this comment.
Please, move all Reader's tests to a dedicated test class. e.g. SqsUnboundedReaderTest
There was a problem hiding this comment.
changed in the new commit
| } | ||
|
|
||
| @Test | ||
| public void testReadOneMessage() throws IOException { |
There was a problem hiding this comment.
Please, move all Reader's tests to a dedicated test class. e.g. SqsUnboundedReaderTest
There was a problem hiding this comment.
changed in the new commit
|
@dpcollins-google / @boyuanzz - Would one of you also review this change? (@aromanenko-dev mentioned that most of the change is based on the pubsub io implementation.) |
|
@boyuanzz is probably a better reviewer, but I can if they're too busy. Reach out to me internally if you need my review |
|
@boyuanzz - Would you be able to review this when you get a chance? |
|
Run Java PreCommit |
1 similar comment
|
Run Java PreCommit |
|
@aromanenko-dev I have separated the tests as suggested in your last review. |
|
@dennisylyung I don't think it's related to your change since only |
|
Run Java PreCommit |
aromanenko-dev
left a comment
There was a problem hiding this comment.
If there are no principal objections then I think it can be merged.
I agree. There is one approval, and all tests pass. Feel free to merge. |
The current SqsIO source connector has limited functionality.
This PR implements the following functionalities to SqsIO:
New functionalities are written with reference to the pubsub connector.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username).[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.