Skip to content

Commit 99670d1

Browse files
author
Phil Winder
committed
Merge pull request #333 from mesos/fix/typos
Fix/typos
2 parents fa79dec + 7c9f1a7 commit 99670d1

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

scheduler/src/main/java/org/apache/mesos/elasticsearch/scheduler/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public Long getExecutorTimeout() {
153153
public static final String DEFAULT_EXECUTOR_IMAGE = "mesos/elasticsearch-executor";
154154
@Parameter(names = {EXECUTOR_IMAGE}, description = "The docker executor image to use.", validateWith = CLIValidators.NotEmptyString.class)
155155
private String executorImage = DEFAULT_EXECUTOR_IMAGE;
156-
public String getEexecutorImage() {
156+
public String getExecutorImage() {
157157
return executorImage;
158158
}
159159

scheduler/src/main/java/org/apache/mesos/elasticsearch/scheduler/TaskInfoFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private Protos.ExecutorInfo.Builder newExecutorInfo(Configuration configuration)
8888
.setCommand(newCommandInfo(configuration))
8989
.setContainer(Protos.ContainerInfo.newBuilder()
9090
.setType(Protos.ContainerInfo.Type.DOCKER)
91-
.setDocker(Protos.ContainerInfo.DockerInfo.newBuilder().setImage(configuration.getEexecutorImage()).setForcePullImage(configuration.getExecutorForcePullImage()))
91+
.setDocker(Protos.ContainerInfo.DockerInfo.newBuilder().setImage(configuration.getExecutorImage()).setForcePullImage(configuration.getExecutorForcePullImage()))
9292
.addVolumes(Protos.Volume.newBuilder().setHostPath(SETTINGS_PATH_VOLUME).setContainerPath(SETTINGS_PATH_VOLUME).setMode(Protos.Volume.Mode.RO)) // Temporary fix until we get a data container.
9393
.addVolumes(Protos.Volume.newBuilder().setContainerPath(SETTINGS_DATA_VOLUME_CONTAINER).setHostPath(configuration.getDataDir()).setMode(Protos.Volume.Mode.RW).build())
9494
.build());
@@ -109,7 +109,7 @@ private Protos.CommandInfo.Builder newCommandInfo(Configuration configuration) {
109109
.setShell(false)
110110
.addAllArguments(args)
111111
.setEnvironment(Protos.Environment.newBuilder().addAllVariables(executorEnvironmentalVariables.getList()))
112-
.setContainer(Protos.CommandInfo.ContainerInfo.newBuilder().setImage(configuration.getEexecutorImage()).build());
112+
.setContainer(Protos.CommandInfo.ContainerInfo.newBuilder().setImage(configuration.getExecutorImage()).build());
113113
}
114114

115115
private void addIfNotEmpty(List<String> args, String key, String value) {

scheduler/src/main/java/org/apache/mesos/elasticsearch/scheduler/controllers/ClusterController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private Object invokeConfigurationGetter(Method method) {
5757
}
5858
return result.toString();
5959
} catch (Exception e) {
60-
LOGGER.warn("Failed to invoce method", e);
60+
LOGGER.warn("Failed to invoke method", e);
6161
return "--ERROR--";
6262
}
6363
}

scheduler/src/test/java/org/apache/mesos/elasticsearch/scheduler/TaskInfoFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void testCreateTaskInfo() {
3838
when(configuration.getTaskName()).thenReturn("esdemo");
3939
when(configuration.getMesosZKURL()).thenReturn("zk://zookeeper:2181/mesos");
4040
when(configuration.getFrameworkZKURL()).thenReturn("zk://zookeeper:2181/mesos");
41-
when(configuration.getEexecutorImage()).thenReturn(Configuration.DEFAULT_EXECUTOR_IMAGE);
41+
when(configuration.getExecutorImage()).thenReturn(Configuration.DEFAULT_EXECUTOR_IMAGE);
4242
when(configuration.getElasticsearchSettingsLocation()).thenReturn("/var");
4343
when(configuration.getElasticsearchNodes()).thenReturn(3);
4444
when(configuration.getElasticsearchClusterName()).thenReturn("cluster-name");

system-test/src/systemTest/java/org/apache/mesos/elasticsearch/systemtest/ReconciliationSystemTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class ReconciliationSystemTest {
4646
);
4747
private static final int TIMEOUT = 60;
4848
private static final String MESOS_LOCAL_IMAGE_NAME = "mesos-local";
49-
private static final ContainerLifecycleManagement CONTAINER_MANGER = new ContainerLifecycleManagement();
49+
private static final ContainerLifecycleManagement CONTAINER_MANAGER = new ContainerLifecycleManagement();
5050
private static String mesosClusterId;
5151
private static DockerClient innerDockerClient;
5252

@@ -79,19 +79,19 @@ public static void beforeScheduler() throws Exception {
7979

8080
private static ElasticsearchSchedulerContainer startSchedulerContainer() {
8181
ElasticsearchSchedulerContainer scheduler = new ElasticsearchSchedulerContainer(CLUSTER.getConfig().dockerClient, CLUSTER.getMesosContainer().getIpAddress());
82-
CONTAINER_MANGER.addAndStart(scheduler);
82+
CONTAINER_MANAGER.addAndStart(scheduler);
8383
return scheduler;
8484
}
8585

8686
@After
8787
public void after() {
88-
CONTAINER_MANGER.stopAll();
88+
CONTAINER_MANAGER.stopAll();
8989
}
9090

9191
@Test
9292
public void forceCheckExecutorTimeout() throws IOException {
9393
ElasticsearchSchedulerContainer scheduler = new TimeoutSchedulerContainer(CLUSTER.getConfig().dockerClient, CLUSTER.getMesosContainer().getIpAddress());
94-
CONTAINER_MANGER.addAndStart(scheduler);
94+
CONTAINER_MANAGER.addAndStart(scheduler);
9595
assertCorrectNumberOfExecutors(); // Start with 3
9696
assertLessThan(CLUSTER_SIZE); // Then should be less than 3, because at some point we kill an executor
9797
assertCorrectNumberOfExecutors(); // Then at some point should get back to 3.
@@ -103,7 +103,7 @@ public void ifSchedulerLostShouldReconcileExecutors() throws IOException {
103103
assertCorrectNumberOfExecutors();
104104

105105
// Stop and restart container
106-
CONTAINER_MANGER.stopContainer(scheduler);
106+
CONTAINER_MANAGER.stopContainer(scheduler);
107107
startSchedulerContainer();
108108
assertCorrectNumberOfExecutors();
109109
}
@@ -126,7 +126,7 @@ public void ifExecutorIsLostWhileSchedulerIsDead() throws IOException {
126126
assertCorrectNumberOfExecutors();
127127

128128
// Kill scheduler
129-
CONTAINER_MANGER.stopContainer(scheduler);
129+
CONTAINER_MANAGER.stopContainer(scheduler);
130130

131131
// Kill executor
132132
killOneExecutor();

0 commit comments

Comments
 (0)