Skip to content

Commit

Permalink
Merge pull request #269 from wayyoungboy/2.2.0-qulei
Browse files Browse the repository at this point in the history
fix rca ddl_disk_full
  • Loading branch information
Teingi committed Jun 20, 2024
2 parents 1bdb4f1 + 45d55c5 commit df90dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion handler/rca/rca_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def add_record(self, record):
self.stdio.verbose("add record: {0}".format(fill(record, width=100)))

def add_suggest(self, suggest):
self.suggest += suggest
self.suggest += suggest + "\n"
if self.stdio is not None:
self.stdio.verbose("add suggest: {0}".format(suggest))

Expand Down
9 changes: 5 additions & 4 deletions handler/rca/scene/ddl_disk_full_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,14 @@ def execute(self):
self.record.add_record("magnification is 5.5")
target_server_estimated_size = int(estimiated_index_size * 55 / 10)
self.record.add_record("estimated_index_size with magnification is {0}B as {1}".format(target_server_estimated_size, translate_byte(target_server_estimated_size)))
new_node_estimated_size["estimiated_index_size"] = estimiated_index_size
new_node_estimated_size["estimiated_index_size"] = target_server_estimated_size
new_estimated_size.append(new_node_estimated_size)
self.record.add_record(
"On target_server_ip is {0}, target_server_port is {1}, estimiated_index_size is {2}B as {3}".format(node_estimated_size["svr_ip"], node_estimated_size["svr_port"], estimiated_index_size, translate_byte(estimiated_index_size))
"On target_server_ip is {0}, target_server_port is {1}, estimiated_index_size is {2}B as {3}".format(
node_estimated_size["svr_ip"], node_estimated_size["svr_port"], target_server_estimated_size, translate_byte(target_server_estimated_size)
)
)
self.estimated_size = new_estimated_size
for estimated_size in self.estimated_size:
for estimated_size in new_estimated_size:
target_server_ip = estimated_size["svr_ip"]
target_server_port = estimated_size["svr_port"]
target_server_estimated_size = int(estimated_size["estimiated_index_size"])
Expand Down

0 comments on commit df90dea

Please sign in to comment.