wForget commented on code in PR #1260:
URL: https://github.com/apache/auron/pull/1260#discussion_r2317683532
##########
spark-extension/src/main/java/org/apache/spark/sql/auron/JniBridge.java:
##########
@@ -89,10 +90,14 @@ public static boolean isDriverSide() {
public static FSDataInputWrapper openFileAsDataInputWrapper(FileSystem fs,
String path) throws Exception {
// the path is a URI string, so we need to convert it to a URI object,
ref:
// org.apache.spark.paths.SparkPath.toPath
+ TaskContextHelper$.MODULE$.setThreadNameFromTaskContext();
Review Comment:
> i suggest adding a static method `JniBridge.initNativeThread` to do all
this initialization for reducing number of JNI calls.
Sounds good
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]