adoroszlai commented on PR #8012:
URL: https://github.com/apache/ozone/pull/8012#issuecomment-2735592527

   > Just wondering why the process with -Dproc_om isn't present intermittently?
   > Is it because intermittent failure of om/scm start up?
   
   When running `ozone om` or similar command, the shell script starts the Java 
process as:
   
   
https://github.com/apache/ozone/blob/8489cc86b5bc23eb17e1e85b4a2d3103d7e2a1ce/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh#L1780
   
   `exec` replaces the process, so the arguments should be visible for `ps`, 
and most of the time they are.
   
   On another look at output of `ps` for failed run:
   
   ```
   hadoop       145  0.0  0.0   5288  2680 ?        S    14:21   0:00 bash 
/opt/hadoop/bin/ozone om
   hadoop       146  0.0  0.2 5966620 34944 ?       Sl   14:21   0:00 
/usr/local/jdk-21.0.2/bin/java -version
   hadoop       147  0.0  0.0   4932  2432 ?        S    14:21   0:00 
/usr/bin/coreutils --coreutils-prog-shebang=head /usr/bin/head -n 1
   ```
   
   it seems the `ozone om` command is still at an earlier stage when `ps` runs:
   
   
https://github.com/apache/ozone/blob/8489cc86b5bc23eb17e1e85b4a2d3103d7e2a1ce/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh#L1409-L1410
   
   So we may just need to wait for the check to succeed.
   
   Thanks for helping me understand the cause of the problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to