When a primary-replica inconsistency occurs in the China-domestically developed GBase 8a MPP database from GBASE, the cluster records an event. gcadmin showXXXevent shows which tables are affected, but the root cause normally means digging into the scheduler node logs. A newer version adds an optional detail parameter that displays the time of the problem, the source node and the operation type that triggered it directly.
Reference
The companion note on viewing the details of cluster data inconsistency in GBase8a MPP Cluster.
The new output style
The cluster used for this test runs version 9.5.3.28. The source note includes screenshots of the output; the fields described below are the ones the new parameter adds.
Viewing all event information
The new parameter is appended after showXXXevent and is off by default.
- Time: when the problem occurred.
- Source: the node that triggered the problem (the scheduler node).
- SessionID: the session id of the SQL that triggered it, matching the ID in
show processlist. - Cmd: the SQL type that triggered the problem.
Viewing event information for a specific table shard
The same parameter can be scoped to a single table shard.
Checking the detailed log
On the affected node, open the express log and find the matching timestamp for more detail. In this case the log showed that node 202 had gone offline.
Going forward, reach for the detail parameter first on a gbase cluster when an inconsistency event appears: the time, source node and session id save a trip through the scheduler logs, and the feature is present in 9.5.3.28 as of 2023-04-20 — a gbase database on an older version may not offer it yet.
