Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that we don't pass negative timeInQueue to writeVLong #9662

Merged
merged 1 commit into from
Feb 11, 2015

Commits on Feb 11, 2015

  1. 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
    s1monw committed Feb 11, 2015
    Configuration menu
    Copy the full SHA
    1e07ab2 View commit details
    Browse the repository at this point in the history