Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that we don't pass negative
timeInQueue
to writeVLong
`#writeVLong` can only serialize positive values, yet this BWC code in `PendingClusterTask` passes occational `-1` causing assertions to trip. It also yields completely wrong values ie. if `-1 is deserialized it yields `9223372036854775807`. This commit ensure that `timeInQueue` is positive ie. at least `0` Relates to elastic#8077
- Loading branch information