ThomasMarquardt commented on a change in pull request #1791: HADOOP-16785: wasb
to raise IOE if write() invoked on a closed stream
URL: https://github.com/apache/hadoop/pull/1791#discussion_r363405980
##########
File path:
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/NativeAzureFileSystem.java
##########
@@ -1198,6 +1201,17 @@ public void setEncodedKey(String anEncodedKey) {
private void restoreKey() throws IOException {
store.rename(getEncodedKey(), getKey());
}
+
+ /**
+ * Check for the stream being open.
+ * @throws IOException if the stream is closed.
+ */
+ private void checkOpen() throws IOException {
Review comment:
Also, a similar issue exists for NativeAzureFsInputStream. I should add
that I'm inclined not to fix this stuff, the reason being that it has been like
this for a long time, I'm not aware of any related customer support issues, and
there is risk in any change. With that said, I will +1 the changes if the risk
is low--you are fixing valid issues and thank you for that!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]