gcrecover is the built-in service that replays cluster events in GBase 8a, the China-domestically developed MPP analytical database from GBASE. It runs on every management (gcluster) node of a gbase deployment, and gcadmin recover lets you pause it, resume it, and give one virtual cluster (VC) priority. On a busy gbase cluster, that control decides whether recovery work competes with business traffic for the same resources.
Checking Command Support
Run gcadmin --help. If the output contains a recover section, your build supports the feature:
27. gcadmin recover <[pause | continue | cancel highpriority | show < status | highpriority >] |
[highpriority vc_name [event_type]]> : event_type: {ddlevent | dmlevent | dmlstorage}
What the Subcommands Do
- pause: pause the gcrecover service. Recoveries already in progress continue, but no new recovery task starts.
- continue: resume the service. If the state is pause, it returns to normal; otherwise the command is ignored.
-
highpriority vc_name [event_type]: give one VC priority, optionally scoped to one of three event types —
ddlevent,dmlevent, ordmlstorage. -
show status: print the current service state.
continueis the normal (default) state,pausemeans paused. -
show highpriority: show the VC and event type currently prioritized (all types if none was specified explicitly). Returns
Nonewhen no priority is set.
Examples
Pausing and Resuming
Both commands can be repeated without errors:
[gbase@vm151 config]$ gcadmin recover pause
gcadmin recover pause success
[gbase@vm151 config]$ gcadmin recover pause
gcadmin recover pause success
[gbase@vm151 config]$ gcadmin recover show status
pause
[gbase@vm151 config]$ gcadmin recover continue
gcadmin recover continue success
[gbase@vm151 config]$ gcadmin recover continue
gcadmin recover continue success
[gbase@vm151 config]$ gcadmin recover show status
continue
Setting and Clearing Priority
Setting and canceling are equally idempotent:
[gbase@vm151 config]$ gcadmin recover highpriority vc_a ddlevent
gcadmin recover highpriority vc_a ddlevent success
[gbase@vm151 config]$ gcadmin recover show highpriority
gcadmin recover highpriority vc_a ddlevent
[gbase@vm151 config]$ gcadmin recover cancel highpriority
gcadmin recover cancel highpriority success
[gbase@vm151 config]$ gcadmin recover cancel highpriority
gcadmin recover cancel highpriority success
[gbase@vm151 config]$ gcadmin recover show highpriority
none
What the Log Shows
gc_recover.log records every pause, continue, and priority change, with recover change version incrementing along the way:
2026-02-11 16:05:57.934 [INFO ] <RECOVER-INFO>: refresh gcrecover status is pause
2026-02-11 16:05:59.489 [INFO ] <RECOVER-INFO>: refresh gcrecover status is pause
2026-02-11 16:06:50.154 [INFO ] <RECOVER-INFO>: refresh gcrecover status is continue
2026-02-11 16:06:52.180 [INFO ] <RECOVER-INFO>: refresh gcrecover status is continue
2026-02-11 16:08:21.377 [INFO ] <RECOVER-INFO>: get gcrecover high pri rule is vc_a&ddlevent
2026-02-11 16:08:21.378 [INFO ] <RECOVER-INFO>: get gcrecover event rule vcname-vc_a eventype-ddlevent
2026-02-11 16:08:21.378 [INFO ] <RECOVER-INFO>: recover change version 6
2026-02-11 16:08:48.273 [INFO ] <RECOVER-INFO>: get gcrecover high pri rule is none
2026-02-11 16:08:48.273 [INFO ] <RECOVER-INFO>: reset recover config none
2026-02-11 16:08:48.273 [INFO ] <RECOVER-INFO>: recover change version 7
2026-02-11 16:08:55.988 [INFO ] <RECOVER-INFO>: get gcrecover high pri rule is none
2026-02-11 16:08:55.988 [INFO ] <RECOVER-INFO>: reset recover config none
2026-02-11 16:08:55.988 [INFO ] <RECOVER-INFO>: recover change version 8
While paused, gcrecover ignores new events until the state returns to continue. Restarting the service does not reset the flag — it is stored in gcware — and the log below shows a freshly restarted service reading pause immediately:
2026-02-11 11:21:33.879 [INFO ] <RECOVER-INFO>: Recover Thread(0x7fd1b67ee700) is been built success
2026-02-11 11:21:33.879 [INFO ] <RECOVER-INFO>: Recover Thread(0x7fd1b5fed700) is been built success
2026-02-11 11:21:33.879 [INFO ] <RECOVER-INFO>: Recover Thread(0x7fd1b57ec700) is been built success
2026-02-11 11:21:33.879 [INFO ] <RECOVER-INFO>: Recover Thread(0x7fd1b4feb700) is been built success
2026-02-11 11:21:33.879 [INFO ] <RECOVER-INFO>: Recover Thread(0x7fd1b47ea700) is been built success
2026-02-11 11:22:08.783 [INFO ] <RECOVER-INFO>: refresh gcrecover status is pause
2026-02-11 11:22:17.851 [INFO ] <RECOVER-INFO>: refresh gcrecover status is continue
2026-02-11 11:22:47.391 [INFO ] <RECOVER-INFO>: get gcrecover high pri rule is none
2026-02-11 11:22:47.392 [INFO ] <RECOVER-INFO>: reset recover config none
2026-02-11 11:22:47.392 [INFO ] <RECOVER-INFO>: recover change version 2
Going forward, this is mainly a multi-VC tool: it lets one VC's events jump the recovery queue. Pause and continue are supporting capabilities for rarer cases — when recovery consumes enough resources to hurt business workloads, pause during peak hours and resume when the database is idle. Knowing that the state survives a service restart makes it safer to rely on gbase during a maintenance window.
Top comments (0)