You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "liujinhui (Jira)" <ji...@apache.org> on 2020/06/08 11:35:00 UTC

[jira] [Commented] (HUDI-1006) deltastreamer set auto.offset.reset=latest can't consume data

    [ https://issues.apache.org/jira/browse/HUDI-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128197#comment-17128197 ] 

liujinhui commented on HUDI-1006:
---------------------------------

[~Litianye]  It's up to you to fix this problem

> deltastreamer set auto.offset.reset=latest can't consume data
> -------------------------------------------------------------
>
>                 Key: HUDI-1006
>                 URL: https://issues.apache.org/jira/browse/HUDI-1006
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: DeltaStreamer
>            Reporter: liujinhui
>            Assignee: Tianye Li
>            Priority: Major
>             Fix For: 0.6.0
>
>
> org.apache.hudi.utilities.sources.JsonKafkaSource#fetchNewData
> if (totalNewMsgs <= 0) {
>  return new InputBatch<>(Option.empty(), lastCheckpointStr.isPresent() ? lastCheckpointStr.get() : "");
> }
> I think it should not be empty here, it should be 
> if (totalNewMsgs <= 0) {
>  return new InputBatch<>(Option.empty(), lastCheckpointStr.isPresent() ? lastCheckpointStr.get() : CheckpointUtils.offsetsToStr(offsetRanges));
> }



--
This message was sent by Atlassian Jira
(v8.3.4#803005)