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

fix rca ddl_disk_full #269

Merged
merged 2 commits into from
Jun 20, 2024
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
Next Next commit
fix rca ddl_disk_full_scene.py
  • Loading branch information
wayyoungboy committed Jun 20, 2024
commit b06907cd0d8f270c14ca4040a696abdcea9e5ee3
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