This is an automated email from the ASF dual-hosted git repository.
vinoyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 38b9264 [HUDI-1488] Fix Test Case Failure in TestHBaseIndex (#2365)
38b9264 is described below
commit 38b9264dd041db955ffa4c0f10273e1b5fa21cfb
Author: pengzhiwei <[email protected]>
AuthorDate: Wed Dec 23 16:47:38 2020 +0800
[HUDI-1488] Fix Test Case Failure in TestHBaseIndex (#2365)
---
.../src/test/java/org/apache/hudi/index/hbase/TestHBaseIndex.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/index/hbase/TestHBaseIndex.java
b/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/index/hbase/TestHBaseIndex.java
index 2eb672a..faea455 100644
---
a/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/index/hbase/TestHBaseIndex.java
+++
b/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/index/hbase/TestHBaseIndex.java
@@ -20,6 +20,7 @@ package org.apache.hudi.index.hbase;
import org.apache.hudi.client.SparkRDDWriteClient;
import org.apache.hudi.client.WriteStatus;
+import org.apache.hudi.client.common.HoodieSparkEngineContext;
import org.apache.hudi.common.model.EmptyHoodieRecordPayload;
import org.apache.hudi.common.model.HoodieKey;
import org.apache.hudi.common.model.HoodieRecord;
@@ -119,6 +120,8 @@ public class TestHBaseIndex extends FunctionalTestHarness {
public void setUp() throws Exception {
hadoopConf = jsc().hadoopConfiguration();
hadoopConf.addResource(utility.getConfiguration());
+ // reInit the context here to keep the hadoopConf the same with that in
this class
+ context = new HoodieSparkEngineContext(jsc());
metaClient = getHoodieMetaClient(hadoopConf, basePath());
dataGen = new HoodieTestDataGenerator();
}