Skip to content

Commit

Permalink
Merge pull request #131 from smukil/update_master_from_dev
Browse files Browse the repository at this point in the history
Update master from dev
  • Loading branch information
smukil authored Dec 14, 2020
2 parents 09262fb + c02be95 commit 050595f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: java
jdk:
- oraclejdk8
- openjdk8
install: true
script: ./buildViaTravis.sh
cache:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dynomite-manager

[![Build Status](https://travis-ci.org/Netflix/dynomite-manager.svg)](https://travis-ci.org/Netflix/dynomite-manager)
[![Build Status](https://travis-ci.com/Netflix/dynomite-manager.svg)](https://travis-ci.com/Netflix/dynomite-manager)
[![Dev chat at https://gitter.im/Netflix/dynomite](https://badges.gitter.im/Netflix/dynomite.svg)](https://gitter.im/Netflix/dynomite?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/Netflix/dynomite-manager/blob/dev/LICENSE)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,17 @@ public void execute() throws Exception {
instanceState.setStorageAlive(storageProxy.isAlive());
logger.info(String.format("ProcessMonitor state: %s, time elapsted to check (micros): %s",
instanceState, stopwatch.elapsed(MICROSECONDS)));


if((!instanceState.isStorageProxyProcessAlive())) {
if (!instanceState.isStorageAlive()) {
logger.error("FATAL: Redis is down.");
// TODO: Take appropriate action.
}
else {
logger.info("Detected Dynomite process is not running. Restarting dynomite.");
}
dynomiteProcess.start();
}
/*
if((!instanceState.isStorageProxyAlive() && instanceState.isStorageProxyProcessAlive())) {
if (!instanceState.isStorageAlive()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private List<String> getStartCommand() {
*/
private List<String> getStopCommand() {
List<String> stopCmd = new LinkedList<String>();
for (String param : storageProxy.getStartupScript().split(" ")) {
for (String param : storageProxy.getStopScript().split(" ")) {
if (StringUtils.isNotBlank(param))
stopCmd.add(param);
}
Expand Down

0 comments on commit 050595f

Please sign in to comment.