You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "garyli1019 (via GitHub)" <gi...@apache.org> on 2023/01/28 08:06:04 UTC

[GitHub] [hudi] garyli1019 commented on a diff in pull request #7528: [HUDI-5443] Fixing exception trying to read MOR table after `NestedSchemaPruning` rule has been applied

garyli1019 commented on code in PR #7528:
URL: https://github.com/apache/hudi/pull/7528#discussion_r1089677701


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieMergeOnReadRDD.scala:
##########
@@ -138,10 +137,16 @@ class HoodieMergeOnReadRDD(@transient sc: SparkContext,
   override protected def getPartitions: Array[Partition] =
     fileSplits.zipWithIndex.map(file => HoodieMergeOnReadPartition(file._2, file._1)).toArray
 
-  private def getConfig: Configuration = {
-    val conf = confBroadcast.value.value
-    CONFIG_INSTANTIATION_LOCK.synchronized {
-      new Configuration(conf)
-    }
+  private def getHadoopConf: Configuration = {
+    val conf = hadoopConfBroadcast.value.value
+    new Configuration(conf)

Review Comment:
   @yihua Hi Ethan, the hadoop configuration issue that I can recall was related to serialization during the broadcast. The hadoop configuration was not serializable. The initial implementation of `HoodieMergeOnReadRDD` somehow new a Configuration object or use a serializableConfiguration to solve this issue.



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org