[
https://issues.apache.org/jira/browse/HUDI-2198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17383808#comment-17383808
]
ASF GitHub Bot commented on HUDI-2198:
--------------------------------------
yuzhaojing commented on a change in pull request #3304:
URL: https://github.com/apache/hudi/pull/3304#discussion_r672844570
##########
File path:
hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteFunction.java
##########
@@ -534,6 +544,12 @@ private void bufferRecord(HoodieRecord<?> value) {
DataBucket bucket = this.buckets.computeIfAbsent(bucketID,
k -> new
DataBucket(this.config.getDouble(FlinkOptions.WRITE_BATCH_SIZE), value));
final DataItem item = DataItem.fromHoodieRecord(value);
+
+ if (!initialized) {
+ bucket.records.add(item);
+ return;
+ }
+
Review comment:
I think this not necessary, It is possible to throw OOM.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> Clean and reset the bootstrap events for coordinator when task failover
> -----------------------------------------------------------------------
>
> Key: HUDI-2198
> URL: https://issues.apache.org/jira/browse/HUDI-2198
> Project: Apache Hudi
> Issue Type: Improvement
> Components: Flink Integration
> Reporter: Danny Chen
> Assignee: Danny Chen
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)