ruby-kafka-aws-iam 1.4.1
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 +7 -0
- data/.circleci/config.yml +393 -0
- data/.github/workflows/stale.yml +19 -0
- data/.gitignore +13 -0
- data/.readygo +1 -0
- data/.rspec +3 -0
- data/.rubocop.yml +44 -0
- data/.ruby-version +1 -0
- data/.yardopts +3 -0
- data/CHANGELOG.md +314 -0
- data/Gemfile +5 -0
- data/ISSUE_TEMPLATE.md +23 -0
- data/LICENSE.txt +176 -0
- data/Procfile +2 -0
- data/README.md +1356 -0
- data/Rakefile +8 -0
- data/benchmarks/message_encoding.rb +23 -0
- data/bin/console +8 -0
- data/bin/setup +5 -0
- data/docker-compose.yml +39 -0
- data/examples/consumer-group.rb +35 -0
- data/examples/firehose-consumer.rb +64 -0
- data/examples/firehose-producer.rb +54 -0
- data/examples/simple-consumer.rb +34 -0
- data/examples/simple-producer.rb +42 -0
- data/examples/ssl-producer.rb +44 -0
- data/lib/kafka/async_producer.rb +297 -0
- data/lib/kafka/broker.rb +217 -0
- data/lib/kafka/broker_info.rb +16 -0
- data/lib/kafka/broker_pool.rb +41 -0
- data/lib/kafka/broker_uri.rb +43 -0
- data/lib/kafka/client.rb +838 -0
- data/lib/kafka/cluster.rb +513 -0
- data/lib/kafka/compression.rb +45 -0
- data/lib/kafka/compressor.rb +86 -0
- data/lib/kafka/connection.rb +228 -0
- data/lib/kafka/connection_builder.rb +33 -0
- data/lib/kafka/consumer.rb +642 -0
- data/lib/kafka/consumer_group/assignor.rb +63 -0
- data/lib/kafka/consumer_group.rb +231 -0
- data/lib/kafka/crc32_hash.rb +15 -0
- data/lib/kafka/datadog.rb +420 -0
- data/lib/kafka/digest.rb +22 -0
- data/lib/kafka/fetch_operation.rb +115 -0
- data/lib/kafka/fetched_batch.rb +58 -0
- data/lib/kafka/fetched_batch_generator.rb +120 -0
- data/lib/kafka/fetched_message.rb +48 -0
- data/lib/kafka/fetched_offset_resolver.rb +48 -0
- data/lib/kafka/fetcher.rb +224 -0
- data/lib/kafka/gzip_codec.rb +34 -0
- data/lib/kafka/heartbeat.rb +25 -0
- data/lib/kafka/instrumenter.rb +38 -0
- data/lib/kafka/interceptors.rb +33 -0
- data/lib/kafka/lz4_codec.rb +27 -0
- data/lib/kafka/message_buffer.rb +87 -0
- data/lib/kafka/murmur2_hash.rb +17 -0
- data/lib/kafka/offset_manager.rb +259 -0
- data/lib/kafka/partitioner.rb +40 -0
- data/lib/kafka/pause.rb +92 -0
- data/lib/kafka/pending_message.rb +29 -0
- data/lib/kafka/pending_message_queue.rb +41 -0
- data/lib/kafka/produce_operation.rb +205 -0
- data/lib/kafka/producer.rb +528 -0
- data/lib/kafka/prometheus.rb +316 -0
- data/lib/kafka/protocol/add_offsets_to_txn_request.rb +29 -0
- data/lib/kafka/protocol/add_offsets_to_txn_response.rb +21 -0
- data/lib/kafka/protocol/add_partitions_to_txn_request.rb +34 -0
- data/lib/kafka/protocol/add_partitions_to_txn_response.rb +47 -0
- data/lib/kafka/protocol/alter_configs_request.rb +44 -0
- data/lib/kafka/protocol/alter_configs_response.rb +49 -0
- data/lib/kafka/protocol/api_versions_request.rb +21 -0
- data/lib/kafka/protocol/api_versions_response.rb +53 -0
- data/lib/kafka/protocol/consumer_group_protocol.rb +19 -0
- data/lib/kafka/protocol/create_partitions_request.rb +42 -0
- data/lib/kafka/protocol/create_partitions_response.rb +28 -0
- data/lib/kafka/protocol/create_topics_request.rb +45 -0
- data/lib/kafka/protocol/create_topics_response.rb +26 -0
- data/lib/kafka/protocol/decoder.rb +175 -0
- data/lib/kafka/protocol/delete_topics_request.rb +33 -0
- data/lib/kafka/protocol/delete_topics_response.rb +26 -0
- data/lib/kafka/protocol/describe_configs_request.rb +35 -0
- data/lib/kafka/protocol/describe_configs_response.rb +73 -0
- data/lib/kafka/protocol/describe_groups_request.rb +27 -0
- data/lib/kafka/protocol/describe_groups_response.rb +73 -0
- data/lib/kafka/protocol/encoder.rb +184 -0
- data/lib/kafka/protocol/end_txn_request.rb +29 -0
- data/lib/kafka/protocol/end_txn_response.rb +19 -0
- data/lib/kafka/protocol/fetch_request.rb +70 -0
- data/lib/kafka/protocol/fetch_response.rb +136 -0
- data/lib/kafka/protocol/find_coordinator_request.rb +29 -0
- data/lib/kafka/protocol/find_coordinator_response.rb +29 -0
- data/lib/kafka/protocol/heartbeat_request.rb +27 -0
- data/lib/kafka/protocol/heartbeat_response.rb +17 -0
- data/lib/kafka/protocol/init_producer_id_request.rb +26 -0
- data/lib/kafka/protocol/init_producer_id_response.rb +27 -0
- data/lib/kafka/protocol/join_group_request.rb +47 -0
- data/lib/kafka/protocol/join_group_response.rb +41 -0
- data/lib/kafka/protocol/leave_group_request.rb +25 -0
- data/lib/kafka/protocol/leave_group_response.rb +17 -0
- data/lib/kafka/protocol/list_groups_request.rb +23 -0
- data/lib/kafka/protocol/list_groups_response.rb +35 -0
- data/lib/kafka/protocol/list_offset_request.rb +53 -0
- data/lib/kafka/protocol/list_offset_response.rb +89 -0
- data/lib/kafka/protocol/member_assignment.rb +42 -0
- data/lib/kafka/protocol/message.rb +172 -0
- data/lib/kafka/protocol/message_set.rb +55 -0
- data/lib/kafka/protocol/metadata_request.rb +31 -0
- data/lib/kafka/protocol/metadata_response.rb +185 -0
- data/lib/kafka/protocol/offset_commit_request.rb +47 -0
- data/lib/kafka/protocol/offset_commit_response.rb +29 -0
- data/lib/kafka/protocol/offset_fetch_request.rb +38 -0
- data/lib/kafka/protocol/offset_fetch_response.rb +56 -0
- data/lib/kafka/protocol/produce_request.rb +94 -0
- data/lib/kafka/protocol/produce_response.rb +63 -0
- data/lib/kafka/protocol/record.rb +88 -0
- data/lib/kafka/protocol/record_batch.rb +223 -0
- data/lib/kafka/protocol/request_message.rb +26 -0
- data/lib/kafka/protocol/sasl_handshake_request.rb +33 -0
- data/lib/kafka/protocol/sasl_handshake_response.rb +28 -0
- data/lib/kafka/protocol/sync_group_request.rb +33 -0
- data/lib/kafka/protocol/sync_group_response.rb +26 -0
- data/lib/kafka/protocol/txn_offset_commit_request.rb +46 -0
- data/lib/kafka/protocol/txn_offset_commit_response.rb +47 -0
- data/lib/kafka/protocol.rb +225 -0
- data/lib/kafka/round_robin_assignment_strategy.rb +52 -0
- data/lib/kafka/sasl/awsmskiam.rb +128 -0
- data/lib/kafka/sasl/gssapi.rb +76 -0
- data/lib/kafka/sasl/oauth.rb +64 -0
- data/lib/kafka/sasl/plain.rb +39 -0
- data/lib/kafka/sasl/scram.rb +180 -0
- data/lib/kafka/sasl_authenticator.rb +73 -0
- data/lib/kafka/snappy_codec.rb +29 -0
- data/lib/kafka/socket_with_timeout.rb +96 -0
- data/lib/kafka/ssl_context.rb +66 -0
- data/lib/kafka/ssl_socket_with_timeout.rb +192 -0
- data/lib/kafka/statsd.rb +296 -0
- data/lib/kafka/tagged_logger.rb +77 -0
- data/lib/kafka/transaction_manager.rb +306 -0
- data/lib/kafka/transaction_state_machine.rb +72 -0
- data/lib/kafka/version.rb +5 -0
- data/lib/kafka/zstd_codec.rb +27 -0
- data/lib/kafka.rb +373 -0
- data/lib/ruby-kafka.rb +5 -0
- data/ruby-kafka.gemspec +54 -0
- metadata +520 -0
data/CHANGELOG.md
ADDED
@@ -0,0 +1,314 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
Changes and additions to the library will be listed here.
|
4
|
+
|
5
|
+
## Unreleased
|
6
|
+
|
7
|
+
- Add support for AWS IAM Authentication to an MSK cluster (#907).
|
8
|
+
|
9
|
+
## 1.4.0
|
10
|
+
|
11
|
+
- Refresh a stale cluster's metadata if necessary on `Kafka::Client#deliver_message` (#901).
|
12
|
+
- Fix `Kafka::TransactionManager#send_offsets_to_txn` (#866).
|
13
|
+
- Add support for `murmur2` based partitioning.
|
14
|
+
- Add `resolve_seed_brokers` option to support seed brokers' hostname with multiple addresses (#877).
|
15
|
+
- Handle SyncGroup responses with a non-zero error and no assignments (#896).
|
16
|
+
- Add support for non-identical topic subscriptions within the same consumer group (#525 / #764).
|
17
|
+
|
18
|
+
## 1.3.0
|
19
|
+
|
20
|
+
- Support custom assignment strategy (#846).
|
21
|
+
- Improved Exceptions in TransactionManager (#862).
|
22
|
+
|
23
|
+
## 1.2.0
|
24
|
+
|
25
|
+
- Add producer consumer interceptors (#837).
|
26
|
+
- Add support for configuring the client partitioner (#848).
|
27
|
+
|
28
|
+
## 1.1.0
|
29
|
+
|
30
|
+
- Extra sanity checking when marking offsets as processed (#824).
|
31
|
+
- Make `verify_hostname` settable for SSL contexts (#828).
|
32
|
+
- Instrument `create_time` from last message in batch (#811).
|
33
|
+
- Add client function for fetching topic replica count (#822).
|
34
|
+
- Allow consumers to refresh the topic lists (#818).
|
35
|
+
- Disconnect after leaving a group (#817).
|
36
|
+
- Use `max_wait_time` as the sleep instead of hardcoded 2 seconds (#825).
|
37
|
+
|
38
|
+
## 1.0.0
|
39
|
+
|
40
|
+
- Add client methods to manage configs (#759)
|
41
|
+
- Support Kafka 2.3 and 2.4.
|
42
|
+
|
43
|
+
## 0.7.10
|
44
|
+
|
45
|
+
- Fix logger again (#762)
|
46
|
+
|
47
|
+
## 0.7.9
|
48
|
+
|
49
|
+
- Fix SSL authentication for ruby < 2.4.0 (#742)
|
50
|
+
- Add metrics for prometheus/client (#739)
|
51
|
+
- Do not add nil message entries when ignoring old messages (#746)
|
52
|
+
- Scram authentication thread save (#743)
|
53
|
+
|
54
|
+
## 0.7.8
|
55
|
+
- Optionally verify hostname on SSL certs (#733)
|
56
|
+
|
57
|
+
## 0.7.7
|
58
|
+
- Producer send offsets in transaction (#723)
|
59
|
+
- Support zstd compression (#724)
|
60
|
+
- Verify SSL Certificates (#730)
|
61
|
+
|
62
|
+
## 0.7.6
|
63
|
+
- Introduce regex matching in `Consumer#subscribe` (#700)
|
64
|
+
- Only rejoin group on error if we're not in shutdown mode (#711)
|
65
|
+
- Use `maxTimestamp` for `logAppendTime` timestamps (#706)
|
66
|
+
- Async producer limit number of retries (#708)
|
67
|
+
- Support SASL OAuthBearer Authentication (#710)
|
68
|
+
|
69
|
+
## 0.7.5
|
70
|
+
- Distribute partitions across consumer groups when there are few partitions per topic (#681)
|
71
|
+
- Fix an issue where a consumer would fail to fetch any messages (#689)
|
72
|
+
- Instrumentation for heartbeat event
|
73
|
+
- Synchronously stop the fetcher to prevent race condition when processing commands
|
74
|
+
- Instrument batch fetching (#694)
|
75
|
+
|
76
|
+
## 0.7.4
|
77
|
+
- Fix wrong encoding calculation that leads to message corruption (#682, #680).
|
78
|
+
- Change the log level of the 'Committing offsets' message to debug (#640).
|
79
|
+
- Avoid Ruby warnings about unused vars (#679).
|
80
|
+
- Synchronously commit offsets after HeartbeatError (#676).
|
81
|
+
- Discard messages that were fetched under a previous consumer group generation (#665).
|
82
|
+
- Support specifying an ssl client certificates key passphrase (#667).
|
83
|
+
|
84
|
+
## 0.7.3
|
85
|
+
|
86
|
+
- Synchronize access to @worker_thread and @timer_thread in AsyncProducer to prevent creating multiple threads (#661).
|
87
|
+
|
88
|
+
## 0.7.2
|
89
|
+
|
90
|
+
- Handle case when paused partition does not belong to group on resume (#656).
|
91
|
+
- Fix compatibility version in documentation (#651).
|
92
|
+
- Fix message set backward compatible (#648).
|
93
|
+
- Refresh metadata on connection error when listing topics (#644).
|
94
|
+
|
95
|
+
## 0.7.1
|
96
|
+
|
97
|
+
- Compatibility with dogstatsd-ruby v4.0.0.
|
98
|
+
- Fix consuming duplication due to redundant messages returned from Kafka (#636).
|
99
|
+
- Fresh cluster info on fetch error (#641).
|
100
|
+
- Exactly Once Delivery and Transactional Messaging Support (#608).
|
101
|
+
- Support extra client certificates in the SSL Context when authenticating with Kafka (#633).
|
102
|
+
|
103
|
+
## 0.7.0
|
104
|
+
|
105
|
+
- Drop support for Kafka 0.10 in favor of native support for Kafka 0.11.
|
106
|
+
- Support record headers (#604).
|
107
|
+
- Add instrumenter and logger when async message delivery fails (#603).
|
108
|
+
- Upgrade and rename GroupCoordinator API to FindCoordinator API (#606).
|
109
|
+
- Refresh cluster metadata after topic re-assignment (#609).
|
110
|
+
- Disable SASL over SSL with a new config (#613).
|
111
|
+
- Allow listing brokers in a cluster (#626).
|
112
|
+
- Fix Fetcher's message skipping (#625).
|
113
|
+
|
114
|
+
## 0.6.7
|
115
|
+
|
116
|
+
- Handle case where consumer doesn't know about the topic (#597 + 0e302cbd0f31315bf81c1d1645520413ad6b58f0)
|
117
|
+
|
118
|
+
## v0.6.5
|
119
|
+
|
120
|
+
- Fix bug related to partition assignment.
|
121
|
+
|
122
|
+
## v0.6.4
|
123
|
+
|
124
|
+
- Fix bug that caused consumers to jump back and reprocess messages (#595).
|
125
|
+
|
126
|
+
## v0.6.3
|
127
|
+
|
128
|
+
- Allow configuring the max size of the queue connecting the fetcher thread with the consumer.
|
129
|
+
- Add support for the Describe Groups API (#583).
|
130
|
+
|
131
|
+
## v0.6.2
|
132
|
+
|
133
|
+
- Add list groups API (#582).
|
134
|
+
- Use mutable String constructor (#584).
|
135
|
+
|
136
|
+
## v0.6.1
|
137
|
+
|
138
|
+
- Fix bug with exponential pausing causing pauses never to stop.
|
139
|
+
|
140
|
+
## v0.6.0
|
141
|
+
|
142
|
+
- Fetch messages asynchronously (#526).
|
143
|
+
- Add support for exponential backoff in pauses (#566).
|
144
|
+
- Instrument pause durations (#574).
|
145
|
+
|
146
|
+
## v0.5.5
|
147
|
+
|
148
|
+
- Support PLAINTEXT and SSL URI schemes (#550).
|
149
|
+
|
150
|
+
## v0.5.4
|
151
|
+
|
152
|
+
- Add support for config entries in the topic creation API (#540).
|
153
|
+
- Don't fail on retry when the cluster is secured (#545).
|
154
|
+
|
155
|
+
## v0.5.3
|
156
|
+
|
157
|
+
- Add support for the topic deletion API (#528).
|
158
|
+
- Add support for the partition creation API (#533).
|
159
|
+
- Allow passing in the seed brokers in a positional argument (#538).
|
160
|
+
|
161
|
+
## v0.5.2
|
162
|
+
|
163
|
+
- Instrument the start of message/batch processing (#496).
|
164
|
+
- Mark `Client#fetch_messages` as stable.
|
165
|
+
- Fix the list topics API (#508).
|
166
|
+
- Add support for LZ4 compression (#499).
|
167
|
+
- Refactor compression codec lookup (#509).
|
168
|
+
- Fix compressed message set offset bug (#506).
|
169
|
+
- Test against multiple versions of Kafka.
|
170
|
+
- Fix double-processing of messages after a consumer exception (#518).
|
171
|
+
- Track consumer offsets in Datadog.
|
172
|
+
|
173
|
+
## v0.5.1
|
174
|
+
|
175
|
+
Requires Kafka 0.10.1+ due to usage of a few new APIs.
|
176
|
+
|
177
|
+
- Fix bug when using compression (#458).
|
178
|
+
- Update the v3 of the Fetch API, allowing a per-request `max_bytes` setting (#468).
|
179
|
+
- Make `#deliver_message` more resilient using retries and backoff.
|
180
|
+
- Add support for SASL SCRAM authentication (#465).
|
181
|
+
- Refactor and simplify SASL code.
|
182
|
+
- Fix issue when a consumer resets a partition to its default offset.
|
183
|
+
- Allow specifying a create time for messages (#481).
|
184
|
+
|
185
|
+
## v0.5.0
|
186
|
+
|
187
|
+
- Drops support for Kafka 0.9 in favor of Kafka 0.10 (#381)!
|
188
|
+
- Handle cases where there are no partitions to fetch from by sleeping a bit (#439).
|
189
|
+
- Handle problems with the broker cache (#440).
|
190
|
+
- Shut down more quickly (#438).
|
191
|
+
|
192
|
+
## v0.4.3
|
193
|
+
|
194
|
+
- Restart the async producer thread automatically after errors.
|
195
|
+
- Include the offset lag in batch consumer metrics (Statsd).
|
196
|
+
- Make the default `max_wait_time` more sane.
|
197
|
+
- Fix issue with cached default offset lookups (#431).
|
198
|
+
- Upgrade to Datadog client version 3.
|
199
|
+
|
200
|
+
## v0.4.2
|
201
|
+
|
202
|
+
- Fix connection issue on SASL connections (#401).
|
203
|
+
- Add more instrumentation of consumer groups (#407).
|
204
|
+
- Improve error logging (#385)
|
205
|
+
|
206
|
+
## v0.4.1
|
207
|
+
|
208
|
+
- Allow seeking the consumer position (#386).
|
209
|
+
- Reopen idle connections after 5 minutes (#399).
|
210
|
+
|
211
|
+
## v0.4.0
|
212
|
+
|
213
|
+
- Support SASL authentication (#334 and #370)
|
214
|
+
- Allow loading SSL certificates from files (#371)
|
215
|
+
- Add Statsd metric reporting (#373)
|
216
|
+
|
217
|
+
## v0.3.17
|
218
|
+
|
219
|
+
- Re-commit previously committed offsets periodically with an interval of half
|
220
|
+
the offset retention time, starting with the first commit (#318).
|
221
|
+
- Expose offset retention time in the Consumer API (#316).
|
222
|
+
- Don't get blocked when there's temporarily no leader for a topic (#336).
|
223
|
+
|
224
|
+
## v0.3.16
|
225
|
+
|
226
|
+
- Fix SSL socket timeout (#283).
|
227
|
+
- Update to the latest Datadog gem (#296).
|
228
|
+
- Automatically detect private key type (#297).
|
229
|
+
- Only fetch messages for subscribed topics (#309).
|
230
|
+
|
231
|
+
## v0.3.15
|
232
|
+
|
233
|
+
- Allow setting a timeout on a partition pause (#272).
|
234
|
+
- Allow pausing consumption of a partition (#268).
|
235
|
+
|
236
|
+
## v0.3.14
|
237
|
+
|
238
|
+
- Automatically recover from invalid consumer checkpoints.
|
239
|
+
- Minimize the number of times messages are reprocessed after a consumer group resync.
|
240
|
+
- Improve instrumentation of the async producer.
|
241
|
+
|
242
|
+
## v0.3.12
|
243
|
+
|
244
|
+
- Fix a bug in the consumer.
|
245
|
+
|
246
|
+
## v0.3.11
|
247
|
+
|
248
|
+
- Fix bug in the simple consumer loop.
|
249
|
+
|
250
|
+
## v0.3.10
|
251
|
+
|
252
|
+
- Handle brokers becoming unavailable while in a consumer loop (#228).
|
253
|
+
- Handle edge case when consuming from the end of a topic (#230).
|
254
|
+
- Ensure the library can be loaded without Bundler (#224).
|
255
|
+
- Add an API for fetching the last offset in a partition (#232).
|
256
|
+
|
257
|
+
## v0.3.9
|
258
|
+
|
259
|
+
- Improve the default durability setting. The producer setting `required_acks` now defaults to `:all` (#210).
|
260
|
+
- Handle rebalances in the producer (#196). *Mpampis Kostas*
|
261
|
+
- Add simplified producer and consumer APIs for simple use cases.
|
262
|
+
- Add out-of-the-box Datadog reporting.
|
263
|
+
- Improve producer performance.
|
264
|
+
|
265
|
+
## v0.3.8
|
266
|
+
|
267
|
+
- Keep separate connection pools for consumers and producers initialized from
|
268
|
+
the same client.
|
269
|
+
- Handle connection errors automatically in the async producer.
|
270
|
+
|
271
|
+
## v0.3.7
|
272
|
+
|
273
|
+
- Default to port 9092 if no port is provided for a seed broker.
|
274
|
+
|
275
|
+
## v0.3.6
|
276
|
+
|
277
|
+
- Fix bug that caused partition information to not be reliably updated.
|
278
|
+
|
279
|
+
## v0.3.5
|
280
|
+
|
281
|
+
- Fix bug that caused the async producer to not work with Unicorn (#166).
|
282
|
+
- Fix bug that caused committed consumer offsets to be lost (#167).
|
283
|
+
- Instrument buffer overflows in the producer.
|
284
|
+
|
285
|
+
## v0.3.4
|
286
|
+
|
287
|
+
- Make the producer buffer more resilient in the face of isolated topic errors.
|
288
|
+
|
289
|
+
## v0.3.3
|
290
|
+
|
291
|
+
- Allow clearing a producer's buffer (Martin Nowak).
|
292
|
+
- Improved Consumer API.
|
293
|
+
- Instrument producer errors.
|
294
|
+
|
295
|
+
## v0.3.2
|
296
|
+
|
297
|
+
- Experimental batch consumer API.
|
298
|
+
|
299
|
+
## v0.3.1
|
300
|
+
|
301
|
+
- Simplify the heartbeat algorithm.
|
302
|
+
- Handle partial messages at the end of message sets received from the brokers.
|
303
|
+
|
304
|
+
## v0.3.0
|
305
|
+
|
306
|
+
- Add support for encryption and authentication with SSL (Tom Crayford).
|
307
|
+
- Allow configuring consumer offset commit policies.
|
308
|
+
- Instrument consumer message processing.
|
309
|
+
- Fixed an issue causing exceptions when no logger was specified.
|
310
|
+
|
311
|
+
## v0.2.0
|
312
|
+
|
313
|
+
- Add instrumentation of message compression.
|
314
|
+
- **New!** Consumer API – still alpha level. Expect many changes.
|
data/Gemfile
ADDED
data/ISSUE_TEMPLATE.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
If this is a bug report, please fill out the following:
|
2
|
+
|
3
|
+
* Version of Ruby:
|
4
|
+
* Version of Kafka:
|
5
|
+
* Version of ruby-kafka:
|
6
|
+
|
7
|
+
Please verify that the problem you're seeing hasn't been fixed by the current `master` of ruby-kafka.
|
8
|
+
|
9
|
+
###### Steps to reproduce
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
kafka = Kafka.new(...)
|
13
|
+
|
14
|
+
# Please write an example that reproduces the problem you're describing.
|
15
|
+
```
|
16
|
+
|
17
|
+
###### Expected outcome
|
18
|
+
|
19
|
+
What you thought would happen when running the example.
|
20
|
+
|
21
|
+
###### Actual outcome
|
22
|
+
|
23
|
+
What actually happened.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
data/Procfile
ADDED