Skip to content

Commit 52cab7e

Browse files
authored
Merge branch 'main' into fix-auto-merge-conflict-15412
2 parents a9770c6 + fc1e8f1 commit 52cab7e

6 files changed

Lines changed: 31 additions & 521 deletions

File tree

sql-plugin/src/main/java/com/nvidia/spark/rapids/fileio/RapidsInputFiles.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,11 @@ public static boolean isS3PerfEnabled() {
3535
return PerfIO.isS3PerfEnabled();
3636
}
3737
/**
38-
* True iff {@code spark.rapids.perfio.gcs.enabled} is set to {@code true} on
39-
* the active SparkConf. Returns false when no {@link SparkEnv} is initialized
40-
* (e.g. before driver bring-up) so callers default to the non-PerfIO path.
38+
* True iff PerfIO initialized GCS support on this executor. Returns false until
39+
* PerfIO is initialized.
4140
*/
4241
public static boolean isGCSPerfEnabled() {
43-
SparkEnv env = SparkEnv.get();
44-
if (env == null) {
45-
return false;
46-
}
47-
return env.conf().getBoolean(PerfIOConf.GCSPERF_ENABLED().key(), false);
42+
return PerfIO.isGCSPerfEnabled();
4843
}
4944

5045
}

0 commit comments

Comments
 (0)