Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-13] Add JmsIO #299

Closed
wants to merge 15 commits into from
Closed

[BEAM-13] Add JmsIO #299

wants to merge 15 commits into from

Conversation

jbonofre
Copy link
Member

@jbonofre jbonofre commented May 6, 2016

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

JmsIO (unbounded source and sink).

@jbonofre
Copy link
Member Author

jbonofre commented May 6, 2016

This is a first draft for discussion and improvements. I will improve with new commits.

R: @davorbonaci
R: @dhalperi

<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jms_1.1_spec</artifactId>
<version>1.1.1</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move version to the top-level?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it's JMS specific, I think it makes sense to keep it local to the IO. WDYT ?

@davorbonaci
Copy link
Member

I'll leave the rest of the review for @dhalperi.

@jbonofre
Copy link
Member Author

Rebased and updated to move the dependencies definition in the top level pom.

About the license, the JmsIO dependencies are Apache projects (Apache ActiveMQ and Apache Geronimo), so it's already under Apache license.

<groupId>org.apache.activemq</groupId>
<artifactId>activemq-kahadb-store</artifactId>
<version>${activemq.version}</version>
</dependency>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little confused about this. I would think that these should just be dependencies of the JMS module rather than the entire project.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree: it's what I proposed first. Davor said he would prefer on top level if some other parts use it.
However, as we did in Kafka, I would keep it "local" to the JMS IO module.
I can revert this.

@dhalperi
Copy link
Contributor

dhalperi commented Jul 7, 2016

[update: Per discussion this morning, JB is still working on watermarks.]

@jbonofre
Copy link
Member Author

Jenkins failure is not related to the PR: it failed on archetype when retrieving the maven-archetype-plugin from Central.

@@ -34,6 +34,7 @@
public class JmsCheckpointMark implements UnboundedSource.CheckpointMark {

private final List<Message> messages = new ArrayList<>();
private long oldestPendingTimestamp = System.currentTimeMillis();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Suggest storing this as a Joda-time Instant.
  • Suggest using BoundedWindow.TIMESTAMP_MIN_VALUE as this is earlier than all timestamps. If you boot up and read old messages (before now), you don't want to mark the first few messages as LATE!

@dhalperi
Copy link
Contributor

Merged!

@asfgit asfgit closed this in 0866e49 Jul 27, 2016
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>jms</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beam-sdks-java-io-jms?

@jbonofre jbonofre deleted the BEAM-13-JMSIO branch September 6, 2016 05:52
iemejia pushed a commit to iemejia/beam that referenced this pull request Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants