steveloughran commented on a change in pull request #1925: HADOOP-16948. 
Support single writer dirs.
URL: https://github.com/apache/hadoop/pull/1925#discussion_r401583411
 
 

 ##########
 File path: 
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsOutputStream.java
 ##########
 @@ -168,6 +177,10 @@ public synchronized void write(final byte[] data, final 
int off, final int lengt
       throw new IndexOutOfBoundsException();
     }
 
+    if (lease != null && lease.isFreed()) {
+      throw new IOException("Attempted to write to file without lease: " + 
path);
 
 Review comment:
   PathIOException with path; make error string a const to use when matching in 
tests. Consider also a new LeaseRequiredException if that helps testing

----------------------------------------------------------------
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]

Reply via email to