Repository navigation
Fix UnsupportedOperationException because of ImmutableCollection.add - #29570
Conversation
|
Assigning reviewers. If you would like to opt out of this review, comment R: @kennknowles added as fallback since no labels match configuration Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
Thanks for the fix. This was introduced in #28621. I am trying to understand why the unit test did not capture it, possibly ExperimentalOption wasn't Immutable Collection there. In contrast, what is your use case making ExperimentalOption Immutable at this code path? |
|
I see, it was because the line was and at time it was evaluated options.getExperiments() was null |
|
Check the other uses of experiments. It's immutable everywhere. I don't know why exactly, but I'm just following that convention. |
Abacn
left a comment
There was a problem hiding this comment.
Thanks for the fix! verified it works
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, commentfixes #<ISSUE NUMBER>instead.[ ] UpdateCHANGES.mdwith 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)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.