Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iceberg Kafka Connector experiences a constant hanging lag for low-volume topics #11818

Open
1 of 3 tasks
fenil25 opened this issue Dec 18, 2024 · 0 comments
Open
1 of 3 tasks
Labels
bug Something isn't working

Comments

@fenil25
Copy link

fenil25 commented Dec 18, 2024

Apache Iceberg version

1.7.1 (latest release)

Query engine

Kafka Connect

Please describe the bug 🐞

I have iceberg kafka-connect sink and when the volume of records in topic is low, iceberg connector doesn't consume any records.
One would see a constant lag and iceberg will never produce any records and commit to the table. Once, we have enough records, all the records will be pushed through and committed to the table.

example -

/bin/kafka-consumer-groups.sh --bootstrap-server cdc-kafka-prod.internal.ec2.tinyspeck.com:9092 --describe --group cg-control-payments_group
Consumer group 'cg-control-payments_group' has no active members.

TOPIC                    PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID     HOST            CLIENT-ID
prod.aux2.payments_group 0          45              46              1               -               -               -
prod.aux2.payments_group 1          41              42              1               -               -               -
prod.aux2.payments_group 2          35              36              1               -               -               -
prod.aux2.payments_group 3          32              33              1               -               -               -

./bin/kafka-consumer-groups.sh --bootstrap-server cdc-kafka-prod.internal.ec2.tinyspeck.com:9092 --describe --group cg-control-payments_group
Consumer group 'cg-control-payments_group' has no active members.

TOPIC                    PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID     HOST            CLIENT-ID
prod.aux2.payments_group 0          45              46              1               -               -               -
prod.aux2.payments_group 1          41              42              1               -               -               -
prod.aux2.payments_group 2          35              36              1               -               -               -
prod.aux2.payments_group 3          32              33              1               -               -               -

I am observing this constant lag of 1 for all partition since a day now. No commit has been made to the append-only table. I confirmed that the record exists in the topic and is not expired. fetch.min.bytes is also set to default value of 1.
When new records flow through the topic, all the records are committed to the iceberg table. But, this comes with a lot of unnecessary delay.

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time
@fenil25 fenil25 added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant