Skip to content

Commit

Permalink
Addressing comments by d2r
Browse files Browse the repository at this point in the history
  • Loading branch information
knusbaum committed Sep 26, 2016
1 parent 6a657f1 commit 837591d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion conf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ resource.aware.scheduler.priority.strategy: "org.apache.storm.scheduler.resource

dev.zookeeper.path: "/tmp/dev-storm-zookeeper"

pacemaker.host: "localhost"
pacemaker.servers: []
pacemaker.port: 6699
pacemaker.base.threads: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ public List<String> get_worker_hb_children(String path, boolean watch) {
while (true) {
try {
HashSet<String> retSet = new HashSet<>();
int latest_time_secs = 0;

HBMessage message = new HBMessage(HBServerMessageType.GET_ALL_NODES_FOR_PATH, HBMessageData.path(path));
List<HBMessage> responses = pacemakerClientPool.sendAll(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
*/
package org.apache.storm.cluster;

import org.apache.storm.pacemaker.PacemakerClient;
import java.util.List;
import java.util.Map;
import org.apache.storm.pacemaker.PacemakerClientPool;
import org.apache.storm.utils.Utils;
import org.apache.zookeeper.data.ACL;

import java.util.List;
import java.util.Map;

public class PaceMakerStateStorageFactory implements StateStorageFactory {
@Override
public IStateStorage mkStore(Map config, Map auth_conf, List<ACL> acls, ClusterStateContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

public class PacemakerClientPool {

private static final Logger LOG = LoggerFactory.getLogger(PacemakerClientPool.class);
private static final Logger LOG = LoggerFactory.getLogger(PacemakerClientPool.class);

private ConcurrentHashMap<String, PacemakerClient> clientForServer = new ConcurrentHashMap<>();
private ConcurrentLinkedQueue<String> servers;
Expand Down Expand Up @@ -110,5 +110,4 @@ private PacemakerClient getClientForServer(String server) {
}
return client;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
import org.slf4j.LoggerFactory;

public class PaceMakerStateStorageFactoryTest {
private static Logger LOG = LoggerFactory.getLogger(PaceMakerStateStorageFactoryTest.class);

private PaceMakerClientProxy clientProxy;
private PacemakerClientPoolProxy clientPoolProxy;
private PaceMakerStateStorage stateStorage;
Expand Down

0 comments on commit 837591d

Please sign in to comment.