1
0

[HUDI-2583] Refactor TestWriteCopyOnWrite test cases (#3832)

This commit is contained in:
Danny Chan
2021-10-21 12:36:41 +08:00
committed by GitHub
parent f5d7362ee8
commit aa3c4ecda5
9 changed files with 776 additions and 806 deletions

View File

@@ -31,11 +31,9 @@ import org.apache.hudi.sink.partitioner.BucketAssigner;
import org.apache.hudi.table.HoodieFlinkTable;
import org.apache.hudi.table.HoodieTable;
import org.apache.hudi.table.action.commit.SmallFile;
import org.apache.hudi.util.StreamerUtil;
import org.apache.flink.annotation.VisibleForTesting;
import org.apache.flink.core.fs.Path;
import org.apache.hadoop.conf.Configuration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -98,11 +96,6 @@ public class WriteProfile {
*/
protected AbstractTableFileSystemView fsView;
/**
* Hadoop configuration.
*/
private final Configuration hadoopConf;
/**
* Metadata cache to reduce IO of metadata files.
*/
@@ -114,7 +107,6 @@ public class WriteProfile {
this.smallFilesMap = new HashMap<>();
this.recordsPerBucket = config.getCopyOnWriteInsertSplitSize();
this.table = HoodieFlinkTable.create(config, context);
this.hadoopConf = StreamerUtil.getHadoopConf();
this.metadataCache = new HashMap<>();
// profile the record statistics on construction
recordProfile();