-
Notifications
You must be signed in to change notification settings - Fork 18k
sum.golang.org: negative TTL is too high #35840
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
Comments
Additional context. I consulted this page for information: https://sum.golang.org/. Later I realized that I could use GONOSUMDB to get around the issue locally but still would need to wait for the cached failure to expire before trying to push to remote builders where this value could not be set on a per-build basis. |
/cc @katiehockman @heschik |
We're looking into why the error occurred though. This may be a bug that we need to address. Thanks for filing the issue. |
As best we can tell, this was a brief connectivity problem between us and GitHub. We're improving our diagnostics and will continue to investigate any further reports, so please file a new issue if you see any more occurrences. As for the TTL, #34370 has some background on that. I don't think there's anything else actionable here, so closing. Please comment if you disagree. |
It would be really helpful as an end user to know if the service isn't performing nominally, as it did take me quite some time to realize that the bug wasn't in the connectivity of the build system, but rather in one of the systems my build box depended on. |
Unfortunately there are a number of moving parts between |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I raced the release process on github foolishly believing that the Go module cache would have a short negative cache. Instead it seems that even setting GOPROXY=direct now won't let me skip the checks on sum.golang.org.
Instead I get this kind of error message:
What did you expect to see?
I expected it to work, or in the worst case I expected to wait ~10 minutes and try again if the cache had a sane negative TTL.
What did you see instead?
GOPROXY=direct doesn't seem to actually opt out of the proxy fully. I consider this a primary bug on this issue as the documentation leads one to believe that this setting will noop the proxy, when in fact it does not.
I expected the cache of the 410 (Gone) to expire swiftly on a subsequent attempt. It did not I'm pretty sure it would be trivial to write a small script that just sits on a high bandwidth connection and requests non-existent version numbers of popular projects which would effectively bring releases for these projects to a halt. The fact that the negative TTL seems to be some high and undisclosed value really reduces the value of the proxy. Add in that GOPROXY=direct doesn't seem to opt out and this seems like a pretty big hindrance for the language in general.
The text was updated successfully, but these errors were encountered: