Azure / azure-data-lake-store-net

Azure Data Lake Store .Net SDK
MIT License
18 stars 24 forks source link

Can't copy large file Error "Operation: failed with Error: Offset of file is negative." #14

Closed nicolasbailly1 closed 6 years ago

nicolasbailly1 commented 6 years ago

It happens when files are bigger than 2Gb and it happens when using WriteAsync or CopyAsync methods. When using Write and Copy methods it works well.

It happens because the integer limit is exceeded. Here is the stack trace :

Microsoft.Azure.DataLake.Store.AdlsException: Error in appending for file at offset 2147483648. Operation: failed with Error: Offset of file is negative. Last encountered exception thrown after 1 tries. [ServerRequestId:] at Microsoft.Azure.DataLake.Store.AdlsOutputStream.d__53.MoveNext()

rahuldutta90 commented 6 years ago

Acknowledge this. Will fix it in the next release.

rahuldutta90 commented 6 years ago

Fixed in the latest release.