Skip to content
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

Release 0.10 patches #362

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Conversation

antoninbas
Copy link
Member

No description provided.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
The "target" of the v0.10.0 tag was "mutated" (the tag was created, then
deleted, then created again with a different target commit). This should
never be done for a Go module and can create issues for consumers of the
module, as the original version will be cached in module proxies, and
there will be a discrepancy between module proxies and the version
control repository (this can lead to checksum mismatch issues).

The best practice in that case seems to be to retract the invalid
version, and release a new one (we will release v0.10.1 in our case).

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
This is a partial reversal of d072ed8.
It turns out that the check can actually be useful as it can detect that
the collector ("server" side) has closed its side of the connection, and
this can be used as a signal to close our side of the connection as
well. This can happen when a process using our collector implementation
is closed, but no TCP RST is received when sendign a data set (in
particular, this can happen when running in K8s and using a virtual IP
to connect to the collector). This check can detect the issue much
faster than relying on a keep-alive timeout. Furthermore, a client of
this library could end up blocking if the connection has not timed out
yet and the send buffer is full.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@heanlan heanlan merged commit 4cbe4d3 into vmware:release-0.10.0 Sep 5, 2024
8 checks passed
@antoninbas antoninbas deleted the release-0.10-patches branch September 5, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants