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

[ARORO-3289] Avoid calling getMixedTablePartitionSpecById in the scan loop #3290

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

7hong
Copy link
Contributor

@7hong 7hong commented Oct 22, 2024

Why are the changes needed?

Close #3289 .

How was this patch tested?

In my environment, there is a table with many partitions waiting to be merged. Each plan is very time-consuming. After optimization, the time-consuming is significantly reduced

image

@github-actions github-actions bot added the module:ams-server Ams server module label Oct 22, 2024
@7hong
Copy link
Contributor Author

7hong commented Oct 24, 2024

@zhoujinsong @majin1102 Do you have time to review it? Thanks

@baiyangtx
Copy link
Contributor

baiyangtx commented Nov 6, 2024

image

Will the old code trigger a reload of TableMetadata?

It seems that if the reloading of TableMetadata is not triggered, the performance of the new code is the same as that of the old code.

Iceberg TableMetadata also returns Specs Map objects from memory

image
image

@7hong
Copy link
Contributor Author

7hong commented Nov 7, 2024

@baiyangtx
Yes, the old code will refresh the TableMetadata. Especially when calling the getUGI method in an environment with Kerberos enabled, it will enter a synchronous blocking state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:ams-server Ams server module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement]: Avoid calling getMixedTablePartitionSpecById in the loop
2 participants