zhangyue19921010 opened a new pull request, #30151: URL: https://github.com/apache/flink/pull/30151
## What is the purpose of the change DataStream V2 accepts NaN and positive infinity in a slot sharing group. Applying the group to a transformation then fails during CPU resource conversion. [FLINK-41689](https://issues.apache.org/jira/browse/FLINK-41689) ## Brief change log Validate the CPU count in `SlotSharingGroup.Builder.setCpuCores` and document its finite, positive range. ## Verifying this change The new regression failed on master and passed with the fix. All 84 selected tests passed across the core API, core resource classes, and DataStream V2 transformations. A conversion probe also checked fractional CPU counts and rejection of non-finite inputs at the setter. ## Does this pull request potentially affect one of the following parts For NaN and positive infinity, the experimental DataStream V2 builder now throws `IllegalArgumentException` from `setCpuCores`. Previously, resource conversion threw `NumberFormatException` when the group was applied. ## Documentation Updated the setter Javadoc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
