-
Notifications
You must be signed in to change notification settings - Fork 724
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
server/api: fix the issue about regions/check
API
#1311
Conversation
server/api/region.go
Outdated
Count: len(regions), | ||
Regions: regionInfos, | ||
} | ||
res := convertToAPIRegions(regions) |
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.
regionsInfo
?
server/api/region_test.go
Outdated
err = readJSONWithURL(url, r3) | ||
c.Assert(err, IsNil) | ||
c.Assert(r3, DeepEquals, ®ionsInfo{Count: 1, Regions: []*regionInfo{newRegionInfo(r)}}) | ||
|
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.
blank line
server/api/region_test.go
Outdated
@@ -19,6 +19,8 @@ import ( | |||
"net/url" | |||
"sort" | |||
|
|||
"github.com/pingcap/kvproto/pkg/pdpb" | |||
|
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.
Extra empty line?
* server/api: fix region check API interface
* server/api: fix region check API interface
* server/api: fix region check API interface
* server, client: fix hanging problem when etcd failed to start (#1267) * server: use same initialcluster config to restart joined member (#1279) * fix server build * pdctl: cherry pick bugfixes (#1298, #1299, #1308) * server/api: fix the issue about `regions/check` API (#1311) * fix join build * fix pdctl build * fix region test * fix warnings
What problem does this PR solve?
related #1297, the
region check
command show{}
for each region. like:What is changed and how it works?
use the
regionsInfo
struct inapi
to response the request.Check List
Tests
region check down-peer