Ashwani Raina has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24681


Change subject: WIP [dist-test] Fix chrpath ETXTBSY race in dist slaves
......................................................................

WIP [dist-test] Fix chrpath ETXTBSY race in dist slaves

In run_dist_test.py, fix_rpath() is updated to handle ETXTBSY: when
chrpath fails to rewrite an RPATH in-place because the binary (e.g.
llvm-symbolizer) is being executed by another concurrent task, it now
falls back to copying the binary to a temp file, rewriting the copy,
and atomically replacing the original via os.rename(). This leaves
any in-flight execution undisturbed while ensuring the corrected RPATH
is installed.

The issue was seen during long running compaction test that made this
race more observable as the test keeps llvm-symbolizer active longer
widening the window on the same slave.

Change-Id: I80cdc5b903f5ed0865ec5a92f905a46719f7e316
---
M build-support/run_dist_test.py
1 file changed, 18 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/81/24681/1
--
To view, visit http://gerrit.cloudera.org:8080/24681
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I80cdc5b903f5ed0865ec5a92f905a46719f7e316
Gerrit-Change-Number: 24681
Gerrit-PatchSet: 1
Gerrit-Owner: Ashwani Raina <[email protected]>

Reply via email to