Fix unit tests failing with franz-go update#675
Merged
Conversation
Contributor
Author
|
FIX: Related to #568 |
rubvs
commented
Jul 9, 2025
| attribute.Bool("foo", true), | ||
| ), | ||
| Value: 4, // end offset = 4, nothing committed | ||
| Value: 0, // end offset = 4, nothing committed |
Contributor
Author
There was a problem hiding this comment.
With twmb/franz-go#744 lag is now relative rather than the end offset.
rubvs
commented
Jul 9, 2025
|
|
||
| // Fixes https://github.com/elastic/apm-queue/issues/464 | ||
| <-time.After(time.Millisecond) | ||
| <-time.After(10 * time.Millisecond) |
Closed
rubvs
commented
Jul 9, 2025
| Topic: "name_space-topic", | ||
| Value: []byte("content"), | ||
| } | ||
|
|
Contributor
Author
There was a problem hiding this comment.
The cancelled context gets propagated within the record. Create a new record to ensure a new context. Error log can be seen in #661
1pkg
previously approved these changes
Jul 10, 2025
kruskall
suggested changes
Jul 10, 2025
go.mod
Outdated
| go 1.23.6 | ||
| go 1.23.8 | ||
|
|
||
| toolchain go1.24.4 |
Member
There was a problem hiding this comment.
please remove the toolchain line
kruskall
approved these changes
Jul 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #661, #664, #665
Fix the following unit tests:
TestManagerMetricsTestConsumerDeliveryTestHookLogsFailedDialTestProducerMetricsThis PR allows us to update to the latest
franz-goversion, and thus closes #621Relevant
franz-goPRs that caused some of these issues: