docs(job-array-one-based-index): feature validation round 1 follow-ups
bug-1903 partial (page-token precision fixed in efff6b65), bug-1907
logged (harness setpend/jobrun cannot report not-found), stale
parse_jobid regex comment in repl.c updated.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
efff6b658f
commit
0f4effe7df
5 changed files with 100 additions and 16 deletions
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
id: "bug-1903"
|
||||
status: "open"
|
||||
status: "partial"
|
||||
status_updated: "2026-10-01"
|
||||
status_note: "newly logged"
|
||||
status_note: "page-token float64 precision loss for array element IDs fixed in efff6b65; the original GetJobsInfo repeat-first-page symptom with plain jobs is still unexplained"
|
||||
component: "apiserver"
|
||||
severity: "wrong-result"
|
||||
timestamp: "2026-10-01T12:21:25Z"
|
||||
|
|
@ -37,15 +37,17 @@ related: []
|
|||
- Evidence: not kept (reviewer's temporary probe test, deleted)
|
||||
|
||||
## Root cause
|
||||
TODO: required for fixed/partial
|
||||
Two separate parts:
|
||||
1. (found 2026-10-01, fixed) `store/query.go` `findPageTokenIndex` decoded the token with `json.Unmarshal` into `interface{}`, so `unique_job_id` became a float64. Array element IDs set bit 62, where float64 spacing is 1024, so the token no longer named the page's last row: paging skipped rows (N >= 1024) or found no match and restarted at row 0 (1001 <= N <= 1023). `queryControlRowsByJobID`, `FetchJobList` and `GetJobByIDs` page until the token is empty, so the restart case loops forever.
|
||||
2. (open) The originally observed repeat-the-first-page with plain jobs and a small `limit` in `GetJobsInfo` is not explained by part 1 for IDs below 2^53; cause not yet found.
|
||||
|
||||
## Fix
|
||||
TODO: required for fixed/partial
|
||||
Part 1: efff6b65. `findPageTokenIndex` decodes with `json.Decoder.UseNumber()` and converts integers to int64 (floats stay float64). Part 2: not yet fixed.
|
||||
|
||||
## Verification
|
||||
- Test: TODO: name + file; RED before the fix, GREEN after
|
||||
- Suites: TODO: suite results and build profile
|
||||
- Live: TODO: soak/deploy run, or n/a and why
|
||||
- Test: (part 1) `TestPaginateRowsArrayElementIDsRoundTripPageToken` in `src/frontend/apiserver/store/query_test.go`; RED before the fix (2452 of 2500 rows), GREEN after
|
||||
- Suites: apiserver store/utils/controllers go test ok (CGO_ENABLED=0)
|
||||
- Live: n/a (unit-level; part 2 still needs a reproduction)
|
||||
|
||||
## References
|
||||
- Related: bug-1898 (found while fixing it)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue