lurui1997 opened a new pull request, #27804:
URL: https://github.com/apache/flink/pull/27804

   ## What is the purpose of the change
   
   Clarify in JavaDoc how `MetricConfig#getBoolean` handles numeric values 
(they stringify to `"1"` / `"0"`, which `Boolean#parseBoolean` does not treat 
as true/false). Extend `MetricConfigTest` with regression cases for 
`short`/`byte` integers, `BigInteger` longs, and boolean edge cases (`"1"`, 
boxed `1`/`0`).
   
   ## Brief change log
   
   - Expanded JavaDoc on `getBoolean` in `MetricConfig`
   - Added parameterized test rows in `MetricConfigTest`
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
   - `mvn -pl flink-metrics/flink-metrics-core -Dtest=MetricConfigTest test`
   
   ## Does this pull request potentially affect one of the following parts:
   
   - Dependencies: no
   - The public API: no (behavior unchanged; JavaDoc and tests only)
   - The serializers: no
   - The runtime per-record code paths: no
   - Deployment or recovery: no
   - The S3 file system connector: no
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - JavaDoc only on existing API
   
   Made with [Cursor](https://cursor.com)


-- 
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]

Reply via email to