Skip to content

Handling ResourceVersion wrap around #516

@chriskinsman

Description

@chriskinsman

I have a watch setup that I used the resourceVersion as a high watermark for. The resourceVersion eventually will wrap around and restart at 0 once the cluster has been up for quite a while.

What strategy do folks use to catch this and reset the high watermark to zero. Normally you only increase the high watermark if the resourceVersion of the current api object is > than the current high watermark.

This special case you need to reset it to a lower value.

Will a status message get sent into the watch? Will the watch end with a particular error that can be caught to reset?

Hard to test since it can take awhile to get a k8s cluster resourceVersion to wrap around!

Thanks!

Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions