-
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
Test failure on Mac: //tensorflow/python:directory_watcher_test #964
Comments
Machine machine details: |
Okay, I think I have a fix for this on Mac. @danmane in case he's interested. The problem seems to be that in the DirectoryWatcherTest, the ByteLoader implementation assumes that you can read EOF from a file, have another thread append to the file, and then continue reading from the last known seek position. Apparently this breaks under mac os x but not under linux. I changed the ByteLoader code to keep track of the number of bytes read, and when you see EOF, to try seeking to the current number of bytes read and trying again to read from the file. Doing this allows the test to pass. I couldn't find any documentation on this behavior difference between OS X and Linux though. I'll try to send a review in tomorrow. |
Thanks, @vrv. Looking forward to seeing the fix. |
Keeps track of seek position and seeks to current byte offset prior to reading from the file. Apparently this is necessary on Mac, because once you've read EOF, you need to seek to your current position to read new data that has since been appended to the file.
Thanks @vrv! |
The following Python unit test fails on Mac: //tensorflow/python:directory_watcher_test
Below is the log with detailed error info:
The text was updated successfully, but these errors were encountered: