Skip to content

Job shutdown exist resource is not reclaimed. #2437

@ExploreHeart

Description

@ExploreHeart

Question

For English only, other languages will not accept.

Before asking a question, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.

version: 3.0.4

Single Instance shutdown

JobScheduler.java

public void shutdown() {
      setUpFacade.tearDown();
      schedulerFacade.shutdownInstance();
      jobExecutor.shutdown();
 }

Other instances response listener shutdown

InstanceShutdownStatusJobListener.java

public void onChange(final DataChangedEvent event) {
     //..
     schedulerFacade.shutdownInstance();
     //..
}

There is a problem other instances response listener shutdown ,Not executed setUpFacade.tearDown() and jobExecutor.shutdown()

setUpFacade.tearDown()

public void tearDown() {
  regCenter.removeConnStateListener("/" + this.jobName);
  regCenter.removeDataListeners("/" + this.jobName);
  if (reconcileService.isRunning()) {
    reconcileService.stopAsync();
  }
}

jobExecutor.shutdown()

public void shutdown() {
  executorContext.shutdown();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions