Skip to content

Commit

Permalink
#290 code review commit
Browse files Browse the repository at this point in the history
  • Loading branch information
heziai committed Nov 17, 2017
1 parent 284d983 commit b9ae393
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public static void tearDown() throws Exception {
*/
@Test
public void test_A_NormalFlow() throws Exception {
String jobName = "test_A_Extract";
String jobName2 = "test_A_Extract2";
String jobName = "test_A_NormalFlow";
String jobName2 = "test_A_NormalFlow2";

final JobConfiguration jobConfiguration = new JobConfiguration(jobName);
jobConfiguration.setCron("* * * * * ? 2099");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void childEvent(Type type, String path, String nodeData) throws Exception
try {
if (isExecutorNoTraffic(type, path)) {
String executorName = SaturnExecutorsNode.getExecutorNameByNoTrafficPath(path);
namespaceShardingService.asyncShardingWhenExecutorExtractTraffic(executorName);
namespaceShardingService.asyncShardingWhenExtractExecutorTraffic(executorName);
} else if (isExecutorTraffic(type, path)) {
String executorName = SaturnExecutorsNode.getExecutorNameByNoTrafficPath(path);
namespaceShardingService.asyncShardingWhenRecoverExecutorTraffic(executorName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ protected boolean pick(List<String> allJobs, List<String> allEnableJobs, List<Sh
}

if (theExecutor == null) {
LOGGER.info("The executor {} is offline or already noTraffic, unnecessary to extract traffic", executorName);
LOGGER.warn("The executor {} maybe offline, unnecessary to extract traffic", executorName);
return false;
}

Expand Down Expand Up @@ -1123,7 +1123,7 @@ protected boolean pick(List<String> allJobs, List<String> allEnableJobs, List<Sh
}
}
if (theExecutor == null) {
LOGGER.info("The executor {} is offline, unnecessary to recover traffic", executorName);
LOGGER.warn("The executor {} maybe offline, unnecessary to recover traffic", executorName);
return false;
}

Expand Down Expand Up @@ -1696,7 +1696,7 @@ public void asyncShardingWhenExecutorOffline(String executorName) throws Excepti
/**
* 摘取流量
*/
public void asyncShardingWhenExecutorExtractTraffic(String executorName) throws Exception {
public void asyncShardingWhenExtractExecutorTraffic(String executorName) throws Exception {
if (isLeadership()) {
shardingCount.incrementAndGet();
executorService.submit(new ExecuteExtractTrafficShardingTask(executorName));
Expand Down

0 comments on commit b9ae393

Please sign in to comment.