[Bug]: JHB 客户稳定性测试疑似提交后读到旧凭据序列

Open
#33,294 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Ariznawlll is already working on this.

Since Nov 26, 2026.

Assessment

This issue has not been assessed yet.

Description

kind/bug needs-triage
Is there an existing issue for the same bug?
  • I searched the existing issues for the run ID and the observed sequences.
Branch Name

Unknown. The running MO instance reported git_version() as 10d204b.

Commit ID

10d204b (reported short version; full commit and branch not yet verified).

Other Environment Information
  • CloudSigma JHB stability environment, two CNs, concurrent customer-style mixed workload; data is synthetic and belongs to an isolated test database.
  • Test: customer mixed stability launch 45560080376. The Actions launch succeeded, but the background worker later stopped with InvariantError.
  • Observation: 2026-11-25 15:05:29–15:05:32 UTC. The database, local ledger, first failure and unresolved intent were retained without cleanup or replay.
Actual Behavior

For one writer (tp0), the test's independent durable ledger had acknowledged receipt sequence 9432. A subsequent transaction's receipt lookup returned 9431, and the harness stopped rather than overwriting a previously acknowledged receipt. Its next intent, sequence 9433, remains pending.

The retained trace records the receipt_verified resolution for 9432 at 15:05:29.435 UTC. According to system.statement_info, the later session performed an owner check, committed that setup transaction, then started a new transaction at 15:05:31.437 UTC. Its SELECT of soak_receipts returned successfully with one row at 15:05:32.412 UTC; the client-side first-failure evidence records that row as sequence 9431. Statement ID: 01a2133d-9048-73ea-9382-7b9ebebde9e3.

After the failure, read-only checks through the proxy and each of the two CNs, three fresh connections per route, consistently returned sequence 9432 and the acknowledged receipt. The current remote hot-row version also matches the ledger's old version. These later observations do not establish the outcome of the pending intent or explain the earlier read.

Expected Behavior

After a prior receipt is acknowledged, a newly started transaction should not observe the preceding receipt value for the same worker, subject to the configured transaction and visibility semantics. If this expectation is invalid for the actual routing or transaction configuration, please explain the applicable semantics.

Steps to Reproduce
  1. Run the customer-style mixed stability workload on an isolated JHB database with two CNs, retaining its external durable ledger and per-worker receipts.
  2. Each writer commits a versioned update and its worker receipt in one transaction. The harness verifies the receipt and acknowledges it in the ledger before issuing its next intent for that worker.
  3. In a new connection and transaction, read the prior receipt for that worker and compare the entire receipt to the acknowledged ledger value. Preserve all unresolved intents on any mismatch.
  4. In the reported run, the expected sequence was 9432, but the subsequent lookup observed 9431 and stopped the worker. This was observed under mixed load; a deterministic minimal reproduction has not yet been established.
Additional Information
  • This report is a suspected read-visibility / transaction-ordering issue, not a confirmed MO kernel root cause or proof of physical data corruption. The server-side record confirms the new transaction and successful one-row SELECT, but does not contain the returned value; that value comes from the retained client-side failure evidence.
  • The server-side record for the specific 9432 receipt update and its complete COMMIT chain has not been found. Historical Loki queries around the failure timed out. CN routing and a possible client/proxy or test-observation issue are not fully excluded; timestamps come from different components and have not been independently synchronized for that historical instant.
  • Previous short isolated mixed-load checks did not reproduce this specific failure. Please help correlate the statement/transaction with the acknowledged 9432 transaction and determine whether an older snapshot or unexpected read path can explain the observation.
  • No credentials, connection strings, customer data, or raw SQL values are included here. The retained local evidence can be shared through an appropriate internal channel.
Dominant language
Go
Stars
1.9k
Forks
312
Avg merge
22h 59m
Merged PRs (30d)
736

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from matrixorigin/matrixone

All issues in matrixorigin/matrixone

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.