rdkafka 0.23.1-x86_64-linux-gnu → 0.24.0-x86_64-linux-gnu
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +3 -0
 - data/README.md +1 -0
 - data/bin/verify_kafka_warnings +37 -0
 - data/docker-compose-ssl.yml +1 -1
 - data/docker-compose.yml +1 -1
 - data/ext/librdkafka.so +0 -0
 - data/lib/rdkafka/bindings.rb +14 -1
 - data/lib/rdkafka/producer/delivery_report.rb +2 -2
 - data/lib/rdkafka/version.rb +3 -3
 - metadata +2 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: da8684aee309b72626b78af49df65124b9f87c8ebc564c7be9e54ddf401a118a
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3366a05cd54854eeb3d5b98a1e9a1b9f78fab01c5c1993c2b835d18c825de55a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 7777edc01c03a8d4ea98d1f340524a913d4ba97c227ecb731235628054c288dc2ebfb3689a64924172567d7d875f2254c438deb953fb0956edc84c07c94df028
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1ebb1305395ff91feb7a4096655ed615c49163ee1fd115166d940782c1b25546be9987c81f68ae0d408f6e6854912d88fe82d416c34f6aa9abfa27d8beab45f2
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -163,6 +163,7 @@ bundle exec rake produce_messages 
     | 
|
| 
       163 
163 
     | 
    
         | 
| 
       164 
164 
     | 
    
         
             
            | rdkafka-ruby | librdkafka | patches |
         
     | 
| 
       165 
165 
     | 
    
         
             
            |-|-|-|
         
     | 
| 
      
 166 
     | 
    
         
            +
            | 0.24.x (Unreleased) | 2.11.1 (2025-08-08) | yes |
         
     | 
| 
       166 
167 
     | 
    
         
             
            | 0.23.x (2025-09-04) | 2.11.0 (2025-07-03) | yes |
         
     | 
| 
       167 
168 
     | 
    
         
             
            | 0.22.x (2025-07-17) | 2.8.0 (2025-01-07)  | yes |
         
     | 
| 
       168 
169 
     | 
    
         
             
            | 0.21.x (2025-02-13) | 2.8.0 (2025-01-07)  | yes |
         
     | 
| 
         @@ -0,0 +1,37 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            #!/bin/bash
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            # Checks Kafka logs for unsupported warning patterns
         
     | 
| 
      
 4 
     | 
    
         
            +
            # Only specified warnings are allowed, all others should trigger failure
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            allowed_patterns=(
         
     | 
| 
      
 7 
     | 
    
         
            +
              "Performing controller activation"
         
     | 
| 
      
 8 
     | 
    
         
            +
              "registered with feature metadata.version"
         
     | 
| 
      
 9 
     | 
    
         
            +
              "Replayed TopicRecord for"
         
     | 
| 
      
 10 
     | 
    
         
            +
              "Replayed PartitionRecord for"
         
     | 
| 
      
 11 
     | 
    
         
            +
              "Previous leader None and previous leader epoch"
         
     | 
| 
      
 12 
     | 
    
         
            +
              "Creating new"
         
     | 
| 
      
 13 
     | 
    
         
            +
              "Unloaded transaction metadata"
         
     | 
| 
      
 14 
     | 
    
         
            +
              "closing connection"
         
     | 
| 
      
 15 
     | 
    
         
            +
            )
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            # Get all warnings
         
     | 
| 
      
 18 
     | 
    
         
            +
            warnings=$(docker logs --since=0 kafka | grep "] WARN ")
         
     | 
| 
      
 19 
     | 
    
         
            +
            exit_code=0
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
            while IFS= read -r line; do
         
     | 
| 
      
 22 
     | 
    
         
            +
              allowed=0
         
     | 
| 
      
 23 
     | 
    
         
            +
              for pattern in "${allowed_patterns[@]}"; do
         
     | 
| 
      
 24 
     | 
    
         
            +
                if echo "$line" | grep -q "$pattern"; then
         
     | 
| 
      
 25 
     | 
    
         
            +
                  allowed=1
         
     | 
| 
      
 26 
     | 
    
         
            +
                  break
         
     | 
| 
      
 27 
     | 
    
         
            +
                fi
         
     | 
| 
      
 28 
     | 
    
         
            +
              done
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
              if [ $allowed -eq 0 ]; then
         
     | 
| 
      
 31 
     | 
    
         
            +
                echo "Unexpected warning found:"
         
     | 
| 
      
 32 
     | 
    
         
            +
                echo "$line"
         
     | 
| 
      
 33 
     | 
    
         
            +
                exit_code=1
         
     | 
| 
      
 34 
     | 
    
         
            +
              fi
         
     | 
| 
      
 35 
     | 
    
         
            +
            done <<< "$warnings"
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
            exit $exit_code
         
     | 
    
        data/docker-compose-ssl.yml
    CHANGED
    
    
    
        data/docker-compose.yml
    CHANGED
    
    
    
        data/ext/librdkafka.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/rdkafka/bindings.rb
    CHANGED
    
    | 
         @@ -2,6 +2,15 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            module Rdkafka
         
     | 
| 
       4 
4 
     | 
    
         
             
              # @private
         
     | 
| 
      
 5 
     | 
    
         
            +
              #
         
     | 
| 
      
 6 
     | 
    
         
            +
              # @note
         
     | 
| 
      
 7 
     | 
    
         
            +
              #   There are two types of responses related to errors:
         
     | 
| 
      
 8 
     | 
    
         
            +
              #     - rd_kafka_error_t - a C object that we need to remap into an error or null when no error
         
     | 
| 
      
 9 
     | 
    
         
            +
              #     - rd_kafka_resp_err_t - response error code (numeric) that we can use directly
         
     | 
| 
      
 10 
     | 
    
         
            +
              #
         
     | 
| 
      
 11 
     | 
    
         
            +
              #   It is critical to ensure, that we handle them correctly. The result type should be:
         
     | 
| 
      
 12 
     | 
    
         
            +
              #     - rd_kafka_error_t - :pointer
         
     | 
| 
      
 13 
     | 
    
         
            +
              #     - rd_kafka_resp_err_t - :int
         
     | 
| 
       5 
14 
     | 
    
         
             
              module Bindings
         
     | 
| 
       6 
15 
     | 
    
         
             
                extend FFI::Library
         
     | 
| 
       7 
16 
     | 
    
         | 
| 
         @@ -91,7 +100,7 @@ module Rdkafka 
     | 
|
| 
       91 
100 
     | 
    
         
             
                end
         
     | 
| 
       92 
101 
     | 
    
         | 
| 
       93 
102 
     | 
    
         
             
                attach_function :rd_kafka_topic_partition_list_new, [:int32], :pointer
         
     | 
| 
       94 
     | 
    
         
            -
                attach_function :rd_kafka_topic_partition_list_add, [:pointer, :string, :int32], : 
     | 
| 
      
 103 
     | 
    
         
            +
                attach_function :rd_kafka_topic_partition_list_add, [:pointer, :string, :int32], :pointer
         
     | 
| 
       95 
104 
     | 
    
         
             
                attach_function :rd_kafka_topic_partition_list_set_offset, [:pointer, :string, :int32, :int64], :void
         
     | 
| 
       96 
105 
     | 
    
         
             
                attach_function :rd_kafka_topic_partition_list_destroy, [:pointer], :void
         
     | 
| 
       97 
106 
     | 
    
         
             
                attach_function :rd_kafka_topic_partition_list_copy, [:pointer], :pointer
         
     | 
| 
         @@ -147,6 +156,10 @@ module Rdkafka 
     | 
|
| 
       147 
156 
     | 
    
         | 
| 
       148 
157 
     | 
    
         
             
                attach_function :rd_kafka_err2name, [:int], :string
         
     | 
| 
       149 
158 
     | 
    
         
             
                attach_function :rd_kafka_err2str, [:int], :string
         
     | 
| 
      
 159 
     | 
    
         
            +
                attach_function :rd_kafka_error_is_fatal, [:pointer], :int
         
     | 
| 
      
 160 
     | 
    
         
            +
                attach_function :rd_kafka_error_is_retriable, [:pointer], :int
         
     | 
| 
      
 161 
     | 
    
         
            +
                attach_function :rd_kafka_error_txn_requires_abort, [:pointer], :int
         
     | 
| 
      
 162 
     | 
    
         
            +
                attach_function :rd_kafka_error_destroy, [:pointer], :void
         
     | 
| 
       150 
163 
     | 
    
         
             
                attach_function :rd_kafka_get_err_descs, [:pointer, :pointer], :void
         
     | 
| 
       151 
164 
     | 
    
         | 
| 
       152 
165 
     | 
    
         
             
                # Configuration
         
     | 
| 
         @@ -12,8 +12,8 @@ module Rdkafka 
     | 
|
| 
       12 
12 
     | 
    
         
             
                  # @return [Integer]
         
     | 
| 
       13 
13 
     | 
    
         
             
                  attr_reader :offset
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
     | 
    
         
            -
                  # The name of the topic this message was produced to or nil in case  
     | 
| 
       16 
     | 
    
         
            -
                  #  
     | 
| 
      
 15 
     | 
    
         
            +
                  # The name of the topic this message was produced to or nil in case delivery failed and we
         
     | 
| 
      
 16 
     | 
    
         
            +
                  #   we not able to get the topic reference
         
     | 
| 
       17 
17 
     | 
    
         
             
                  #
         
     | 
| 
       18 
18 
     | 
    
         
             
                  # @return [String, nil]
         
     | 
| 
       19 
19 
     | 
    
         
             
                  attr_reader :topic_name
         
     | 
    
        data/lib/rdkafka/version.rb
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            module Rdkafka
         
     | 
| 
       4 
     | 
    
         
            -
              VERSION = "0. 
     | 
| 
       5 
     | 
    
         
            -
              LIBRDKAFKA_VERSION = "2.11. 
     | 
| 
       6 
     | 
    
         
            -
              LIBRDKAFKA_SOURCE_SHA256 = " 
     | 
| 
      
 4 
     | 
    
         
            +
              VERSION = "0.24.0"
         
     | 
| 
      
 5 
     | 
    
         
            +
              LIBRDKAFKA_VERSION = "2.11.1"
         
     | 
| 
      
 6 
     | 
    
         
            +
              LIBRDKAFKA_SOURCE_SHA256 = "a2c87186b081e2705bb7d5338d5a01bc88d43273619b372ccb7bb0d264d0ca9f"
         
     | 
| 
       7 
7 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: rdkafka
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.24.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x86_64-linux-gnu
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Thijs Cadier
         
     | 
| 
         @@ -176,6 +176,7 @@ files: 
     | 
|
| 
       176 
176 
     | 
    
         
             
            - MIT-LICENSE
         
     | 
| 
       177 
177 
     | 
    
         
             
            - README.md
         
     | 
| 
       178 
178 
     | 
    
         
             
            - Rakefile
         
     | 
| 
      
 179 
     | 
    
         
            +
            - bin/verify_kafka_warnings
         
     | 
| 
       179 
180 
     | 
    
         
             
            - docker-compose-ssl.yml
         
     | 
| 
       180 
181 
     | 
    
         
             
            - docker-compose.yml
         
     | 
| 
       181 
182 
     | 
    
         
             
            - ext/librdkafka.so
         
     |