path: root/tools/glusterfind/src/
diff options
authorMilind Changire <>2016-10-17 12:16:36 +0530
committerAravinda VK <>2016-10-26 02:09:34 -0700
commit915ae56a65d5a96bfddf977193dca60535ac7c11 (patch)
treec7d60135c7f8ff9e252738332fc2d559fa7e759f /tools/glusterfind/src/
parenta55a780349615a0e5dc2d97fec61c143d5cd8256 (diff)
tools/glusterfind: kill remote processes and separate run-time directoriesv3.9.0rc2
Problem #1: Hitting CTRL+C leaves stale processes on remote nodes if glusterfind pre has been initiated. Solution #1: Adding "-t -t" to ssh command-line forces pseudo-terminal to be assigned to remote process. When local process receives Keyboard Interrupt, SIGHUP is immediately conveyed to the remote terminal causing remote process to terminate immediately. Problem #2: Concurrent glusterfind pre runs are not possible on the same glusterfind session in case of a runaway process. Solution #2: glusterfind pre runs now add random directory name to the working directory to store and manage temporary database and changelog processing. If KeyboardInterrupt is received, the function call run_cmd_nodes("cleanup", args, tmpfilename=gtmpfilename) cleans up the remote run specific directory. Patch: 7571380 cli/xml: Fix wrong XML format in volume get command broke "gluster volume get <vol> changelog.rollover-time --xml" Now fixed function Fixed spurious trailing space getting written if second path is empty in Fixed repetitive changelog processing in > Reviewed-on: > Smoke: Gluster Build System <> > CentOS-regression: Gluster Build System <> > NetBSD-regression: NetBSD Build System <> > Reviewed-by: Aravinda VK <> (cherry picked from commit feea851fad4f89b48bfe89fe3b75250cc7bd6501) Change-Id: Ia8d96e2cd47bf2a64416bece312e67631a1dbf29 BUG: 1388731 Signed-off-by: Milind Changire <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Aravinda VK <>
Diffstat (limited to 'tools/glusterfind/src/')
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/glusterfind/src/ b/tools/glusterfind/src/
index 598cc9e..70737be 100644
--- a/tools/glusterfind/src/
+++ b/tools/glusterfind/src/
@@ -227,7 +227,7 @@ def get_changelog_rollover_time(volumename):
tree = etree.fromstring(out)
- return int(tree.find('volGetopts/Value').text)
+ return int(tree.find('volGetopts/Opt/Value').text)
except ParseError: