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-28239: Fix bug on HMSHandler#checkLimitNumberOfPartitions #5246

Merged
merged 3 commits into from May 21, 2024

Conversation

wecharyu
Copy link
Contributor

What changes were proposed in this pull request?

Fix the bug on HMSHandler#checkLimitNumberOfPartitions:

  1. use maxParts to determine if need check partition limit
  2. remove maxParts on checkLimitNumberOfPartitions

Why are the changes needed?

Fix the bug, assume that HMS configure metastore.limit.partition.request as 100, the client calls get_partitions_by_filter with maxParts as 101, and the matching partition number is 50, in this case the HMS server should not throw MetaException by partition limit check.

Does this PR introduce any user-facing change?

No.

Is the change a dependency upgrade?

No.

How was this patch tested?

Fix some unit tests.

deniskuzZ
deniskuzZ previously approved these changes May 18, 2024
Copy link
Member

@deniskuzZ deniskuzZ 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

@deniskuzZ deniskuzZ dismissed their stale review May 18, 2024 10:50

Added minor naming comments

Copy link
Member

@deniskuzZ deniskuzZ 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, pending tests

Copy link

sonarcloud bot commented May 20, 2024

Quality Gate Passed Quality Gate passed

Issues
7 New issues
0 Accepted issues

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

See analysis details on SonarCloud

@deniskuzZ deniskuzZ merged commit 6dc569d into apache:master May 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants