Skip to content

#9784 use shutdown() instead of shutdownNow()#10063

Merged
pujagani merged 8 commits intoSeleniumHQ:trunkfrom
asolntsev:wait-for-current-tasks-completion
Nov 24, 2021
Merged

#9784 use shutdown() instead of shutdownNow()#10063
pujagani merged 8 commits intoSeleniumHQ:trunkfrom
asolntsev:wait-for-current-tasks-completion

Conversation

@asolntsev
Copy link
Copy Markdown
Contributor

it waits for completion of already started tasks. Otherwise it may causes errors in those tasks, including succeeding NoClassDefFoundError.

Description

One more fix for #9784

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Comment thread java/src/org/openqa/selenium/remote/service/DriverCommandExecutor.java Outdated
asolntsev and others added 4 commits November 22, 2021 22:59
@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@pujagani pujagani merged commit 28070d2 into SeleniumHQ:trunk Nov 24, 2021
@pujagani
Copy link
Copy Markdown
Contributor

Thank you! @asolntsev

@asolntsev asolntsev deleted the wait-for-current-tasks-completion branch November 24, 2021 07:00
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
…HQ#10063)

* SeleniumHQ#9784 use `shutdown()` instead of `shutdownNow()`

it waits for completion of already started tasks. Otherwise it may causes errors in those tasks, including succeeding NoClassDefFoundError.

* SeleniumHQ#9784 shutdown gracefully the executor service

Co-authored-by: Puja Jagani <[email protected]>
Co-authored-by: Diego Molina <[email protected]>
elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants