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

PubsubMessageWithTopicCoder.of() is returning wrong coder #31619

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stankiewicz
Copy link
Contributor

@stankiewicz stankiewicz commented Jun 17, 2024

PubsubMessageWithTopicCoder should return PubsubMessageWithTopicCoder PubsubMessageWithAttributesAndMessageIdCoder.

While investigating Dynamic Destinations on Direct runner I found out that PubsubMessageWithTopicCoder is never used and topic is lost and pipeline fails.

fixes #31679

Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @m-trieu for label java.
R: @chamikaramj for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@sjvanrossum
Copy link
Contributor

sjvanrossum commented Jun 17, 2024

@stankiewicz do you mind also cleaning up the one occurrence of new PubsubMessageWithTopicCoder() here to use PubsubMessageWithTopicCoder.of() instead?

Copy link
Contributor

@m-trieu m-trieu left a comment

Choose a reason for hiding this comment

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

lgtm java

@chamikaramj
Copy link
Contributor

Ah, wow. Thanks for the fix.

Out of curiosity, did you actually run into a failure due to this ?
Also, would you mind filing a Github issue with details and the actual failure you potentially ran into ?

@stankiewicz
Copy link
Contributor Author

stankiewicz commented Jun 24, 2024

Yes. It took a while to debug the issue:)
bug is created.

@chamikaramj
Copy link
Contributor

Thanks LGTM.

Seems like this was added in https://github.com/apache/beam/pull/26063/files

cc: @reuvenlax in case we are missing something here.

@stankiewicz
Copy link
Contributor Author

Shall we merge it?

Copy link
Contributor

github-actions bot commented Jul 4, 2024

Reminder, please take a look at this pr: @m-trieu @chamikaramj

Copy link
Contributor

github-actions bot commented Jul 9, 2024

Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment assign to next reviewer:

R: @robertwb for label java.
R: @ahmedabu98 for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: PubsubMessageWithTopicCoder.of() returns PubsubMessageWithAttributesAndMessageIdCoder
4 participants