Repository navigation
Description
Branch Name
main
Commit ID
7a01e120c610f0ac4d66c2bce22e3cd624ceb751
Other Environment Information
- Host:
[email protected], Debian Linux,linux/amd64 - Binary: rebuilt from the commit above with Go
1.26.4,GOAMD64=v3,GOEXPERIMENT=simd - Topology: standard
etc/launch-multi-cn/launch.toml(1 LogService + 1 TN + 2 CN) - Original ports: CN SQL
16001and16002, LogService32001 - Reproduced again with a clean temporary data directory and isolated ports
17601/17602and LogService34001 - No partitioned tables or partition features are involved
Actual Behavior
After a clean 2CN launch reaches wait.tn.ready.ready.completed and both CN SQL endpoints accept queries, LogService emits this error once per heartbeat indefinitely:
ERROR logservice/store.go:654 error: internal error: shard 2 not started on store 7c4dccb4-4d3c-41f8-b482-5251dc7a41bf
ERROR log-service ... failed to check health ...
The same error reproduces with the isolated clean data directory, so it is not stale catalog or old mo-data state. The public SQL path remains usable, but checkReplicaHealth handles this error by setting mo_logservice_replica_health to 0, which reports the active replica as unhealthy after successful cluster readiness.
The standard 2CN black-box harness passed DDL/DML, cross-CN reads and writes, joins, aggregates, transactions, prepared statements, set operators, concurrent inserts, and connection churn; the health error remains independently observable in the service log.
Expected Behavior
Once TN is ready and the active LogService can serve the 2CN cluster, the TN replica health check should resolve successfully and mo_logservice_replica_health should stay healthy (1). If the check is intentionally not applicable in a single-LogStore local deployment, it should not emit a continuous error or report a false unhealthy gauge.
Steps to Reproduce
-
On a clean checkout of the commit above, build
mo-service. -
From
/home/xupeng/matrixone, launch:./mo-service -launch etc/launch-multi-cn/launch.toml
-
Wait until ports
16001and16002are listening and the log containswait.tn.ready.ready.completed. -
Verify both public endpoints:
mysql --protocol=tcp --skip-ssl -h127.0.0.1 -P16001 -uroot -p111 -e 'select 1+1' mysql --protocol=tcp --skip-ssl -h127.0.0.1 -P16002 -uroot -p111 -e 'select 1+1'
-
Observe
/tmp/matrixone-main-2cn.logfor at least 30 seconds:grep 'shard 2 not started on store' /tmp/matrixone-main-2cn.log -
Repeat with a clean temporary data directory and isolated ports; the same health error persists after readiness.
Additional information
Relevant code path:
pkg/logservice/service_commands.go:checkReplicaHealthobtains the TN shard ID and callsstore.checkHealth.pkg/logservice/store.go:checkHealthreturnsshard %d not started on store %swhen the active store UUID is absent fromcs.LogState.Stores.pkg/logservice/service_commands.go: the error path setsv2.LogServiceReplicaHealthGaugeto0.
This appears distinct from the previously reported failover/Operator issues #26058 and #26059 because it reproduces on a clean, single-LogStore local 2CN launch without member replacement or network chaos.
Activity
XuPeng-SH commentedon Aug 19, 2026
Reproduced again on a later current-main commit, with clean project data.
Branch Name: main
Commit ID: 6f42b19
Environment:
Actual Behavior:
failed to check health: internal error: shard 2 not started on store ...
Expected Behavior:
After cluster readiness, the active replica health check should resolve successfully. If the check is not applicable to this single-LogStore compose topology, it should not continuously report an ERROR and unhealthy gauge.
Steps to Reproduce:
Consequence:
XuPeng-SH commentedon Aug 19, 2026
Correction to the reproduction comment above: the exact total was 60 fresh database/table/insert sequences, not 65 (10 baseline + 40 across four pressure rounds + 10 post-pressure controls). All 60 completed and all pressure-created rows checked were visible.
fix(logservice): check health with backing log shard (#27429)
LeftHandCold commentedon Sep 1, 2026
fixed
fix(logservice): check health with backing log shard (matrixorigin#27429
fix(logservice): check health with backing log shard (matrixorigin#27429
fix(logservice): check health with backing log shard (matrixorigin#27429