hive icon indicating copy to clipboard operation
hive copied to clipboard

HIVE-26530:HS2 OOM-OperationManager.queryIdOperation does not properl…

Open baifachuan opened this issue 3 years ago • 0 comments

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.

baifachuan avatar Sep 09 '22 09:09 baifachuan