Skip to content

Conversation

@mr-git
Copy link
Contributor

@mr-git mr-git commented Apr 9, 2025

  • update kafka-clients to v4.0.0
  • remove deprecated functions
  • drop Scala 2.12 support
  • discard RebalanceListener

@mr-git mr-git marked this pull request as draft April 9, 2025 17:38
for {
_ <- actions.add(Action.PartitionsAssignedEnter)
_ <- assigned0.complete(())
_ <- assigned1.get
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed as it creates dead-lock (1)


_ <- assigned0.get.toResource
_ <- consumer.topics.toResource
_ <- assigned1.complete(()).toResource
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed as it creates dead-lock (2)

Comment on lines +105 to 106
Action.Topics,
Action.PollExit
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part exhibits race condition - sometimes these 2 actions are swapped

lost0 <- Deferred[F, Unit].toResource
lost1 <- Deferred[F, Unit].toResource
listener = new RebalanceListener[F] {
listener = new RebalanceListener1WithConsumer[F] {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure, if this is the correct way how to migrate this unit-test

Action.PartitionsLostEnter,
Action.Topics,
Action.PartitionsLostExit,
Action.Topics,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we know why this has changed? this order seems weird to me

compressionType = CompressionType.Lz4,
retries = 8,
maxInFlightRequestsPerConnection = 7,
partitionerClass = Some(classOf[DefaultPartitioner]),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this something related to changes in java kafka-clients model? I tried to find the corresponding change to ProducerConfig in this changeset but I couldn't

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.

3 participants