-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-19548: [ABFS] Fix Logging in FSDataInputStream to Mention Correct Buffersize #7642
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
Changes from 2 commits
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 |
|---|---|---|
|
|
@@ -135,4 +135,23 @@ public void testSetFileSystemProperties() throws Exception { | |
|
|
||
| assertEquals(properties, fetchedProperties); | ||
| } | ||
|
|
||
| @Test | ||
| //Test to verify buffersize remains the same as set in the configuration, irrespective of the parameter passed to FSDataInputStream | ||
| public void testBufferSizeSet() throws Exception { | ||
| final AzureBlobFileSystem fs = getFileSystem(); | ||
| AbfsConfiguration abfsConfig = fs.getAbfsStore().getAbfsConfiguration(); | ||
| int bufferSizeConfig = 5 * 1024 * 1024; | ||
|
||
| int bufferSizeArg = 10 * 1024 * 1024; | ||
|
|
||
| Path testPath = path(TEST_PATH); | ||
| fs.create(testPath); | ||
|
|
||
| abfsConfig.setReadBufferSize(bufferSizeConfig); | ||
| fs.open(testPath, bufferSizeArg); | ||
| int actualBufferSize = abfsConfig.getReadBufferSize(); | ||
|
||
|
|
||
| assertEquals(bufferSizeConfig, actualBufferSize); | ||
| assertNotEquals(bufferSizeArg, actualBufferSize); | ||
mukund-thakur marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.