[cherry-pick][enhancement](cloud) support BE http action: list_cache and clear (#41037) #43412
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Add a http action which is useful when you debug.
API
request parameter
request parameter1
list_cache
, other value you can refer to #40831 #37484request parameter2
clear
, other value you can refer to #40831 #37484response
response1
if success
if fail
response2
if success
example
case 1
curl '172.100.0.4:8040/api/file_cache?op=list_cache&value=0200000000000001bf42c14374fff491ffb7c89a1a65c5bb_0.dat'
return
["/opt/doris/be/file_cache/c6a/c6a599f453f67f0949f80ad9990fa3dd/0"]
case 2
curl '127.0.0.1:8040/api/file_cache?op=clear&sync=true&value=0200000000000001284b68fea3dcfe8a83e65cd88426b081_0.dat'
return
(cherry picked from commit 99d0748)
What problem does this PR solve?
Issue Number: close #xxx
Related PR: cherry-pick #41037
Problem Summary:
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Release note
Check List (For Reviewer who merge this PR)