Skip to content

Commit

Permalink
fix: ops log print
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed Oct 10, 2023
1 parent bcc0b1f commit 025b777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/openmldb_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def RecoverPartition(executor, db, partitions, endpoint_status):
db=db, table_name=table_name, pid=pid, leader_endpoint=leader_endpoint))
status = executor.LoadTable(leader_endpoint, table_name, tid, pid)
if not status.OK():
log.error("load table failed. db {db} name {table_name} tid {tid} pid {pid} endpoint {leader_endpoint} msg {status.GetMsg()}".format(
db=db, table_name=table_name, tid=tid, pid=pid, leader_endpoint=leader_endpoint, status=status))
log.error("load table failed. db {db} name {table_name} tid {tid} pid {pid} endpoint {leader_endpoint} msg {status}".format(
db=db, table_name=table_name, tid=tid, pid=pid, leader_endpoint=leader_endpoint, status=status.GetMsg()))
return Status(-1, "recover partition failed")
if not partitions[leader_pos].IsAlive():
status = executor.UpdateTableAlive(db, table_name, pid, leader_endpoint, "yes")
Expand Down

0 comments on commit 025b777

Please sign in to comment.