-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HADOOP-18971: [ABFS] Enable Footer Read Optimizations with Appropriate Footer Read Buffer Size #6270
HADOOP-18971: [ABFS] Enable Footer Read Optimizations with Appropriate Footer Read Buffer Size #6270
Changes from 5 commits
5af02c5
14214f0
e438b94
c0c1319
6bb6bd7
a7597ed
2b2ee8e
85a4d62
66b035c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,8 @@ public final class FileSystemConfigurations { | |
public static final boolean DEFAULT_AZURE_ENABLE_SMALL_WRITE_OPTIMIZATION = false; | ||
public static final int DEFAULT_READ_BUFFER_SIZE = 4 * ONE_MB; // 4 MB | ||
public static final boolean DEFAULT_READ_SMALL_FILES_COMPLETELY = false; | ||
public static final boolean DEFAULT_OPTIMIZE_FOOTER_READ = false; | ||
public static final boolean DEFAULT_OPTIMIZE_FOOTER_READ = true; | ||
public static final int DEFAULT_FOOTER_READ_BUFFER_SIZE = 512 * ONE_KB; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is 512k; docs in file above say 265K. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated the doc. |
||
public static final boolean DEFAULT_ALWAYS_READ_BUFFER_SIZE = false; | ||
public static final int DEFAULT_READ_AHEAD_BLOCK_SIZE = 4 * ONE_MB; | ||
public static final int DEFAULT_READ_AHEAD_RANGE = 64 * ONE_KB; // 64 KB | ||
|
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.
In case if dev goes with builder route and have not given fs.azure.footer.read.request.size in builder opts, it will take the default value even though in config a value is defined. Better in place of default value, have the abfsConfugration.getFooterReadBufferSize().
How can you verify this happens, change bit of your
testNumBackendCalls
code: