Open yjshen opened 1 year ago
Not sure if this is the root cause, but I'll also note that your copy_if_not_exist
implementation isn't quite right; it doesn't handle the race condition if two concurrent calls are made, since the call to see if the destination exists happens separately from the call to write, with no locking happening in between.
Perhaps you should implement rename_if_not_exist
instead, since it seems like the HDFS rename operation should error if the destination doesn't exist.
Seen while running delta-rs tests:
Failure seen: