Skip to content

chore: sync CrowdFlower/ruby-kafka with zendesk/ruby-kafka#13

Open
AndreyNenashev wants to merge 73 commits intomasterfrom
chore/upgrade-from-zendesk
Open

chore: sync CrowdFlower/ruby-kafka with zendesk/ruby-kafka#13
AndreyNenashev wants to merge 73 commits intomasterfrom
chore/upgrade-from-zendesk

Conversation

@AndreyNenashev
Copy link

No description provided.

dasch and others added 30 commits October 14, 2020 13:05
fix Kafka::TransactionManager#send_offsets_to_txn
In the example, one consumer sometimes consumers all messages
before another consumer joins. As a result, the example is
unstable. This commit makes it stable by ensuring all consumers
have joined.
Resolve "Passing the keyword argument as ..." deprecation warning
…-error

Resolve RSpec::Mocks::OutsideOfExampleError
Co-authored-by: Daniel Schierbeck <dasch@zendesk.com>
…ategy-example-stable

Make "consuming messages with a custom assignment strategy" stable
dasch and others added 23 commits July 28, 2021 13:26
Make ssl_ca_cert_file_path support an array of files
On `rescue Kafka::Error` we're rerunning the whole method block
including `@logger.push_tags(@producer.to_s)`, but clearing tags
only in `ensure` which is not run on `retry`
Fix multiple `[Producer name]` tags on failures
There wasn't support for authenticating with AWS's IAM, so here it is.

Based off instructions @ https://github.com/aws/aws-msk-iam-auth

Something along these lines to test/connect:

```
k = Kafka.new(
  seed_brokers: [array of seed brokers as defined by aws],
  client_id: 'client_id',
  logger: Rails.logger,
  partitioner: Kafka::Partitioner.new,
  sasl_aws_msk_iam_access_key_id: 'iam_access_key',
  sasl_aws_msk_iam_secret_key_id: 'iam_secret_key',
  sasl_aws_msk_iam_aws_region: 'us-west-2',
  ssl_ca_certs_from_system: true
)
k.topics
```

IAM auth-enabled kafka instances should be on post 9098, so seed broker array such as
`['host1.aws.com:9098', 'host2.aws.com:9098'] etc. More instructions on how to find
these hostnames for your MSK setup @ https://github.com/aws/aws-msk-iam-auth
The `topic` key is already being set in `tags`, so these method calls
don't actually do anything.
@AndreyNenashev AndreyNenashev changed the title chore: update with zendesk/ruby-kafka chore: sync CrowdFlower/ruby-kafka with zendesk/ruby-kafka Jul 8, 2022
@AndreyNenashev AndreyNenashev requested a review from iliax July 8, 2022 15:08
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.