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-28338: Client connection count is not correct in HiveMetaStore#close #5310

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

wecharyu
Copy link
Contributor

What changes were proposed in this pull request?

  1. Revert #1655.
  2. Add a test class for HiveMetaStoreClient connections.

Why are the changes needed?

Bug fix, connection counts is used in remote metastore with TTransport, so we cannot decrease counts when transport is null.

Does this PR introduce any user-facing change?

No.

Is the change a dependency upgrade?

No.

How was this patch tested?

New test class:

mvn test -Dtest.groups= -Dtest=org.apache.hadoop.hive.metastore.client.TestHiveMetaStoreClient  -pl :hive-standalone-metastore-server

}
} catch (TException e) {
LOG.debug("Unable to shutdown metastore client. Will try closing transport directly.", e);
}
// Transport would have got closed via client.shutdown(), so we dont need this, but
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client.shutdown() calls would not close transport in client side, we must close transport explicitly.

Copy link

sonarcloud bot commented Jun 18, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@wecharyu
Copy link
Contributor Author

@zhangbutao @dengzhhu653 @saihemanth-cloudera could you pls review this pr?

Copy link
Contributor

@saihemanth-cloudera saihemanth-cloudera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

@dengzhhu653 dengzhhu653 merged commit d14f303 into apache:master Jun 29, 2024
6 checks passed
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Jul 18, 2024
…he#5310) (Wechar Yu, reviewed by Zhihua Deng, Sai Hemanth Gantasala)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants