-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
os: document the hard limit of concurrent writes to *File changed in Go1.9 #32544
Comments
Yes, this did change in Go 1.9. There is now a limit on the number of concurrent writes that can be made to a single |
@ianlancetaylor I don't think that we documented this change in Go1.9 release notes https://golang.org/doc/go1.9, perhaps this could be a Go1 compatibility violation? |
I don't think this is a Go 1 compatibility issue. There is also a limitation in 1.8: the number of threads that the OS will let you create. It's just a different path to hitting the limit. I don't know if there is a sensible way to document this. We don't want to document a specific number; that is going to change depending on the implementation. I'm open to suggestions. |
Thank you for the explanation @ianlancetaylor! Perhaps we could document on os.File that // Note: The maximum number of concurrent operations on a File is subject to OS/system
// specific resource limits. While the limit is very high, it would be useful to bound concurrent
// accesses to the File. or because this was a natural progression anyways, in that there is a limit that can be reached I think that there is nothing that we can do. This is a very rare scenario as @kokizzu's has been the first report in 2 years. |
Seems reasonable to me. Thanks. |
Change https://golang.org/cl/181841 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Running old code that works on go 1.8 but failed on go 1.12
https://stackoverflow.com/questions/41894046/
What did you expect to see?
no error as previous version of go 1.8
What did you see instead?
The text was updated successfully, but these errors were encountered: