dongkelun commented on code in PR #5633:
URL: https://github.com/apache/hudi/pull/5633#discussion_r884259014
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java:
##########
@@ -605,15 +605,13 @@ private Pair<Option<String>, JavaRDD<WriteStatus>>
writeToSink(JavaRDD<HoodieRec
long totalErrorRecords =
writeStatusRDD.mapToDouble(WriteStatus::getTotalErrorRecords).sum().longValue();
long totalRecords =
writeStatusRDD.mapToDouble(WriteStatus::getTotalRecords).sum().longValue();
boolean hasErrors = totalErrorRecords > 0;
- long hiveSyncTimeMs = 0;
- long metaSyncTimeMs = 0;
if (!hasErrors || cfg.commitOnErrors) {
HashMap<String, String> checkpointCommitMetadata = new HashMap<>();
if (checkpointStr != null) {
checkpointCommitMetadata.put(CHECKPOINT_KEY, checkpointStr);
- }
- if (cfg.checkpoint != null) {
- checkpointCommitMetadata.put(CHECKPOINT_RESET_KEY, cfg.checkpoint);
+ if (cfg.checkpoint != null) {
+ checkpointCommitMetadata.put(CHECKPOINT_RESET_KEY, cfg.checkpoint);
+ }
Review Comment:
Just like the description I just updated above。When the value of
`deltastreamer.checkpoint.reset_key` is not null,but
`deltastreamer.checkpoint.key` is null,According to the logic of the method
getCheckpointToResume,Will throw this exception.
--
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]