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

[Enhancement] Reduce S3 headObject requests in lake tablet GC #19148

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

sduzh
Copy link
Contributor

@sduzh sduzh commented Mar 7, 2023

Add a new FileSystem interface iterate_dir2() for getting the file modification time while traversing the directory to avoid additional FileSystem::get_file_modified_time() calls.

In fact, this PR will not have any optimization, because the new interface is not really implemented in the StarletFilesystem,, another PR is needed.

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr will affect users' behaviors
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto backported to target branch
    • 3.0
    • 2.5
    • 2.4
    • 2.3

@sduzh sduzh marked this pull request as draft March 7, 2023 12:46
@github-actions github-actions bot added the 3.0 label Mar 7, 2023
@mergify mergify bot assigned sduzh Mar 7, 2023
@sduzh sduzh force-pushed the enhancement/iterate_dir2 branch 2 times, most recently from 33a10fa to 4ad2a83 Compare March 7, 2023 12:56
@github-actions
Copy link

github-actions bot commented Mar 7, 2023

clang-tidy review says "All clean, LGTM! 👍"

@sduzh sduzh force-pushed the enhancement/iterate_dir2 branch from 4ad2a83 to 4832630 Compare March 8, 2023 09:00
@github-actions github-actions bot removed the be-build label Mar 8, 2023
@sduzh sduzh changed the title [Enhancement] Reduce S3 headObject requests [Enhancement] Reduce S3 headObject requests in lake tablet GC Mar 8, 2023
@sduzh sduzh marked this pull request as ready for review March 8, 2023 09:01
@sduzh sduzh requested review from imay, wyb and kevincai March 8, 2023 09:02
@sduzh
Copy link
Contributor Author

sduzh commented Mar 8, 2023

run starrocks_admit_test

@sduzh sduzh enabled auto-merge (squash) March 8, 2023 09:04
@sduzh sduzh disabled auto-merge March 8, 2023 09:04
@sduzh sduzh enabled auto-merge (squash) March 8, 2023 09:05
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

be/test/fs/fs_posix_test.cpp Outdated Show resolved Hide resolved
@sduzh sduzh force-pushed the enhancement/iterate_dir2 branch from 4832630 to ceaf16f Compare March 8, 2023 10:54
@github-actions github-actions bot removed the be-build label Mar 8, 2023
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

clang-tidy review says "All clean, LGTM! 👍"

be/src/storage/lake/gc.cpp Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

clang-tidy review says "All clean, LGTM! 👍"

@sduzh
Copy link
Contributor Author

sduzh commented Mar 9, 2023

run starrocks_admit_test

@sduzh sduzh requested a review from imay March 9, 2023 04:34
@sduzh
Copy link
Contributor Author

sduzh commented Mar 9, 2023

run starrocks_admit_test

Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
@sduzh sduzh force-pushed the enhancement/iterate_dir2 branch from 77212e0 to 12938b9 Compare March 9, 2023 11:27
@github-actions github-actions bot removed the be-build label Mar 9, 2023
@sduzh
Copy link
Contributor Author

sduzh commented Mar 9, 2023

run starrocks_admit_test

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

clang-tidy review says "All clean, LGTM! 👍"

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.9% 1.9% Duplication

@wanpengfei-git wanpengfei-git added the Approved Ready to merge label Mar 9, 2023
@wanpengfei-git
Copy link
Collaborator

run starrocks_admit_test

@imay imay disabled auto-merge March 9, 2023 13:35
@imay imay merged commit c301d2d into StarRocks:main Mar 9, 2023
@github-actions github-actions bot removed Approved Ready to merge be-build labels Mar 9, 2023
@sduzh
Copy link
Contributor Author

sduzh commented Mar 10, 2023

@Mergifyio backport branch-3.0

@mergify
Copy link
Contributor

mergify bot commented Mar 10, 2023

backport branch-3.0

✅ Backports have been created

@sduzh sduzh deleted the enhancement/iterate_dir2 branch March 10, 2023 02:48
mergify bot pushed a commit that referenced this pull request Mar 10, 2023
Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
(cherry picked from commit c301d2d)
sduzh added a commit that referenced this pull request Mar 10, 2023
Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
(cherry picked from commit c301d2d)
sduzh added a commit that referenced this pull request Mar 10, 2023
Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
(cherry picked from commit c301d2d)
wanpengfei-git pushed a commit that referenced this pull request Mar 10, 2023
Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
(cherry picked from commit c301d2d)
Jay-ju pushed a commit to Jay-ju/starrocks that referenced this pull request Mar 19, 2023
…ocks#19148)

Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
abc982627271 pushed a commit to abc982627271/starrocks that referenced this pull request Mar 28, 2023
…ocks#19148)

Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
numbernumberone pushed a commit to numbernumberone/starrocks that referenced this pull request May 31, 2023
…ocks#19148)

Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
abc982627271 pushed a commit to abc982627271/starrocks that referenced this pull request Jun 5, 2023
…ocks#19148)

Add a new FileSystem interface iterate_dir2() for getting
the file modification time while traversing the directory
to avoid additional `FileSystem::get_file_modified_time()`
calls.

In fact, this PR will not have any optimization, because the
new interface is not really implemented in the StarletFilesystem,
another PR is needed.

Signed-off-by: sduzh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants