Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Backport Java-only Pubsub #273

Closed
wants to merge 4 commits into from
Closed

Backport Java-only Pubsub #273

wants to merge 4 commits into from

Conversation

mshields822
Copy link
Contributor

@mshields822
Copy link
Contributor Author

@dhalperi @davorbonaci
NOT READY FOR REVIEW
But this is mostly it, stress testing tonight.

DataflowPipelineRunner.StreamingPubsubIOWrite.class,
new PubsubIOTranslator.WriteTranslator());

PubsubUnboundedSink.class, new PubsubIOTranslator.WriteTranslator());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@peihe
Pei, I could do with your help here. Despite my efforts these rewrites never seem to apply when running on Google Cloud Dataflow.

Copy link
Contributor

@peihe peihe May 19, 2016

Choose a reason for hiding this comment

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

PubsubIOTranslator.ReadTranslator is a TransformTranslator of PubsubIO.Read.Bound
The type doesn't match for the changes above.

Are you trying to override the new pubsubIO back to nativeIO for Dataflow?

If so, I think you want to remove the two registerTransformTranslator above, and add the overide in DataflowPipelineRunner.
Here is how I did it for BigQuery,Write:
https://github.com/GoogleCloudPlatform/DataflowJavaSDK/pull/205/files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I copied your style and it looks good.

@mshields822
Copy link
Contributor Author

Ran beautifully overnight on dataflow + java pubsub (both sink and source).

@mshields822
Copy link
Contributor Author

Confirmed works, porting back to BEAM.

@dhalperi
Copy link
Contributor

Merged. Woohoo!

@mshields822
Copy link
Contributor Author

Thanks!

On Fri, May 20, 2016 at 12:35 AM, Daniel Halperin notifications@github.com
wrote:

Merged. Woohoo!


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#273 (comment)

tgroh pushed a commit to tgroh/DataflowJavaSDK that referenced this pull request Jun 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants