-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](catalog) disable FileSystem Cache to avoid too many fs cache #21283
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
Conversation
| Path path = new Path(finalLocation); | ||
| URI uri = path.toUri(); | ||
| if (uri.getScheme() != null) { | ||
| updateJobConf("fs." + uri.getScheme() + ".impl.disable.cache", "true"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s3 scheme: s3 and s3a
cos scheme: cosn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does need to be same logic as in FileInputFormat.setInputPaths(), which is to use schema is file location.
wsjz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by anyone and no changes requested. |
|
run buildall |
|
TeamCity pipeline, clickbench performance test result: |
yiguolei
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
…ache#21283) When creating a new hive catalog or refresh the hive catalog, it will refresh the HiveMetaStore cache. And it will call "FileInputFormat.setInputPaths()". In this method, it will create a new FileSystem instance and store it in FileSystem's cache. So if refresh catalog frequently, there will be too many FileSystem instances in cache, causing OOM. This PR disable the FileSystem Cache.
…ache#21283) When creating a new hive catalog or refresh the hive catalog, it will refresh the HiveMetaStore cache. And it will call "FileInputFormat.setInputPaths()". In this method, it will create a new FileSystem instance and store it in FileSystem's cache. So if refresh catalog frequently, there will be too many FileSystem instances in cache, causing OOM. This PR disable the FileSystem Cache.
…1283) When creating a new hive catalog or refresh the hive catalog, it will refresh the HiveMetaStore cache. And it will call "FileInputFormat.setInputPaths()". In this method, it will create a new FileSystem instance and store it in FileSystem's cache. So if refresh catalog frequently, there will be too many FileSystem instances in cache, causing OOM. This PR disable the FileSystem Cache.
Proposed changes
When creating a new hive catalog or refresh the hive catalog, it will refresh the HiveMetaStore cache.
And it will call "FileInputFormat.setInputPaths()".
In this method, it will create a new FileSystem instance and store it in FileSystem's cache.
So if refresh catalog frequently, there will be too many FileSystem instances in cache, causing OOM.
This PR disable the FileSystem Cache.
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...