Skip to content

KAFKA-9780: Deprecate commit records without record metadata#8379

Merged
rhauch merged 1 commit into
apache:trunkfrom
mmolimar:KAFKA-9780
May 21, 2020
Merged

KAFKA-9780: Deprecate commit records without record metadata#8379
rhauch merged 1 commit into
apache:trunkfrom
mmolimar:KAFKA-9780

Conversation

@mmolimar

@mmolimar mmolimar commented Mar 27, 2020

Copy link
Copy Markdown
Contributor

Since KIP-382 (MirrorMaker 2.0) a new method commitRecord was included in SourceTask class to be called by the worker adding a new parameter with the record metadata. The old commitRecord method is called from the new one and it's preserved just for backwards compatibility.

The idea is to deprecate this method so that we could remove it in a future release.

KIP-586.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@mmolimar mmolimar changed the title Deprecate commit records without record metadata KAFKA-9780: Deprecate commit records without record metadata Mar 28, 2020

@rhauch rhauch 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.

Thanks, @mmolimar. I think this PR looks good, and could potentially be merged as-is.

However, this is part of the public Connect API, so we'll need a KIP for any changes, including deprecations. I've commented as such on KAFKA-9780. I'm going to mark this as "Request Changes" (even though no changes are required to the commit) just to make sure we don't merge this before a KIP is approved.

@rhauch

rhauch commented Apr 3, 2020

Copy link
Copy Markdown
Contributor

ok to test

@rhauch rhauch 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. Thanks, @mmolimar!

@rhauch

rhauch commented May 6, 2020

Copy link
Copy Markdown
Contributor

@rhauch

rhauch commented May 11, 2020

Copy link
Copy Markdown
Contributor

Green builds on JDK 11 and 8, and unrelated failure on JDK 14.

@rhauch rhauch merged commit 856e366 into apache:trunk May 21, 2020
Kvicii pushed a commit to Kvicii/kafka that referenced this pull request May 22, 2020
* 'trunk' of github.com:apache/kafka:
  KAFKA-9980: Fix bug where alterClientQuotas could not set default client quotas (apache#8658)
  KAFKA-9780: Deprecate commit records without record metadata (apache#8379)
  MINOR: Deploy VerifiableClient in constructor to avoid test timeouts (apache#8651)
  MINOR: Added unit tests for ConnectionQuotas (apache#8650)
  MINOR: Correct MirrorMaker2 integration test configs for Connect internal topics (apache#8653)
  KAFKA-9855 - return cached Structs for Schemas with no fields (apache#8472)
  KAFKA-9950: Construct new ConfigDef for MirrorTaskConfig before defining new properties (apache#8608)
  KAFKA-8869: Remove task configs for deleted connectors from config snapshot (apache#8444)
  KAFKA-9409: Supplement immutability of ClusterConfigState class in Connect (apache#7942)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants