You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Vinoth Govindarajan (Jira)" <ji...@apache.org> on 2021/03/15 22:34:00 UTC

[jira] [Created] (HUDI-1695) Deltastream HoodieIncrSource exception error messaging is incorrect

Vinoth Govindarajan created HUDI-1695:
-----------------------------------------

             Summary: Deltastream HoodieIncrSource exception error messaging is incorrect
                 Key: HUDI-1695
                 URL: https://issues.apache.org/jira/browse/HUDI-1695
             Project: Apache Hudi
          Issue Type: Bug
          Components: DeltaStreamer
            Reporter: Vinoth Govindarajan
            Assignee: Vinoth Govindarajan
             Fix For: 0.8.0


When you set your source_class as HoodieIncrSource and invoke deltastreamer without any checkpoint, it throws the following Exception:

 
{code:java}
User class threw exception: java.lang.IllegalArgumentException: Missing begin instant for incremental pull. For reading from latest committed instant set hoodie.deltastreamer.source.hoodie.read_latest_on_midding_ckpt to true{code}
 

The error messaging is wrong and misleading, the correct parameter is:
{code:java}
hoodie.deltastreamer.source.hoodieincr.read_latest_on_missing_ckpt
{code}
Check out the correct parameter in this [file|https://github.com/apache/hudi/blob/release-0.7.0/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/HoodieIncrSource.java#L78]

 

The correct messaging should be:
{code:java}
User class threw exception: java.lang.IllegalArgumentException: Missing begin instant for incremental pull. For reading from latest committed instant set hoodie.deltastreamer.source.hoodieincr.read_latest_on_missing_ckpt to true
{code}



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