You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "zratkai (via GitHub)" <gi...@apache.org> on 2025/06/12 13:02:29 UTC
[PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
zratkai opened a new pull request, #5860:
URL: https://github.com/apache/hive/pull/5860
### What changes were proposed in this pull request?
Fix an NPE.
### Why are the changes needed?
Fix an NPE.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manually.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "zratkai (via GitHub)" <gi...@apache.org>.
zratkai commented on code in PR #5860:
URL: https://github.com/apache/hive/pull/5860#discussion_r2143461626
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java:
##########
@@ -119,7 +119,7 @@ public void startPool(HiveConf conf, final WMFullResourcePlan resourcePlan) thro
if (resourcePlan != null) {
Collection<String> appliedTriggers = updateTriggers(resourcePlan);
LOG.info("Updated tez session pool manager with triggers {} from active resource plan: {}",
- appliedTriggers, resourcePlan.getPlan().getName());
+ appliedTriggers, resourcePlan == null || resourcePlan.getPlan() == null ? "null" : resourcePlan.getPlan().getName());
Review Comment:
Good catch, refactored.
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java:
##########
@@ -119,7 +119,7 @@ public void startPool(HiveConf conf, final WMFullResourcePlan resourcePlan) thro
if (resourcePlan != null) {
Collection<String> appliedTriggers = updateTriggers(resourcePlan);
LOG.info("Updated tez session pool manager with triggers {} from active resource plan: {}",
- appliedTriggers, resourcePlan.getPlan().getName());
+ appliedTriggers, resourcePlan == null || resourcePlan.getPlan() == null ? "null" : resourcePlan.getPlan().getName());
Review Comment:
Good catch, refactored.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #5860:
URL: https://github.com/apache/hive/pull/5860#issuecomment-2970053495
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5860) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5860&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5860&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=5860&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5860&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5860&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5860)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #5860:
URL: https://github.com/apache/hive/pull/5860#issuecomment-2967968475
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5860) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5860&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5860&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=5860&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5860&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5860&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5860)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "Indhumathi27 (via GitHub)" <gi...@apache.org>.
Indhumathi27 commented on code in PR #5860:
URL: https://github.com/apache/hive/pull/5860#discussion_r2143366986
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java:
##########
@@ -119,7 +119,7 @@ public void startPool(HiveConf conf, final WMFullResourcePlan resourcePlan) thro
if (resourcePlan != null) {
Collection<String> appliedTriggers = updateTriggers(resourcePlan);
LOG.info("Updated tez session pool manager with triggers {} from active resource plan: {}",
- appliedTriggers, resourcePlan.getPlan().getName());
+ appliedTriggers, resourcePlan == null || resourcePlan.getPlan() == null ? "null" : resourcePlan.getPlan().getName());
Review Comment:
resourcePlan == null check won't be applicable as it is already in the if block line:119
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "zratkai (via GitHub)" <gi...@apache.org>.
zratkai commented on code in PR #5860:
URL: https://github.com/apache/hive/pull/5860#discussion_r2152142452
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java:
##########
@@ -119,7 +119,7 @@ public void startPool(HiveConf conf, final WMFullResourcePlan resourcePlan) thro
if (resourcePlan != null) {
Collection<String> appliedTriggers = updateTriggers(resourcePlan);
LOG.info("Updated tez session pool manager with triggers {} from active resource plan: {}",
- appliedTriggers, resourcePlan.getPlan().getName());
+ appliedTriggers, resourcePlan.getPlan() == null ? "null" : resourcePlan.getPlan().getName());
Review Comment:
In line No. 119 we already check that:
if (resourcePlan != null) {...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "ayushtkn (via GitHub)" <gi...@apache.org>.
ayushtkn commented on code in PR #5860:
URL: https://github.com/apache/hive/pull/5860#discussion_r2151322649
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java:
##########
@@ -119,7 +119,7 @@ public void startPool(HiveConf conf, final WMFullResourcePlan resourcePlan) thro
if (resourcePlan != null) {
Collection<String> appliedTriggers = updateTriggers(resourcePlan);
LOG.info("Updated tez session pool manager with triggers {} from active resource plan: {}",
- appliedTriggers, resourcePlan.getPlan().getName());
+ appliedTriggers, resourcePlan.getPlan() == null ? "null" : resourcePlan.getPlan().getName());
Review Comment:
Are we sure `resourcePlan` can't be `null`?
Looking at the Hiveserver2 code, it does check for `resourcePlan` as well
https://github.com/apache/hive/blob/98c0a1a047e9c32b8418eee5c53d9413c0ac428d/service/src/java/org/apache/hive/service/server/HiveServer2.java#L933
and
https://github.com/apache/hive/blob/98c0a1a047e9c32b8418eee5c53d9413c0ac428d/service/src/java/org/apache/hive/service/server/HiveServer2.java#L952
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "kasakrisz (via GitHub)" <gi...@apache.org>.
kasakrisz merged PR #5860:
URL: https://github.com/apache/hive/pull/5860
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-29007 Fix NPE in TezSessionPoolManager [hive]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #5860:
URL: https://github.com/apache/hive/pull/5860#issuecomment-2968746908
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5860) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5860&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5860&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=5860&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5860&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5860&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5860)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org