Releases: IBM/sarama
Version 1.43.2 (2024-04-25)
What's Changed
π Fixes
π¦ Dependency updates
- chore(deps): bump golang.org/x/net from 0.21.0 to 0.23.0 by @dependabot in #2866
- chore(deps): bump the golang-org-x group with 2 updates by @dependabot in #2853
- chore(deps): bump github.com/klauspost/compress from 1.17.7 to 1.17.8 by @dependabot in #2857
- chore(deps): bump golang.org/x/net from 0.21.0 to 0.23.0 in /examples/txn_producer in the go_modules group by @dependabot in #2865
- chore(deps): bump golang.org/x/net from 0.21.0 to 0.23.0 in /examples/consumergroup in the go_modules group by @dependabot in #2867
- chore(deps): bump golang.org/x/net from 0.21.0 to 0.23.0 in /examples/exactly_once in the go_modules group by @dependabot in #2868
- chore(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 in /examples/interceptors in the go_modules group by @dependabot in #2869
Full Changelog: v1.43.1...v1.43.2
Version 1.43.1 (2024-03-27)
What's Changed
π Fixes
- fix: message.max.bytes should default to 1048576 not 1 MB by @puellanivis in #2804
- fix: add locking around broker throttle timer to prevent race condition by @chengsha in #2826
π¦ Dependency updates
- chore(deps): bump go.opentelemetry.io/otel/sdk from 1.23.1 to 1.24.0 in /examples/interceptors by @dependabot in #2816
- chore(deps): bump the golang-org-x group with 1 update by @dependabot in #2825
- chore(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in #2822
- chore(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdoutmetric from 1.23.1 to 1.24.0 in /examples/interceptors by @dependabot in #2815
New Contributors
Full Changelog: v1.43.0...v1.43.1
Version 1.43.0 (2024-02-22)
Note
The go.mod directive has been bumped to 1.19 as the minimum version of Go required for the module. This was necessary to continue to receive updates from some of the third party dependencies that Sarama makes use of for compression.
What's Changed
π New Features / Improvements
- feat: update go directive to 1.19 by @dnwe in #2795
- feat: add BuildSpnFunc to GSSAPIConfig for allow custom spn by @fooofei in #2807
π Fixes
- Use %v formatting words and remove unnecessary newline by @puellanivis in #2802
π¦ Dependency updates
- chore(deps): bump github.com/klauspost/compress from 1.16.7 to 1.17.6 by @dependabot in #2784
- chore(deps): bump github.com/eapache/go-resiliency from 1.5.0 to 1.6.0 by @dependabot in #2810
- chore(deps): bump github.com/klauspost/compress from 1.17.6 to 1.17.7 by @dependabot in #2811
π§ Maintenance
New Contributors
- @puellanivis made their first contribution in #2802
- @fooofei made their first contribution in #2807
Full Changelog: v1.42.2...v1.43.0
Version 1.42.2 (2024-02-09)
What's Changed
Note
The go.mod directive has been bumped to 1.18 as the minimum version of Go required for the module. This was necessary to continue to receive updates from some of the third party dependencies that Sarama makes use of for compression.
π New Features / Improvements
- feat: update go directive to 1.18 by @dnwe in #2713
- feat: return KError instead of errors in AlterConfigs and DescribeConfig by @zhuliquan in #2472
π Fixes
- fix: don't waste time for backoff on member id required error by @lzakharov in #2759
- fix: prevent ConsumerGroup.Close infinitely locking by @maqdev in #2717
π¦ Dependency updates
- chore(deps): bump golang.org/x/net from 0.17.0 to 0.18.0 by @dependabot in #2716
- chore(deps): bump golang.org/x/sync to v0.5.0 by @dependabot in #2718
- chore(deps): bump github.com/pierrec/lz4/v4 from 4.1.18 to 4.1.19 by @dependabot in #2739
- chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 by @dependabot in #2748
- chore(deps): bump the golang-org-x group with 1 update by @dependabot in #2734
- chore(deps): bump the golang-org-x group with 2 updates by @dependabot in #2764
- chore(deps): bump github.com/pierrec/lz4/v4 from 4.1.19 to 4.1.21 by @dependabot in #2763
- chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 in /examples/exactly_once by @dependabot in #2749
- chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 in /examples/consumergroup by @dependabot in #2750
- chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 in /examples/sasl_scram_client by @dependabot in #2751
- chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 in /examples/interceptors by @dependabot in #2752
- chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 in /examples/http_server by @dependabot in #2753
- chore(deps): bump github.com/eapache/go-resiliency from 1.4.0 to 1.5.0 by @dependabot in #2745
- chore(deps): bump golang.org/x/crypto from 0.15.0 to 0.17.0 in /examples/txn_producer by @dependabot in #2754
- chore(deps): bump go.opentelemetry.io/otel/sdk from 1.19.0 to 1.22.0 in /examples/interceptors by @dependabot in #2767
- chore(deps): bump the golang-org-x group with 1 update by @dependabot in #2793
- chore(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdoutmetric from 0.42.0 to 1.23.1 in /examples/interceptors by @dependabot in #2792
π§ Maintenance
β Other Changes
New Contributors
- @maqdev made their first contribution in #2717
- @zhuliquan made their first contribution in #2472
Full Changelog: v1.42.1...v1.42.2
Version 1.42.1 (2023-11-07)
What's Changed
π Fixes
- fix: make fetchInitialOffset use correct protocol by @dnwe in #2705
- fix(config): relax ClientID validation after 1.0.0 by @dnwe in #2706
Full Changelog: v1.42.0...v1.42.1
Version 1.42.0 (2023-11-02)
What's Changed
π Fixes
- Asynchronously close brokers during a RefreshBrokers by @bmassemin in #2693
- Fix data race on Broker.done channel by @prestona in #2698
- fix: data race in Broker.AsyncProduce by @lzakharov in #2678
- Fix default retention time value in offset commit by @prestona in #2700
- fix(txmgr): ErrOffsetsLoadInProgress is retriable by @dnwe in #2701
π§ Maintenance
- chore(ci): improve ossf scorecard result by @dnwe in #2685
- chore(ci): add kafka 3.6.0 to FVT and versions by @dnwe in #2692
β Other Changes
- chore(ci): ossf scorecard.yml by @dnwe in #2683
- fix(ci): always run CodeQL on every commit by @dnwe in #2689
- chore(doc): add OpenSSF Scorecard badge by @dnwe in #2691
New Contributors
- @bmassemin made their first contribution in #2693
- @lzakharov made their first contribution in #2678
Full Changelog: v1.41.3...v1.42.0
Version 1.41.3 (2023-10-17)
What's Changed
π Fixes
- fix: pre-compile regex for parsing kafka version by @qshuai in #2663
- fix(client): ignore empty Metadata responses when refreshing by @HaoSunUber in #2672
π¦ Dependency updates
- chore(deps): bump the golang-org-x group with 2 updates by @dependabot in #2661
- chore(deps): bump golang.org/x/net from 0.16.0 to 0.17.0 by @dependabot in #2671
π Documentation
- fix(docs): correct topic name in rebalancing strategy example by @maksadbek in #2657
New Contributors
- @maksadbek made their first contribution in #2657
- @qshuai made their first contribution in #2663
Full Changelog: v1.41.2...v1.41.3
Version 1.41.2 (2023-09-12)
What's Changed
π New Features / Improvements
π Fixes
- fix(consumer): guard against nil client by @dnwe in #2636
- fix(consumer): don't retry session if ctx canceled by @dnwe in #2642
- fix: use least loaded broker to refresh metadata by @HaoSunUber in #2645
π¦ Dependency updates
- chore(deps): bump the golang-org-x group with 1 update by @dependabot in #2641
New Contributors
- @HaoSunUber made their first contribution in #2645
Full Changelog: v1.41.1...v1.41.2
Version 1.41.1 (2023-08-30)
What's Changed
π Fixes
- fix(proto): handle V3 member metadata and empty owned partitions by @dnwe in #2618
- fix: make clear that error is configuration issue not server error by @hindessm in #2628
- fix(client): force Event Hubs to use V1_0_0_0 by @dnwe in #2633
- fix: add retries to alter user scram creds by @hindessm in #2632
π§ Maintenance
π Documentation
- fix(doc): add missing doc for mock consumer by @hsweif in #2386
- chore(proto): doc CreateTopics/JoinGroup fields by @dnwe in #2627
β Other Changes
Full Changelog: v1.41.0...v1.41.1
Version 1.41.0 (2023-08-21)
What's Changed
π¨ Breaking Changes
Note: this version of Sarama has had a big overhaul in its adherence to the use of the right Kafka protocol versions for the given Config Version. It has also bumped the default Version set in Config (where one is not supplied) to 2.1.0. This is in preparation for Kafka 4.0 dropping support for protocol versions older than 2.1. If you are using Sarama against Kafka clusters older than v2.1.0, or using it against Azure EventHubs then you will likely have to change your application code to pin to the appropriate Version.
- chore(config): make DefaultVersion V2_0_0_0 by @dnwe in #2572
- chore(config): make DefaultVersion V2_1_0_0 by @dnwe in #2574
π New Features / Improvements
- Implement resolve_canonical_bootstrap_servers_only by @gebn in #2156
- feat: sleep when throttled (KIP-219) by @hindessm in #2536
- feat: add isValidVersion to protocol types by @dnwe in #2538
- fix(consumer): use newer LeaveGroup as appropriate by @dnwe in #2544
- Add support for up to version 4 List Groups API by @prestona in #2541
- fix(producer): use newer ProduceReq as appropriate by @dnwe in #2546
- fix(proto): ensure req+resp requiredVersion match by @dnwe in #2548
- chore(proto): permit CreatePartitionsRequest V1 by @dnwe in #2549
- chore(proto): permit AlterConfigsRequest V1 by @dnwe in #2550
- chore(proto): permit DeleteGroupsRequest V1 by @dnwe in #2551
- fix(proto): correct JoinGroup usage for wider version range by @dnwe in #2553
- fix(consumer): use full range of FetchRequest vers by @dnwe in #2554
- fix(proto): use range of OffsetCommitRequest vers by @dnwe in #2555
- fix(proto): use full range of MetadataRequest by @dnwe in #2556
- fix(proto): use fuller ranges of supported proto by @dnwe in #2558
- fix(proto): use full range of SyncGroupRequest by @dnwe in #2565
- fix(proto): use full range of ListGroupsRequest by @dnwe in #2568
- feat(proto): support for Metadata V6-V10 by @dnwe in #2566
- fix(proto): use full ranges for remaining proto by @dnwe in #2570
- feat(proto): add remaining protocol for V2.1 by @dnwe in #2573
- feat: add new error for MockDeleteTopicsResponse by @javiercri in #2475
- feat(gzip): switch to klauspost/compress gzip by @dnwe in #2600
π Fixes
- fix: correct unsupported version check by @hindessm in #2528
- fix: avoiding burning cpu if all partitions are paused by @napallday in #2532
- extend throttling metric scope by @hindessm in #2533
- Fix printing of final metrics by @prestona in #2545
- fix(consumer): cannot automatically fetch newly-added partitions unless restart by @napallday in #2563
- bug: implement unsigned modulus for partitioning with crc32 hashing by @csm8118 in #2560
- fix: avoid logging value of proxy.Dialer by @prestona in #2569
- fix(test): add missing closes to admin client tests by @dnwe in #2594
- fix(test): ensure some more clients are closed by @dnwe in #2595
- fix(examples): sync exactly_once and consumergroup by @dnwe in #2614
- fix(fvt): fresh metrics registry for each test by @dnwe in #2616
- fix(test): flaky test TestFuncOffsetManager by @napallday in #2609
π¦ Dependency updates
- chore(deps): bump the golang-org-x group with 1 update by @dependabot in #2542
- chore(deps): bump the golang-org-x group with 1 update by @dependabot in #2561
- chore(deps): bump module github.com/pierrec/lz4/v4 to v4.1.18 by @dnwe in #2589
- chore(deps): bump module github.com/jcmturner/gokrb5/v8 to v8.4.4 by @dnwe in #2587
- chore(deps): bump github.com/eapache/go-xerial-snappy digest to c322873 by @dnwe in #2586
- chore(deps): bump module github.com/klauspost/compress to v1.16.7 by @dnwe in #2588
- chore(deps): bump github.com/eapache/go-resiliency from 1.3.0 to 1.4.0 by @dependabot in #2598
π§ Maintenance
- fix(fvt): ensure fully-replicated at test start by @hindessm in #2531
- chore: rollup fvt kafka to latest three by @dnwe in #2537
- Merge the two CONTRIBUTING.md's by @prestona in #2543
- fix(test): test timing error by @hindessm in #2552
- chore(ci): tidyup and improve actions workflows by @dnwe in #2557
- fix(test): shutdown MockBroker by @dnwe in #2571
- chore(proto): match HeartbeatResponse version by @dnwe in #2576
- chore(test): ensure MockBroker closed within test by @dnwe in #2575
- chore(test): ensure all mockresponses use version by @dnwe in #2578
- chore(ci): use latest Go in actions by @dnwe in #2580
- chore(test): speedup some slow tests by @dnwe in #2579
- chore(test): use modern protocol versions in FVT by @dnwe in #2581
- chore(test): fix a couple of leaks by @dnwe in #2591
- feat(fvt): experiment with per-kafka-version image by @dnwe in #2592
- chore(ci): replace toxiproxy client dep by @dnwe in #2593
- feat(fvt): add healthcheck, depends_on and --wait by @dnwe in #2601
- fix(fvt): handle msgset vs batchset by @dnwe in #2603
- fix(fvt): Metadata version in ensureFullyReplicated by @dnwe in #2612
- fix(fvt): versioned cfg for invalid topic producer by @dnwe in #2613
- chore(fvt): tweak to work across more versions by @dnwe in #2615
- feat(fvt): test wider range of kafkas by @dnwe in #2605
π Documentation
- fix(example): check if msg channel is closed by @ioanzicu in #2479
- chore: use go install for installing sarama tools by @vigith in #2599
New Contributors
- @gebn made their first contribution in #2156
- @prestona made their first contribution in #2543
- @ioanzicu made their first contribution in #2479
- @csm8118 made their first contribution in #2560
- @javiercri made their first contribution in #2475
- @vigith made their first contribution in #2599
Full Changelog: v1.40.1...v1.41.0