ctubbsii commented on PR #5439:
URL: https://github.com/apache/accumulo/pull/5439#issuecomment-2777236909
I think we could store the process ID `ProcessHandle.current().pid()` in the
ServiceLockData. That would empower ServiceStatusCmd and ZooZap to be able to
view and/or zap based on host and PID with includes and excludes patterns. The
`accumulo-cluster` script could have a status command that reports on the PIDs
for each host.
With those, you could do something like (pseudo-code):
```bash
for statusline in $(accumulo-cluster status); do
host=parseHost(statusline)
pids=parsePids(statusline)
ZooZap --tservers --host=$host --exclude-pids=$pids # would probably want
to group by host
done
```
The actual command-line options for filtering based on type, hostname, port,
pids, could vary, but this is the basic idea. The `accumulo-cluster status`
would only show the running PIDs from the currently configured cluster.yaml, so
if those are excluded from zapping, they should be the only ones remaining
after zapping.
--
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]