This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new a5782f1b4 fix(scripts): fix the issue where running
pegasus_manual_compact.sh on small tables sometimes hangs (#2298)
a5782f1b4 is described below
commit a5782f1b4e8f695c26bdafd0603cc592cc4c9db1
Author: Guangshuo Wang <[email protected]>
AuthorDate: Fri Sep 19 15:20:08 2025 +0800
fix(scripts): fix the issue where running pegasus_manual_compact.sh on
small tables sometimes hangs (#2298)
Fix https://github.com/apache/incubator-pegasus/issues/2297.
This pull request makes a minor adjustment to the timestamp formatting in
the
`wait_manual_compact()` function of `admin_tools/pegasus_manual_compact.sh`.
The change removes the milliseconds component from the displayed timestamp
when checking compact progress.
* Timestamp formatting: Changed the date format for
`earliest_finish_time_ms` by
removing the `.000` milliseconds portion to display only seconds.
---
admin_tools/pegasus_manual_compact.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/admin_tools/pegasus_manual_compact.sh
b/admin_tools/pegasus_manual_compact.sh
index 6a37c9b69..3c8e1907a 100755
--- a/admin_tools/pegasus_manual_compact.sh
+++ b/admin_tools/pegasus_manual_compact.sh
@@ -132,7 +132,7 @@ function wait_manual_compact()
total_replica_count=$3
query_cmd="remote_command -t replica-server replica.query-compact
${app_id}"
- earliest_finish_time_ms=$(date -d @${trigger_time} +"%Y-%m-%d
%H:%M:%S.000")
+ earliest_finish_time_ms=$(date -d @${trigger_time} +"%Y-%m-%d %H:%M:%S")
echo "Checking once compact progress since [$trigger_time]
[$earliest_finish_time_ms]..."
slept=0
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]