Skip to content
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

keyspace, api2: fix the keyspace assignment patrol consistency #6397

Merged
merged 5 commits into from
May 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix patrolKeyspaceAssignmentState lock
Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato committed May 4, 2023
commit a2bf8a4455620fb5e74b83333c649f6c5255c9f1
1 change: 1 addition & 0 deletions server/apiv2/handlers/tso_keyspace_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func SplitKeyspaceGroupByID(c *gin.Context) {
err = manager.PatrolKeyspaceAssignment()
if err != nil {
JmPotato marked this conversation as resolved.
Show resolved Hide resolved
c.AbortWithStatusJSON(http.StatusInternalServerError, err.Error())
patrolKeyspaceAssignmentState.Unlock()
return
}
patrolKeyspaceAssignmentState.patrolled = true
Expand Down