-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a bug that the file copied by TF from HDFS to local may be wrong,… #42860
Conversation
… when HDFS file is being overwritten tensorflow#42597
@mihaimaruseac |
… when HDFS file is being overwritten tensorflow#42597
… when HDFS file is being overwritten tensorflow#42597
… when HDFS file is being overwritten tensorflow#42597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the ideal patch, but at least this is localized to the HDFS implementation and does not remove existing tests.
Would be good if you can also add a test and add a similar change to the existing filesystem plugin for HDFS.
I will take care for the change and test in filesystem plugin for HDFS. However, I prefer reading the env in the initialization of the filesystem for a consistency between multiple calls for |
@vnvo2409 If it is necessary to modify, I prefer to reading the env in the initialization of HDFSRandomAccessFile, which is more flexible and can support both WriteWhileReading and ReadWhileOverwriting use cases. |
|
@vnvo2409
ok. In order to ensure that the
Would it be better to read env in the constructor of |
Agree.
The cloud filesystems tests have a tag I think I will add your change and add my own test into HDFS plugins. I will ping you in that PR so you could review the test and make sure that the test is what you want. The implementation of the filesystem plugin and the current filesystem are very similar so I think adding test in one place is enough. You could also work with the filesystem plugin but keep in mind that if you would like to see the change immediately ( let's see if @mihaimaruseac agree with us. |
Sounds good to me. Thanks for driving this forward |
This is a PR from TaiJi AI platform in Tencent.