Description
In the DurationConverter, there are some edge cases are not handled correctly when fractions being used, e.g: DurationConverter.toDuration("5s").toMillis() will give the correct value of 5000 meanwhile DurationConverter.toDuration("5.5s").toMillis() will give 5005 which is wrong. Here is list of some edge cases:
- DurationConverter.toDuration("5.5s").toMillis() -> 5001
- DurationConverter.toDuration("0.01s").toMillis() -> 1
- DurationConverter.toDuration("0.1").toMillis() -> 1
- DurationConverter.toDuration("0.5s").toMillis() -> 5
Attachments
Issue Links
- relates to
-
CAMEL-15138 camel-debezium: the source code generation shouldn't create time as fraction based
- Resolved