Skip to content

Kafka Connect Adaptor: handle null offsets from kafka connector - #14916

Merged
eolivelli merged 2 commits into
apache:masterfrom
dlg99:kca-null-val-apache
Apr 20, 2022
Merged

eolivelli merged 2 commits into
apache:masterfrom
dlg99:kca-null-val-apache

Conversation

@dlg99

@dlg99 dlg99 commented Mar 28, 2022

Copy link
Copy Markdown
Contributor

Motivation

Some Kafka connectors (e.g. JMS) return null as an offset value because underlying system does not support.

Modifications

Handle attempt to set null as a partition offset; set it to message.earliest to avoid NPEs (actual value does not matter AFAICT)

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change added unit tests

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

NO

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

Check the box below or label this PR directly (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Mar 28, 2022
@dlg99

dlg99 commented Mar 29, 2022

Copy link
Copy Markdown
Contributor Author

RabbitMQ integration test is failing (flaking?), AFAICT it is not affected by my changes.
I see the same test failing on PR #14912

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm

@eolivelli

Copy link
Copy Markdown
Contributor

@dlg99 please rebase onto latest master, now CI should be in good shape

@dlg99
dlg99 force-pushed the kca-null-val-apache branch from e56cb19 to 2652835 Compare March 31, 2022 16:23
@eolivelli
eolivelli merged commit caf7648 into apache:master Apr 20, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants