1
0

[HUDI-416] Improve hint information for cli (#1110)

This commit is contained in:
hongdd
2019-12-25 20:19:12 +08:00
committed by leesf
parent 9c4217a3e1
commit 8affdf8bcb
14 changed files with 224 additions and 317 deletions

View File

@@ -77,14 +77,13 @@ public class HoodieActiveTimeline extends HoodieDefaultTimeline {
* Ensures each instant time is atleast 1 second apart since we create instant times at second granularity
*/
public static String createNewInstantTime() {
lastInstantTime.updateAndGet((oldVal) -> {
return lastInstantTime.updateAndGet((oldVal) -> {
String newCommitTime = null;
do {
newCommitTime = HoodieActiveTimeline.COMMIT_FORMATTER.format(new Date());
} while (HoodieTimeline.compareTimestamps(newCommitTime, oldVal, LESSER_OR_EQUAL));
return newCommitTime;
});
return lastInstantTime.get();
}
protected HoodieActiveTimeline(HoodieTableMetaClient metaClient, Set<String> includedExtensions) {