1
0

[HUDI-2046] Loaded too many classes like sun/reflect/GeneratedSerializationConstructorAccessor in JVM metaspace (#3121)

Loaded too many classes when use kryo of spark to hudi

Co-authored-by: weiwei.duan <weiwei.duan@linkflowtech.com>
This commit is contained in:
dwshmilyss
2021-07-06 14:36:55 +08:00
committed by GitHub
parent 05d6e18190
commit 2b21ae1775
2 changed files with 9 additions and 0 deletions

View File

@@ -73,6 +73,12 @@ public class WriteStatus implements Serializable {
this.random = new Random(RANDOM_SEED);
}
public WriteStatus() {
this.failureFraction = 0.0d;
this.trackSuccessRecords = false;
this.random = null;
}
/**
* Mark write as success, optionally using given parameters for the purpose of calculating some aggregate metrics.
* This method is not meant to cache passed arguments, since WriteStatus objects are collected in Spark Driver.

View File

@@ -88,6 +88,9 @@ public class HoodieRecord<T extends HoodieRecordPayload> implements Serializable
this.sealed = record.sealed;
}
public HoodieRecord() {
}
public HoodieKey getKey() {
return key;
}