You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "FangYongs (via GitHub)" <gi...@apache.org> on 2023/02/20 03:11:06 UTC

[GitHub] [flink] FangYongs opened a new pull request, #21965: [FLINK-31121] Support discarding too large records in kafka sink

FangYongs opened a new pull request, #21965:
URL: https://github.com/apache/flink/pull/21965

   ## What is the purpose of the change
   
   This PR aims to add an option `flink.sink.discard-too-large-records` to support discarding too large records in kafka sink.
   
   ## Brief change log
     - Added `WriterExceptionHandler` to discard too large records in `KafkaWriter`
     - Added option `flink.sink.discard-too-large-records` to turn on/off the above operation
   
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
     - Added test case `testProduceTooLargeRecord` in `KafkaWriterITCase` to throw exception or discard records which are too large
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (yes / no) no
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / no) no
     - The serializers: (yes / no / don't know) no
     - The runtime per-record code paths (performance sensitive): (yes / no / don't know) no
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) no
     - The S3 file system connector: (yes / no / don't know) no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / no) no
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
   


-- 
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] FangYongs commented on pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "FangYongs (via GitHub)" <gi...@apache.org>.
FangYongs commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1483726416

   Thanks @tzulitai I will close this pr and reopen a new one


-- 
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] FangYongs closed pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "FangYongs (via GitHub)" <gi...@apache.org>.
FangYongs closed pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink
URL: https://github.com/apache/flink/pull/21965


-- 
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 #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1436255817

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "5344dec8b734fa071d0d1170097a85076f6e5898",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5344dec8b734fa071d0d1170097a85076f6e5898",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5344dec8b734fa071d0d1170097a85076f6e5898 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] FangYongs commented on pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "FangYongs (via GitHub)" <gi...@apache.org>.
FangYongs commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1436555273

   Hi @JingGe Please help to review this PR when you're free, 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] FangYongs commented on pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "FangYongs (via GitHub)" <gi...@apache.org>.
FangYongs commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1438352213

   > 
   
   Thanks @MartijnVisser  and sure. What's the status of `externalizing the Kafka connector`? I think we can move this PR after the repository is ready


-- 
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] MartijnVisser commented on pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1438209724

   Can we hold off merging this PR since we're in the process of externalizing the Kafka connector, which means that this PR should then be moved to the external Kafka connector repository?


-- 
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] FangYongs commented on pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "FangYongs (via GitHub)" <gi...@apache.org>.
FangYongs commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1438365576

   Thanks @MartijnVisser ,it sounds nice to me and I will keep an eye on the progress of https://github.com/apache/flink-connector-kafka/pull/4 


-- 
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] MartijnVisser commented on pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "MartijnVisser (via GitHub)" <gi...@apache.org>.
MartijnVisser commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1438354406

   > What's the status of `externalizing the Kafka connector`?
   
   I'm waiting for https://github.com/apache/flink-connector-kafka/pull/4 to be reviewed, so it can be merged and then I can create another release. When that's done, then we can already move that PR. The advantage of that is that this feature can be introduced already while there's no Flink 1.18 yet released. 


-- 
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] tzulitai commented on pull request #21965: [FLINK-31121] Support discarding too large records in kafka sink

Posted by "tzulitai (via GitHub)" <gi...@apache.org>.
tzulitai commented on PR #21965:
URL: https://github.com/apache/flink/pull/21965#issuecomment-1483014288

   Update: apache/flink-connector-kafka is ready now. @FangYongs can you close this PR and reopen it against the externalized repo? Once you do that please feel free to ping me for a review of this change.


-- 
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