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

HIVE-25971: Closing the thread pool created for async cache #3078

Merged
merged 1 commit into from Mar 6, 2022
Merged

HIVE-25971: Closing the thread pool created for async cache #3078

merged 1 commit into from Mar 6, 2022

Conversation

guptashailesh92
Copy link
Contributor

@guptashailesh92 guptashailesh92 commented Mar 4, 2022

For branch-2.3 : CR

What changes were proposed in this pull request?

We are closing the cached thread pool which is delaying the tez task jvm shutdown.
The pool is used for loading hash table in case of mapjoin operator.

Why are the changes needed?

Without the change, tez task jvm takes upto 1 min to shutdown.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Monitored the JVM exit time.
2022-02-03 16:47:54,432 [INFO] [main] |util.Debug|: Hook: class org.apache.hadoop.hive.ql.exec.tez.ObjectCache$2 2022-02-03 16:48:04,079 [DEBUG] [Thread-4] |util.ShutdownHookManager|: Completed shutdown in 0.001 seconds; Timeouts: 0 2022-02-03 16:48:04,088 [DEBUG] [Thread-4] |util.ShutdownHookManager|: ShutdownHookManger completed shutdown.

2022-02-03 17:04:05,491 [INFO] [main] |util.Debug|: Hook: org.apache.hadoop.hive.ql.exec.tez.ObjectCache$2@67fa5445 2022-02-03 17:04:05,508 [DEBUG] [Thread-4] |util.ShutdownHookManager|: Completed shutdown in 0.014 seconds; Timeouts: 0 2022-02-03 17:04:05,523 [DEBUG] [Thread-4] |util.ShutdownHookManager|: ShutdownHookManger completed shutdown.

@rbalamohan
Copy link
Contributor

Old PR link with comments for later ref: #3046

@rbalamohan
Copy link
Contributor

Latest PR LGTM. +1.

@rbalamohan rbalamohan merged commit a6d5e7b into apache:master Mar 6, 2022
DongWei-4 pushed a commit to DongWei-4/hive that referenced this pull request Oct 28, 2022
)

(cherry picked from commit a615317)

Co-authored-by: Shailesh Gupta <shilgu@amazon.com>
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Dec 15, 2022
)

(cherry picked from commit a615317)

Co-authored-by: Shailesh Gupta <shilgu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants