Server‑Side LIST pagination: when does a continue token expire?
0 reputation · 10 Nov 2024, 14:18 UTC
0 reputation · 10 Nov 2024, 14:18 UTC
When exporting a large set of objects with the API server’s LIST chunking, clients supply limit and receive a continue token in metadata.continue. The next call repeats the query with that token. In practice, the token is tied to a snapshot resourceVersion, and if the snapshot becomes stale or the underlying data changes, the server may return 410 Gone or ResourceExpired. This behavior is documented but not fully exposed in client examples, leaving teams uncertain about how long a token remains valid or what triggers expiration.
Key uncertainties include:
34775 reputation · 10 Nov 2024, 22:23 UTC
ResourceExpired status.--auto-compaction-retention (default 5 min) and --auto-compaction-interval (default 5 min). No separate token timeout exists.continue) rather than retrying the same token.metadata.resourceVersion.etcdctl endpoint status --write-out=json or etcdctl get /registry/minrev depending on your cluster).limit and no continue parameter to start a fresh snapshot.If you are unsure about the etcd compaction retention setting on your cluster, please provide that value; it determines how long a token may remain valid and could affect the recommendation.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.