You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/02/21 12:16:27 UTC

[GitHub] [flink] shizhengchao opened a new pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

shizhengchao opened a new pull request #18863:
URL: https://github.com/apache/flink/pull/18863


   <!--
   *Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*
   
   *Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.*
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [JIRA issue](https://issues.apache.org/jira/projects/FLINK/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no JIRA issue.
     
     - Name the pull request in the form "[FLINK-XXXX] [component] Title of the pull request", where *FLINK-XXXX* should be replaced by the actual issue number. Skip *component* if you are unsure about which is the best component.
     Typo fixes that have no associated JIRA issue should be named following this pattern: `[hotfix] [docs] Fix typo in event time introduction` or `[hotfix] [javadocs] Expand JavaDoc for PuncuatedWatermarkGenerator`.
   
     - Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
     
     - Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes. You can set up Azure Pipelines CI to do that following [this guide](https://cwiki.apache.org/confluence/display/FLINK/Azure+Pipelines#AzurePipelines-Tutorial:SettingupAzurePipelinesforaforkoftheFlinkrepository).
   
     - Each pull request should address only one issue, not mix up code from multiple issues.
     
     - Each commit in the pull request has a meaningful commit message (including the JIRA id)
   
     - Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
   
   
   **(The sections below can be removed for hotfixes of typos)**
   -->
   
   ## What is the purpose of the change
   The behavior of `DefaultPartitioner` has been changed from round robin to sticky partitioner from Kafka 2.4.0 (See [KIP-480](https://cwiki.apache.org/confluence/display/KAFKA/KIP-480%3A+Sticky+Partitioner)). So it does not take effect since Flink 1.11 that we bumped Kafka client version to 2.4.1.
   
   ## Brief change log
   - Added two classes `org.apache.flink.streaming.connectors.kafka.partitioner.FlinkRoundRobinPartitioner` and `org.apache.flink.streaming.connectors.kafka.FlinkRoundRobinPartitionerTest` to the flink kafka connector
   - Modified the `KafkaConnectorOptionsUtil::getFlinkKafkaPartitioner` method, set `default` and `round-robin` separately
   
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
   *(example:)*
     - Added a test class `org.apache.flink.streaming.connectors.kafka.FlinkRoundRobinPartitionerTest`
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (no)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046820115


   Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
   to review your pull request. We will use this comment to track the progress of the review.
   
   
   ## Automated Checks
   Last check on commit e915b92e8c660ff49e44a6c92b10148f6d4cb90e (Mon Feb 21 12:20:58 UTC 2022)
   
   **Warnings:**
    * No documentation files were touched! Remember to keep the Flink docs up to date!
   
   
   <sub>Mention the bot in a comment to re-run the automated checks.</sub>
   ## Review Progress
   
   * ❓ 1. The [description] looks good.
   * ❓ 2. There is [consensus] that the contribution should go into to Flink.
   * ❓ 3. Needs [attention] from.
   * ❓ 4. The change fits into the overall [architecture].
   * ❓ 5. Overall code [quality] is good.
   
   Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
    The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
    - `@flinkbot approve all` to approve all aspects
    - `@flinkbot approve-until architecture` to approve everything until `architecture`
    - `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
    - `@flinkbot disapprove architecture` to remove an approval you gave earlier
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 480fcced44131cc57105d254b1d7cbad7004fdce Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603) 
   * 8dda8fdb80894c83abcaa8774f30e6f8388f2c68 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1064837010


   Thanks for the update @shizhengchao. The CI didn't pass because of test case failure. Could you take a look and fix it? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1061471664


   use CRLF or LF?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1072089742


   @shizhengchao Thanks for the update. Could you rebase the latest master and force push again? The CI will be triggered automatically after pushing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     }, {
       "hash" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * ce78991ec2fc5783ad0b00ce91222acf01392487 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986) 
   * 91a7606c4cc74c8e848073dbf16e400a00910350 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     }, {
       "hash" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439",
       "triggerID" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2049f849a130e738759001c5a6b9d85834da08d0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2049f849a130e738759001c5a6b9d85834da08d0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 91a7606c4cc74c8e848073dbf16e400a00910350 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439) 
   * 2049f849a130e738759001c5a6b9d85834da08d0 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "d122347844f17dcc872f5890acb625b631843980",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "d122347844f17dcc872f5890acb625b631843980",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e915b92e8c660ff49e44a6c92b10148f6d4cb90e Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947) 
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   * d122347844f17dcc872f5890acb625b631843980 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   * e86f5a931a835728e5d839498022329f4a8bbd39 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1081797123


   @PatrickRen I combined multiple commits into one,and created another 2 PRs to cherry-pick the commit onto release-1.13 and release-1.14
   master: 2049f849a130e738759001c5a6b9d85834da08d0
   1.13: 3e77dc114261cc91cc80159c95fa27e74b25b8ed
   1.14: d4f374237b21aab93f5d185cb2d1e15a29c9c537


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   * e86f5a931a835728e5d839498022329f4a8bbd39 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1061347878


   @PatrickRen Fixed the asserting variable


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on a change in pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on a change in pull request #18863:
URL: https://github.com/apache/flink/pull/18863#discussion_r812704948



##########
File path: flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/partitioner/FlinkRoundRobinPartitioner.java
##########
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.connectors.kafka.partitioner;
+
+import org.apache.flink.util.Preconditions;
+
+import org.apache.kafka.common.utils.Utils;
+
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.atomic.AtomicInteger;
+
+/**
+ * A "Round-Robin" partitioner that can be used when user wants to distribute the writes to all partitions equally.
+ *
+ * <p>This is the behaviour regardless of record key hash.
+ */
+public class FlinkRoundRobinPartitioner<T> extends FlinkKafkaPartitioner<T> {
+
+    private ConcurrentMap<String, AtomicInteger> topicCounterMap;
+
+    @Override
+    public void open(int parallelInstanceId, int parallelInstances) {
+        Preconditions.checkArgument(
+            parallelInstanceId >= 0, "Id of this subtask cannot be negative.");
+        Preconditions.checkArgument(
+            parallelInstances > 0, "Number of subtasks must be larger than 0.");
+
+        this.topicCounterMap = new ConcurrentHashMap();
+    }
+
+    @Override
+    public int partition(T record, byte[] key, byte[] value, String targetTopic, int[] partitions) {

Review comment:
       I have thought about this. I plan to specify `org.apache.kafka.clients.producer.RoundRobinPartitioner` with `partition.class` of kafka configuration, but considering that kafka-client low version does not have `RoundRobinPartitioner` class




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e915b92e8c660ff49e44a6c92b10148f6d4cb90e Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947) 
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1049840801


   @PatrickRen  Thank you for reviewing it again. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   * e86f5a931a835728e5d839498022329f4a8bbd39 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     }, {
       "hash" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439",
       "triggerID" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 91a7606c4cc74c8e848073dbf16e400a00910350 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e86f5a931a835728e5d839498022329f4a8bbd39 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168) 
   * 480fcced44131cc57105d254b1d7cbad7004fdce UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on a change in pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on a change in pull request #18863:
URL: https://github.com/apache/flink/pull/18863#discussion_r812706763



##########
File path: flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkRoundRobinPartitionerTest.java
##########
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.connectors.kafka;
+
+import org.apache.flink.streaming.connectors.kafka.partitioner.FlinkRoundRobinPartitioner;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+/** Tests for the {@link FlinkRoundRobinPartitioner}. */
+public class FlinkRoundRobinPartitionerTest {
+
+    @Test
+    public void testRoundRobin() {
+        FlinkRoundRobinPartitioner<String> part = new FlinkRoundRobinPartitioner<>();
+
+        int[] partitions = new int[] {0, 1, 2, 3, 4};
+        String topic = "topic1";
+        part.open(0, 2);
+        Assert.assertEquals(0, part.partition("abc1", null, null, topic, partitions));

Review comment:
       Thanks for the reminder, I'll fix it soon




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1081797123


   @PatrickRen I combined multiple commits into one,and created another 2 PRs to cherry-pick the commit onto release-1.13 and release-1.14
   master: 2049f849a130e738759001c5a6b9d85834da08d0
   1.13: 3e77dc114261cc91cc80159c95fa27e74b25b8ed
   1.14: 6ae8ee89898f3fbaca435a599595d065e71cbab8


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8cda572f57f1ee4a969e84d51b05d1e1ba74887f Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     }, {
       "hash" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439",
       "triggerID" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * ce78991ec2fc5783ad0b00ce91222acf01392487 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986) 
   * 91a7606c4cc74c8e848073dbf16e400a00910350 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1066291471


   @PatrickRen The CI didn't pass because of the timestamp format of test case. I have fixed it , could you run it again? Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e915b92e8c660ff49e44a6c92b10148f6d4cb90e Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947) 
   * 2f7090f81c19932badf275f94f1ba1e066206e39 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e86f5a931a835728e5d839498022329f4a8bbd39 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on a change in pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on a change in pull request #18863:
URL: https://github.com/apache/flink/pull/18863#discussion_r820473799



##########
File path: flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkRoundRobinPartitionerTest.java
##########
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.connectors.kafka;
+
+import org.apache.flink.streaming.connectors.kafka.partitioner.FlinkRoundRobinPartitioner;
+
+import org.junit.jupiter.api.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/** Tests for the {@link FlinkRoundRobinPartitioner}. */
+public class FlinkRoundRobinPartitionerTest {
+
+    @Test
+    public void testRoundRobin() {
+        FlinkRoundRobinPartitioner<String> part = new FlinkRoundRobinPartitioner<>();
+
+        int[] partitions = new int[] {0, 1, 2, 3, 4};
+        String topic = "topic1";
+        part.open(0, 2);
+
+        assertThat(0).isEqualTo(part.partition("abc1", null, null, topic, partitions));

Review comment:
       nit: The asserting variable should be as the parameter of `assertThat` in order to get a correct error message if assertion fails:
   
   ```java
   assertThat(part.partition("abc1", null, null, topic, partitions)).isEqualTo(0);
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1065158141


   > 
   
   Thanks for review. I'll fix it soon!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8cda572f57f1ee4a969e84d51b05d1e1ba74887f Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670) 
   * ce78991ec2fc5783ad0b00ce91222acf01392487 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 480fcced44131cc57105d254b1d7cbad7004fdce Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao removed a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao removed a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1061471664






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     }, {
       "hash" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439",
       "triggerID" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2049f849a130e738759001c5a6b9d85834da08d0",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33903",
       "triggerID" : "2049f849a130e738759001c5a6b9d85834da08d0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 91a7606c4cc74c8e848073dbf16e400a00910350 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439) 
   * 2049f849a130e738759001c5a6b9d85834da08d0 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33903) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e915b92e8c660ff49e44a6c92b10148f6d4cb90e UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e915b92e8c660ff49e44a6c92b10148f6d4cb90e Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   * e86f5a931a835728e5d839498022329f4a8bbd39 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1077001529


   Thanks for the update. LGTM.
   
   @fapaul Could you help to take a look and merge this PR? Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e86f5a931a835728e5d839498022329f4a8bbd39 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168) 
   * 480fcced44131cc57105d254b1d7cbad7004fdce Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1057658378


   Thanks for the update @shizhengchao ! I think we can preserve your initial implementation of FlinkKafkaPartitioner to resolve the issue caused by KAFKA-9965. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8cda572f57f1ee4a969e84d51b05d1e1ba74887f Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670) 
   * ce78991ec2fc5783ad0b00ce91222acf01392487 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1078588219


   @fapaul I think this bug has existed since we bumped Kafka client to 2.4.1, which was in Flink 1.11. So at least we need to backport to 1.13 and 1.14. 
   
   @shizhengchao Could you create another 2 PRs to cherry-pick the commit onto release-1.13 and release-1.14? Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1081797123


   @PatrickRen I combined multiple commits into one,and created another 2 PRs to cherry-pick the commit onto release-1.13 and release-1.14


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on a change in pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on a change in pull request #18863:
URL: https://github.com/apache/flink/pull/18863#discussion_r812617505



##########
File path: flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/partitioner/FlinkRoundRobinPartitioner.java
##########
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.connectors.kafka.partitioner;
+
+import org.apache.flink.util.Preconditions;
+
+import org.apache.kafka.common.utils.Utils;
+
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.atomic.AtomicInteger;
+
+/**
+ * A "Round-Robin" partitioner that can be used when user wants to distribute the writes to all partitions equally.
+ *
+ * <p>This is the behaviour regardless of record key hash.
+ */
+public class FlinkRoundRobinPartitioner<T> extends FlinkKafkaPartitioner<T> {
+
+    private ConcurrentMap<String, AtomicInteger> topicCounterMap;
+
+    @Override
+    public void open(int parallelInstanceId, int parallelInstances) {
+        Preconditions.checkArgument(
+            parallelInstanceId >= 0, "Id of this subtask cannot be negative.");
+        Preconditions.checkArgument(
+            parallelInstances > 0, "Number of subtasks must be larger than 0.");
+
+        this.topicCounterMap = new ConcurrentHashMap();
+    }
+
+    @Override
+    public int partition(T record, byte[] key, byte[] value, String targetTopic, int[] partitions) {

Review comment:
       What about just reuse Kafka's `org.apache.kafka.clients.producer.RoundRobinPartitioner` instead of implement one?

##########
File path: flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkRoundRobinPartitionerTest.java
##########
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.connectors.kafka;
+
+import org.apache.flink.streaming.connectors.kafka.partitioner.FlinkRoundRobinPartitioner;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+/** Tests for the {@link FlinkRoundRobinPartitioner}. */
+public class FlinkRoundRobinPartitionerTest {
+
+    @Test
+    public void testRoundRobin() {
+        FlinkRoundRobinPartitioner<String> part = new FlinkRoundRobinPartitioner<>();
+
+        int[] partitions = new int[] {0, 1, 2, 3, 4};
+        String topic = "topic1";
+        part.open(0, 2);
+        Assert.assertEquals(0, part.partition("abc1", null, null, topic, partitions));

Review comment:
       Currently the community suggests to use AssertJ for assertions. Here's an example: https://github.com/apache/flink/blob/9a8f068fd207e178f1d29876130c81ab8a96baa2/flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/connector/kafka/source/reader/KafkaSourceReaderTest.java#L171

##########
File path: flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkRoundRobinPartitionerTest.java
##########
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.connectors.kafka;
+
+import org.apache.flink.streaming.connectors.kafka.partitioner.FlinkRoundRobinPartitioner;
+
+import org.junit.Assert;
+import org.junit.Test;

Review comment:
       Could we use JUnit 5 (`org.junit.jupiter.api.Test`) instead? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1060309279


   @PatrickRen Thank you for reviewing it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1061349218


   Looks like compilation failed because of code formatting. Please run `mvn spotless:apply` to format the code automatically before committing. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1061474367


   > 
   
   done


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 480fcced44131cc57105d254b1d7cbad7004fdce Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603) 
   * 8dda8fdb80894c83abcaa8774f30e6f8388f2c68 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1061466075


   > 
   
   I tried it, but after running, all files are changed files


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     }, {
       "hash" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33439",
       "triggerID" : "91a7606c4cc74c8e848073dbf16e400a00910350",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2049f849a130e738759001c5a6b9d85834da08d0",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33903",
       "triggerID" : "2049f849a130e738759001c5a6b9d85834da08d0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2049f849a130e738759001c5a6b9d85834da08d0 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=33903) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e915b92e8c660ff49e44a6c92b10148f6d4cb90e Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on a change in pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on a change in pull request #18863:
URL: https://github.com/apache/flink/pull/18863#discussion_r812707021



##########
File path: flink-connectors/flink-connector-kafka/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkRoundRobinPartitionerTest.java
##########
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.connectors.kafka;
+
+import org.apache.flink.streaming.connectors.kafka.partitioner.FlinkRoundRobinPartitioner;
+
+import org.junit.Assert;
+import org.junit.Test;

Review comment:
       okay




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 2f7090f81c19932badf275f94f1ba1e066206e39 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161) 
   * e86f5a931a835728e5d839498022329f4a8bbd39 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1057622360


   @PatrickRen I got through testing that the RoundRobinPartitioner built into kafka does not work either, that is it can't distribute the writes to all partitions equally, due to abortForNewBatch. So this has to be redesigned in the high version of kafka client


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] PatrickRen commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
PatrickRen commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1072089742


   @shizhengchao Thanks for the update. Could you rebase the latest master and force push again? The CI will be triggered automatically after pushing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     }, {
       "hash" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986",
       "triggerID" : "ce78991ec2fc5783ad0b00ce91222acf01392487",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * ce78991ec2fc5783ad0b00ce91222acf01392487 Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32986) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 480fcced44131cc57105d254b1d7cbad7004fdce Azure: [FAILURE](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603) 
   * 8dda8fdb80894c83abcaa8774f30e6f8388f2c68 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659) 
   * 8cda572f57f1ee4a969e84d51b05d1e1ba74887f UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] flinkbot edited a comment on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1046819200


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=31947",
       "triggerID" : "e915b92e8c660ff49e44a6c92b10148f6d4cb90e",
       "triggerType" : "PUSH"
     }, {
       "hash" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32161",
       "triggerID" : "2f7090f81c19932badf275f94f1ba1e066206e39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32168",
       "triggerID" : "e86f5a931a835728e5d839498022329f4a8bbd39",
       "triggerType" : "PUSH"
     }, {
       "hash" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32603",
       "triggerID" : "480fcced44131cc57105d254b1d7cbad7004fdce",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659",
       "triggerID" : "8dda8fdb80894c83abcaa8774f30e6f8388f2c68",
       "triggerType" : "PUSH"
     }, {
       "hash" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670",
       "triggerID" : "8cda572f57f1ee4a969e84d51b05d1e1ba74887f",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8dda8fdb80894c83abcaa8774f30e6f8388f2c68 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32659) 
   * 8cda572f57f1ee4a969e84d51b05d1e1ba74887f Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=32670) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1073426425


   
   
   
   > @shizhengchao Thanks for the update. Could you rebase the latest master and force push again? The CI will be triggered automatically after pushing.
   
   done


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] fapaul commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
fapaul commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1077345038


   @shizhengchao @PatrickRen the code looks fine from my side but I am still a bit unsure if we should backport this change. 
   Can you also open the backport PRs to the affected branches so that I can merge all together?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [flink] shizhengchao commented on pull request #18863: [FLINK-26033][flink-connector-kafka]Fix the problem that robin does not take effect due to upgrading kafka client to 2.4.1 since Flink1.11

Posted by GitBox <gi...@apache.org>.
shizhengchao commented on pull request #18863:
URL: https://github.com/apache/flink/pull/18863#issuecomment-1081797123


   @PatrickRen I combined multiple commits into one,and created another 2 PRs to cherry-pick the commit onto release-1.13 and release-1.14
   master: 2049f849a130e738759001c5a6b9d85834da08d0
   1.13: 8b18e74cec71c9c480bb747fb2f77a55f675ca2a
   1.14: d4f374237b21aab93f5d185cb2d1e15a29c9c537


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org