HADOOP-19129: [ABFS] Test Fixes and Test Script Bug Fixes#6676
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
============================================================
|
|
🎊 +1 overall
This message was automatically generated. |
| logOutput() { | ||
| echo -e "$outputFormatOn" "$1" "$outputFormatOff" | ||
| } | ||
|
|
| expectedListResultsSize, listMaxResults, fileCount) | ||
| .hasSize(expectedListResultsSize); | ||
|
|
||
| AbfsRestOperation op = getFileSystem().getAbfsClient().listPath( |
There was a problem hiding this comment.
should we change it to store call to ensure that listing is always complete ?
There was a problem hiding this comment.
This test is supposed to test the client behavior only.
We have other tests to test recursive behavior as part of ITestAzureBlobFileSystemListStatus.java
| pos += appendWithOffsetHelper(client, path, data, fs, pos, ONE_MB); | ||
| pos += appendWithOffsetHelper(client, path, data, fs, pos, MB_2); | ||
| appendWithOffsetHelper(client, path, data, fs, pos, MB_4 - 1); | ||
| } |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
============================================================
|
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
saxenapranav
left a comment
There was a problem hiding this comment.
Nice deep dive!
Some comments.
Please add in description example of how the test-script messages are changing.
| assertTrue(String.format("The actual value of %d was not equal to the " | ||
| + "expected value", statistics.getReadOps()), | ||
| statistics.getReadOps() == (largeValue + 3) || statistics.getReadOps() == (largeValue + 4)); | ||
| statistics.getReadOps() >= largeValue || statistics.getReadOps() <= (largeValue + 4)); |
There was a problem hiding this comment.
what is reason of these condition changing.
There was a problem hiding this comment.
For append blobs data is available to read as soon as it is appended. So in case when data is appended and not yet flushed, it can still be read in append blobs. This can lead to an additional read call for append blobs.
| } | ||
|
|
||
| protected void assumeValidTestConfigPresent(final Configuration conf, final String key) { | ||
| String configuredValue = conf.get(key); |
There was a problem hiding this comment.
it should also check conf.get(key., as done in AbfsConfiguration.accountConf(name). All the configs are checked on both key and key.. Dev can give anything.
There was a problem hiding this comment.
Makes sense.
Taken
There was a problem hiding this comment.
tip: if you set the default to "" then the line below can just check for the string not being empty
| testresultsregex="Tests run: [0-9]+, Failures: [0-9]+, Errors: [0-9]+, Skipped: [0-9]+$" | ||
| failedTestRegex1="<<< FAILURE!$" | ||
| failedTestRegex2="<<< ERROR!$" | ||
| removeFormattingRegex="s/\x1b\[[0-9;]*m//g" |
There was a problem hiding this comment.
Lets add a comment to explain what regex do.
steveloughran
left a comment
There was a problem hiding this comment.
minor comments, otherwise all good. I'm going to download and test on my now-IOP limited account which does seem to fail in interesting ways
|
|
||
| * [ABFS](./abfs.html) | ||
| * [Testing](./testing_azure.html) | ||
| * [ABFS](./abfs.md) |
There was a problem hiding this comment.
-1. when site docs are generated *.md is mapped to *.html.
There was a problem hiding this comment.
Reverting this change.
But I observed these links are not working on github.
https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-azure/src/site/markdown/index.md
They are giving 404
There was a problem hiding this comment.
run mvn site:site and you generate the site locally, which is what goes up on apache.org
| } | ||
|
|
||
| protected void assumeValidTestConfigPresent(final Configuration conf, final String key) { | ||
| String configuredValue = conf.get(key); |
There was a problem hiding this comment.
tip: if you set the default to "" then the line below can just check for the string not being empty
| expectedListResultsSize, listMaxResults, fileCount) | ||
| .hasSize(expectedListResultsSize); | ||
| } else { | ||
| // Listing is incomplete and number of objects can be lesser than expected |
| // Listing is incomplete and number of objects can be lesser than expected | ||
| Assertions.assertThat(list) | ||
| .describedAs("AbfsClient.listPath() should return %d items" | ||
| + " or lesser when listMaxResults is %d, directory contains" |
| New files created in folder accountSettings is listed in .gitignore to | ||
| prevent accidental cred leaks. | ||
|
|
||
| You are all set to run the test srcipt. |
|
🎊 +1 overall
This message was automatically generated. |
|
@anujmodi2021 can you do a PR for this for branch-3.4? |
Contributed by Anuj Modi
Contributed by Anuj Modi
Description of PR
Test Script used by ABFS to validate changes has following two issues:
Some tests were reported to be failing on OSS trunk including those reported via following Jira:
https://issues.apache.org/jira/browse/HADOOP-19110
https://issues.apache.org/jira/browse/HADOOP-19106
For details of the failing tests and their fixes please refer to the Jira Description:
https://issues.apache.org/jira/browse/HADOOP-19129
How was this patch tested?
Test Suite was run involving different combinations of Auth type and Account type.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?