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

Add equals/hashcode to test data class to avoid direct runner coder warning #32883

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

scwhittle
Copy link
Contributor

@scwhittle scwhittle commented Oct 21, 2024

I can't find the presubmit I observed this but it was this log:
https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/util/MutationDetectors.java#L146

This Pojo uses SchemaCoder which is consistentWithEquals, meaning Coder.structuralValue returns the value itself. Since this Pojo didn't have equals method it woudl trigger the log on equivalent pojos with the same encoding but different objects.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: 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, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

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)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions github-actions bot added the java label Oct 21, 2024
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@scwhittle scwhittle force-pushed the fix_verify_consistent branch 2 times, most recently from 2af7968 to 98209d1 Compare October 23, 2024 09:10
@scwhittle scwhittle changed the title Add equals/hashcode to test data class to avoid direct runner warning log Add equals/hashcode to test data class to avoid direct runner coder warning Oct 23, 2024
@scwhittle scwhittle closed this Oct 31, 2024
@scwhittle scwhittle reopened this Oct 31, 2024
@scwhittle
Copy link
Contributor Author

R: @Abacn

@scwhittle
Copy link
Contributor Author

failures appear unrelated

@scwhittle scwhittle requested a review from Abacn November 4, 2024 09:39
Copy link
Contributor

github-actions bot commented Nov 4, 2024

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@scwhittle scwhittle force-pushed the fix_verify_consistent branch from 98209d1 to c1bddd2 Compare November 6, 2024 08:53
Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

thank you!

For JavaPrecommit failure, opened #33028 for fix

@scwhittle scwhittle merged commit c7e4db7 into apache:master Nov 7, 2024
19 of 22 checks passed
@scwhittle scwhittle deleted the fix_verify_consistent branch November 7, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants