fullstorydev / fullstorydev/solr-bench

cleanup.sh errors out if ZooKeeper not running

Open
#31 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
16
Forks
12
PR merge metrics
No merged PRs in 30d

Description

A line towards the end of cleanup.sh causes the script to error out if no ZooKeeper process is running on the box:

```
$ ./cleanup.sh
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
```

...which comes from the script command:

```
kill -9 `jps | grep QuorumPeerMain| cut -f 1 -d " "`
```

Not a major issue, but it'd be a nicer experience if we made this 'kill' command dependent on the jps/grep sub-shell actually producing a pid to terminate.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.