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

KAFKA-5567: Connect sink worker should commit offsets of original topic partitions #3499

Conversation

kkonstantine
Copy link
Contributor

No description provided.

@kkonstantine kkonstantine changed the title KAFKA-5567: Connect sink worker should commit offsets of original topic partitions [WIP] KAFKA-5567: Connect sink worker should commit offsets of original topic partitions Jul 7, 2017
@kkonstantine kkonstantine force-pushed the KAFKA-5567-With-transformations-that-mutate-the-topic-partition-committing-offsets-should-to-refer-to-the-original-topic-partition branch from b9eeeb1 to 7c6f223 Compare July 7, 2017 06:04
@asfgit
Copy link

asfgit commented Jul 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/5947/
Test PASSed (JDK 7 and Scala 2.11).

@asfgit
Copy link

asfgit commented Jul 7, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/5932/
Test PASSed (JDK 8 and Scala 2.12).

Copy link
Contributor

@ewencp ewencp left a comment

Choose a reason for hiding this comment

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

@kkonstantine One nit, but the solution seems right to me.

if (record != null) {
messageBatch.add(record);
SinkRecord transRecord = transformationChain.apply(origRecord);
if (transRecord != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Even if we filter it out, wouldn't we want to include its offset? We did process it, the transformation just chose not to bother passing it to the connector, so it seems safe to commit the offset.

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 considered this as an optimization. In any case, it was already there since the initial commit.

I'm inclined to commit all the offsets.

@kkonstantine kkonstantine force-pushed the KAFKA-5567-With-transformations-that-mutate-the-topic-partition-committing-offsets-should-to-refer-to-the-original-topic-partition branch from 7c6f223 to cf7718e Compare July 19, 2017 21:15
@asfgit
Copy link

asfgit commented Jul 19, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6176/
Test PASSed (JDK 7 and Scala 2.11).

@asfgit
Copy link

asfgit commented Jul 19, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6160/
Test PASSed (JDK 8 and Scala 2.12).

@rhauch
Copy link
Contributor

rhauch commented Aug 15, 2017

@kkonstantine, what's the status of this? @gwenshap would like this backported for the 0.11.0.1 release after it is merged to trunk.

@asfgit
Copy link

asfgit commented Aug 15, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6776/
Test FAILed (JDK 8 and Scala 2.12).

@rhauch
Copy link
Contributor

rhauch commented Aug 15, 2017

The JDK 8 PR builds have been failing lately. See INFRA-14882

@asfgit
Copy link

asfgit commented Aug 15, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6790/
Test PASSed (JDK 7 and Scala 2.11).

@kkonstantine kkonstantine force-pushed the KAFKA-5567-With-transformations-that-mutate-the-topic-partition-committing-offsets-should-to-refer-to-the-original-topic-partition branch from cf7718e to bf9dc95 Compare August 16, 2017 20:11
@kkonstantine kkonstantine changed the title [WIP] KAFKA-5567: Connect sink worker should commit offsets of original topic partitions KAFKA-5567: Connect sink worker should commit offsets of original topic partitions Aug 16, 2017
@kkonstantine
Copy link
Contributor Author

@ewencp ready for final review.

@asfgit
Copy link

asfgit commented Aug 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6807/
Test FAILed (JDK 8 and Scala 2.12).

@asfgit
Copy link

asfgit commented Aug 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6821/
Test FAILed (JDK 7 and Scala 2.11).

@kkonstantine kkonstantine force-pushed the KAFKA-5567-With-transformations-that-mutate-the-topic-partition-committing-offsets-should-to-refer-to-the-original-topic-partition branch from bf9dc95 to 2b506cd Compare August 16, 2017 20:17
Copy link
Contributor

@ewencp ewencp left a comment

Choose a reason for hiding this comment

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

LGTM, will just wait for tests to finish

@kkonstantine
Copy link
Contributor Author

Great, thanks! The one on JDK8 failed with the known issue (Proxy Error ... Reason: Error reading from remote server). Waiting for the JDK7 one.

@asfgit
Copy link

asfgit commented Aug 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/6822/
Test PASSed (JDK 7 and Scala 2.11).

@asfgit
Copy link

asfgit commented Aug 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/6808/
Test PASSed (JDK 8 and Scala 2.12).

asfgit pushed a commit that referenced this pull request Aug 16, 2017
…ic partitions

Author: Konstantine Karantasis <konstantine@confluent.io>

Reviewers: Randall Hauch <rhauch@gmail.com>, Ewen Cheslack-Postava <ewen@confluent.io>

Closes #3499 from kkonstantine/KAFKA-5567-With-transformations-that-mutate-the-topic-partition-committing-offsets-should-to-refer-to-the-original-topic-partition

(cherry picked from commit 72eacbe)
Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
@asfgit asfgit closed this in 72eacbe Aug 16, 2017
@rogusdev
Copy link

What happened to this PR, why was it closed? This warn log shows up a lot so if this is a solution, would love to have it merged!

@rogusdev
Copy link

rogusdev commented Jan 2, 2019

Ah, I got a bit confused by the merge policy here that it did in fact get merged with the commit 72eacbe but this PR shows as closed not merged. Got it now, thanks.

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.

5 participants