Skip to content

Commit

Permalink
Fixed #290.
Browse files Browse the repository at this point in the history
  • Loading branch information
haocao committed Apr 18, 2017
1 parent ef8963f commit 34d698e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public void update(final CloudJobConfiguration jobConfig) {
public void deregister(final String jobName) {
Optional<CloudJobConfiguration> jobConfig = configService.load(jobName);
if (jobConfig.isPresent()) {
disableJobService.remove(jobName);
configService.remove(jobName);
transientProducerScheduler.deregister(jobConfig.get());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ private void removeAppAndJobConfigurations(final String appName) {
producerManager.deregister(each.getJobName());
}
}
disableAppService.remove(appName);
appConfigService.remove(appName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ public void assertDeregisterExisted() {
for (TaskContext each : taskContexts) {
verify(schedulerDriver).killTask(Protos.TaskID.newBuilder().setValue(each.getId()).build());
}
verify(disableJobService).remove("transient_test_job");
verify(configService).remove("transient_test_job");
verify(runningService).remove("transient_test_job");
verify(readyService).remove(Lists.newArrayList("transient_test_job"));
Expand Down

0 comments on commit 34d698e

Please sign in to comment.