Registry Mirror
Skip to content

Conversation

@Caideyipi

Copy link
Copy Markdown
Contributor

Bug

DeleteTimeseries can return after submitting asynchronous work. The aligned-tablet E2E tests then immediately reuse root.ln.device1, so inserts may race with the pending deletion or observe data left by a previous run.

Fix

Record the latest deletion procedure ID, check the delete request error, and poll SHOW DELETE TIMESERIES PROGRESS until the new procedure reaches SUCCESS. The helper fails on ROLLEDBACK and times out after 60 seconds.

For example, tests deleting root.ln.device1.** now wait for that deletion to complete before inserting the next tablet.

Validation

Go client and subscription tests pass, the E2E package compiles, and go build ./... passes. The full E2E run was not run locally because Docker is unavailable.

@Caideyipi

Caideyipi commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

CI follow-up for run 45101103104:

The E2E failure came from passing zero-based indexes to SessionDataSet.Get*ByIndex, which expects one-based indexes. Index 0 became internal index -1, causing index -1 out of range 6. The helper now reads ProcedureId from index 1, State from index 5, and ErrorMessage from index 6.

git diff --check passed. Local Go tests and Docker-backed E2E were not run because Go and Docker are unavailable in this environment. Reviewed head: 419270c3eb65434649325ec9025d37218f8205df. Fix commit, local HEAD, and confirmed fork/PR head: 5b9cbeaf4cae884d0c2d695ea0041f4c7dfde531. PR remains open and draft; CI for the fix is pending.

@Caideyipi
Caideyipi marked this pull request as ready for review November 23, 2026 03:08
@Caideyipi
Caideyipi marked this pull request as draft November 23, 2026 03:12
@Caideyipi

Copy link
Copy Markdown
Contributor Author

CI follow-up for run 45103367374:

The deletion progress query returned a rolled-back procedure with client.PathNotExist (508) because the pre-test cleanup wildcard had no matching timeseries. This is an expected cleanup no-op. The E2E helper now treats only that status as completed; other rollback statuses still fail.

git diff --check passed. Go tests and Docker-backed E2E were not run locally because Go and Docker are unavailable. Reviewed head: 5b9cbeaf4cae884d0c2d695ea0041f4c7dfde531. Fix commit, local HEAD, and confirmed fork/PR head: 6e88551c67eb6323e5d548decec481c751507a16. PR remains open and draft; CI after this commit is pending.

@Caideyipi
Caideyipi marked this pull request as ready for review November 23, 2026 03:23
@jt2594838
jt2594838 merged commit 5db1f23 into apache:main Nov 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants