Tom-Newton commented on issue #40037:
URL: https://github.com/apache/arrow/issues/40037#issuecomment-1938839390

   >> Its possible that a user of the AzureFileSystem might accidentally try to 
read or write a directory marker which could cause confusion.
   
   > Can you clarify the sequence that leads to the confusion? I think we 
should aim for having no confusion if the user writes to Azure Storage only via 
the arrow::FileSystem API and fail-fast on confusion created by other writers.
   
   Imagine the user does this 
   ```
   fs->CreateDir("container/directory");
   fs->OpenAppendStream("container/directory");
   ```
   Currently on flat namespace this will create the case of file and directory 
with the same path. On hierarchical namespace it fails with an un-recoverable 
error when the `ObjectAppendStream` gets destructed. This is because the 
destructor attempts to `Flush` and subsequently runs into `Azure Error: 
[OperationNotSupportedOnDirectory] 400 The requested operation is not supported 
on a directory.`


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to