Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job shutdown exist resource is not reclaimed. #2437

Open
ExploreHeart opened this issue Sep 10, 2024 · 1 comment
Open

Job shutdown exist resource is not reclaimed. #2437

ExploreHeart opened this issue Sep 10, 2024 · 1 comment

Comments

@ExploreHeart
Copy link

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();
}
@linghengqian
Copy link
Member

Do you plan to submit PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants