[
https://issues.apache.org/jira/browse/HADOOP-15546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16544316#comment-16544316
]
Steve Loughran commented on HADOOP-15546:
-----------------------------------------
HADOOP-15446 patch 006: what does append(dir) do?
pulling up the abfs {{testAppendDirectory}} test to append onto a dir has shown
up that the correct exception wasn't stated: HDFS expects
FileAlreadyExistsException.
* fix that in filesystem.md
* fix localFs to throw that exception, rather than IOE, without typo in message
* contract test to catch IOE but expect FileAlreadyExistsException as the
"strict" outcome; handle others as "relaxed"
I haven't changed the abfs append (it raises FileNotFoundException) as that's
valid, just different from HDFS.
(Yes, this is mixing in some changes in contract-tests w/ the ABFS tests but
these new tests from Microsoft are showing up new corner cases which need
better coverage in docs & contract tests). We could split out into a
self-contained patch once happy
> ABFS: tune imports & javadocs; stabilise tests
> ----------------------------------------------
>
> Key: HADOOP-15546
> URL: https://issues.apache.org/jira/browse/HADOOP-15546
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/azure
> Affects Versions: HADOOP-15407
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Major
> Attachments: HADOOP-15546-001.patch,
> HADOOP-15546-HADOOP-15407-001.patch, HADOOP-15546-HADOOP-15407-002.patch,
> HADOOP-15546-HADOOP-15407-003.patch, HADOOP-15546-HADOOP-15407-004.patch,
> HADOOP-15546-HADOOP-15407-005.patch, HADOOP-15546-HADOOP-15407-006.patch,
> HADOOP-15546-HADOOP-15407-006.patch
>
>
> Followup on HADOOP-15540 with some initial review tuning
> h2. Tuning
> * ordering of imports
> * rely on azure-auth-keys.xml to store credentials (change imports,
> docs,.gitignore)
> * log4j -> info
> * add a "." to the first sentence of all the javadocs I noticed.
> * remove @Public annotations except for some constants (which includes some
> commitment to maintain them).
> * move the AbstractFS declarations out of the src/test/resources XML file
> into core-default.xml for all to use
> * other IDE-suggested tweaks
> h2. Testing
> Review the tests, move to ContractTestUtil assertions, make more consistent
> to contract test setup, and general work to make the tests work well over
> slower links, document, etc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]