You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/09/09 09:40:00 UTC
[jira] [Work logged] (HIVE-26530) HS2 OOM-OperationManager.queryIdOperation does not properly clean up multiple queryIds
[ https://issues.apache.org/jira/browse/HIVE-26530?focusedWorklogId=807339&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-807339 ]
ASF GitHub Bot logged work on HIVE-26530:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Sep/22 09:39
Start Date: 09/Sep/22 09:39
Worklog Time Spent: 10m
Work Description: baifachuan opened a new pull request, #3589:
URL: https://github.com/apache/hive/pull/3589
### What changes were proposed in this pull request?
`service/src/java/org/apache/hive/service/cli/operation/Operation.java`
Add a function:
```java
public String getQueryId() {
return queryState.getQueryId();
}
```
`service/src/java/org/apache/hive/service/cli/operation/OperationManager.java`
Update the `getQueryId` function to :
```java
private String getQueryId(Operation operation) {
return operation.getQueryId();
}
```
### Why are the changes needed?
All operations using the same query id in the global Hive config, cause the id covered.
Hive Server2 will OOM.
I found the same issue: https://issues.apache.org/jira/browse/HIVE-22275
But it is only fixed on 4.0.0, But I using 3.1.2 and using the airflow to submit hive SQL.
Issue Time Tracking
-------------------
Worklog Id: (was: 807339)
Remaining Estimate: 167h 50m (was: 168h)
Time Spent: 10m
> HS2 OOM-OperationManager.queryIdOperation does not properly clean up multiple queryIds
> --------------------------------------------------------------------------------------
>
> Key: HIVE-26530
> URL: https://issues.apache.org/jira/browse/HIVE-26530
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 3.1.2
> Reporter: Fachuan Bai
> Assignee: Fachuan Bai
> Priority: Major
> Fix For: 3.1.2
>
> Original Estimate: 168h
> Time Spent: 10m
> Remaining Estimate: 167h 50m
>
> Version: Hive 3.1.2
> I used Airflow to execute the Hive SQL while the Hive Server2 will OOM.
> I found the same issue: https://issues.apache.org/jira/browse/HIVE-22275
> But it is only fixed on 4.0.0
--
This message was sent by Atlassian Jira
(v8.20.10#820010)