You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though payload_type uses the same format as MIME types, for safety and simplicity, only the message brpb.StreamBackupError and UTF-8 strings are accepted by log status. The BR CLI will refuse to parse the payload if the type isn't one of them.
I think PauseReason can be JSON instead of Protocol Buffer Message, because in almost all cases, the information it provides is for humans. JSON is more flexible and more friendly to humans.
Compatibility / Feasibility
For now, the pause key was used by both TiKV and the Coordinator. But neither of them reads the value of this key. So modifications to values are safe.
The error key was written by TiKV and only reads by the BR CLI (log status).
A possible update route:
Update TiDB codebase, allowing BR CLI to read information from Pause V2.
We just read error messages from both V1 and V2.
In this step, the base library for Pause V2 can be added.2. Allowing the coordinator and BR CLI to pause a task by V2.
Maybe allow the user to attach a custom message to this pause.
Allowing the TiKV to upload errors by V2.
The text was updated successfully, but these errors were encountered:
Enhancement
Background
Now, when a task encounters a fatal error, the following keys are written:
So far, we have suffered some pains due to this like:
Design
Here I propose a new format of pausing:
Notes:
payload_type
uses the same format as MIME types, for safety and simplicity, only the messagebrpb.StreamBackupError
and UTF-8 strings are accepted bylog status
. The BR CLI will refuse to parse the payload if the type isn't one of them.PauseReason
can be JSON instead of Protocol Buffer Message, because in almost all cases, the information it provides is for humans. JSON is more flexible and more friendly to humans.Compatibility / Feasibility
For now, the pause key was used by both TiKV and the Coordinator. But neither of them reads the value of this key. So modifications to values are safe.
The error key was written by TiKV and only reads by the BR CLI (log status).
A possible update route:
The text was updated successfully, but these errors were encountered: