-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add binlog_status for http api and TIDB_SERVERS_INFO
table
#13025
Conversation
domain/infosync/info.go
Outdated
Port uint `json:"listening_port"` | ||
StatusPort uint `json:"status_port"` | ||
Lease string `json:"lease"` | ||
BinlogEnabled bool `json:"binlog_enabled"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the tidb-server
is disconneted with Pump
and the user chooses to ignore the error, will the tidb-server
update the binlog_enabled
to false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed PTAL again
Codecov Report
@@ Coverage Diff @@
## master #13025 +/- ##
===========================================
Coverage 80.1291% 80.1291%
===========================================
Files 469 469
Lines 111188 111188
===========================================
Hits 89094 89094
Misses 15209 15209
Partials 6885 6885 |
@leoppro Need to update the |
/run-all-tests |
/run-all-tests |
TIDB_SERVERS_INFO
tableTIDB_SERVERS_INFO
table
I will fix ci later |
Your auto merge job has been accepted, waiting for 13152 |
/run-all-tests |
@leoppro merge failed. |
/run-all-tests |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for 13164 |
/run-all-tests |
cherry pick to release-3.0 failed |
cherry pick to release-3.1 failed |
cherry pick to release-2.1 failed |
…#13025) # Conflicts: # domain/info.go # infoschema/tables.go # sessionctx/binloginfo/binloginfo.go
…#13025) # Conflicts: # domain/info.go # infoschema/tables.go # sessionctx/binloginfo/binloginfo.go
…#13025) # Conflicts: # domain/info.go # infoschema/tables.go # sessionctx/binloginfo/binloginfo.go # Conflicts: # docs/tidb_http_api.md
What problem does this PR solve?
Users can check if all of tidb servers is enable binlog conveniently.
What is changed and how it works?
add a item named
binlog_enabled
intoServerInfo
, and display it on http api andTIDB_SERVERS_INFO
.Manual test
When binlog is not enable
When binlog is enable
When binlog is enable and
ignore-error
is enable, but write binlog failureWhen some of tidb server is old version which isn't support show
binlog_status
Check List
Tests
Related changes