hive
hive copied to clipboard
HIVE-26530:HS2 OOM-OperationManager.queryIdOperation does not properl…
What changes were proposed in this pull request?
service/src/java/org/apache/hive/service/cli/operation/Operation.java
Add a function:
public String getQueryId() {
return queryState.getQueryId();
}
service/src/java/org/apache/hive/service/cli/operation/OperationManager.java
Update the getQueryId function to :
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.