Croway opened a new pull request, #22440:
URL: https://github.com/apache/camel/pull/22440

   ## Summary
   
   - `SamplingDefinition.description()` calls 
`TimeUtils.toDuration(samplePeriod)` before property placeholders are resolved, 
causing `NumberFormatException` when using `{{sample.period}}`
   - Changed to return the raw string value instead, consistent with how 
`ThrottleDefinition.description()` handles `timePeriodMillis`
   - Added test for property placeholder usage with `sample()`
   
   **Backport needed:** both `camel-4.14.x` and `camel-4.18.x` have the same bug
   
   ## Test plan
   
   - [x] `SamplingThrottlerTest#testSamplingWithPropertyPlaceholder` — verifies 
route starts with `{{sample.period}}` placeholder
   - [x] All existing `SamplingThrottlerTest` tests pass (6/6)


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