lamber-ken opened a new pull request #1377: [HUDI-663] Fix HoodieDeltaStreamer 
offset not handled correctly
URL: https://github.com/apache/incubator-hudi/pull/1377
 
 
   ## What is the purpose of the pull request
   
   More detail, please go ahead with 
https://github.com/apache/incubator-hudi/issues/1375
   
   1. the first commit content like following:
   ```
   {
     "partitionToWriteStats" : { },
     "compacted" : false,
     "extraMetadata" : {
       "ROLLING_STAT" : "{\n  \"partitionToRollingStats\" : { },\n  
\"actionType\" : \"commit\"\n}",
       "schema" : 
"{\"type\":\"record\",\"name\":\"stock_ticks\",\"fields\":[{\"name\":\"volume\",\"type\":\"long\"},{\"name\":\"ts\",\"type\":\"string\"},{\"name\":\"symbol\",\"type\":\"string\"},{\"name\":\"year\",\"type\":\"int\"},{\"name\":\"month\",\"type\":\"string\"},{\"name\":\"high\",\"type\":\"double\"},{\"name\":\"low\",\"type\":\"double\"},{\"name\":\"key\",\"type\":\"string\"},{\"name\":\"date\",\"type\":\"string\"},{\"name\":\"close\",\"type\":\"double\"},{\"name\":\"open\",\"type\":\"double\"},{\"name\":\"day\",\"type\":\"string\"}]}",
       "deltastreamer.checkpoint.key" : ""
     },
     "operationType" : "UPSERT",
     "fileIdAndRelativePaths" : { },
     "totalRecordsDeleted" : 0,
     "totalLogRecordsCompacted" : 0,
     "totalScanTime" : 0,
     "totalCreateTime" : 0,
     "totalUpsertTime" : 0,
     "totalCompactedRecordsUpdated" : 0,
     "totalLogFilesCompacted" : 0,
     "totalLogFilesSize" : 0
   }
   ```
   
   2. the second commit will use the last checkpoint `{}`, which means the 
fromoffset is `0`.
   but the previous messages may be removed because of kafka retention 
mechanism.
   so the low_watermark is greater than 0.
   
   ## Brief change log
   
     - double check the lastCheckpointStr
   
   ## Verify this pull request
   
   Follow steps: https://github.com/apache/incubator-hudi/issues/1375
   
   ## Committer checklist
   
    - [X] Has a corresponding JIRA in PR title & commit
    
    - [X] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to