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

pubsub/kafka: Allow overriding batching options for Topic #3163

Merged
merged 1 commit into from Sep 13, 2022

Conversation

vangent
Copy link
Contributor

@vangent vangent commented Sep 13, 2022

Fixes #3162.

@codecov
Copy link

codecov bot commented Sep 13, 2022

Codecov Report

Merging #3163 (dfa19dc) into master (2ae6e17) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3163      +/-   ##
==========================================
- Coverage   72.84%   72.81%   -0.03%     
==========================================
  Files         113      113              
  Lines       14387    14388       +1     
==========================================
- Hits        10480    10477       -3     
- Misses       3180     3185       +5     
+ Partials      727      726       -1     
Impacted Files Coverage Δ
pubsub/kafkapubsub/kafka.go 84.59% <100.00%> (+0.05%) ⬆️
server/health/sqlhealth/sqlhealth.go 61.90% <0.00%> (-19.05%) ⬇️
pubsub/rabbitpubsub/rabbit.go 81.19% <0.00%> (+0.62%) ⬆️
internal/retry/retry.go 100.00% <0.00%> (+11.76%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@vangent vangent merged commit 2c69298 into google:master Sep 13, 2022
@vangent vangent deleted the kafkaopts branch September 13, 2022 16:10
danielorbach added a commit to danielorbach/go-cloud that referenced this pull request Jan 15, 2023
The [examples][ExampleOpenTopic] show a simple call to `OpenTopic`
without `kafkapubsub.TopicOptions` as passing a `nil` argument.
This is backed by replacing a `nil` pointer with the appropriate
zero-value.  This behaviour exists in `OpenSubscription` too.
However, PR google#3163 introduced overriding batching options which
inadvertently accesses a field of a nil pointer.

[ExampleOpenTopic]: https://github.com/google/go-cloud/blob/master/pubsub/kafkapubsub/example_test.go#L36
danielorbach added a commit to danielorbach/go-cloud that referenced this pull request Jan 15, 2023
`ExampleOpenTopic` (pubsub/kafkapubsub/example_test.go) show a
simple call to `OpenTopic` without `kafkapubsub.TopicOptions` as
passing a `nil` argument.
This is done by replacing a `nil` pointer with the appropriate
zero-value.  This behaviour exists in `OpenSubscription` too.
However, PR google#3163 introduced overriding batching options which
inadvertently accesses a field of a nil pointer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubsub/kafkapubsub: Increase kafka pubsub batcher MaxHandlers
1 participant