We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ec2d5 commit cd9ed48Copy full SHA for cd9ed48
sql/core/src/main/scala/org/apache/spark/sql/internal/SharedState.scala
@@ -199,7 +199,7 @@ object SharedState extends Logging {
199
200
private def setFsUrlStreamHandlerFactory(conf: SparkConf): Unit = {
201
if (conf.get(DEFAULT_URL_STREAM_HANDLER_FACTORY_ENABLED) &&
202
- fsUrlStreamHandlerFactoryInitialized.compareAndSet(false, true)) {
+ !fsUrlStreamHandlerFactoryInitialized.getAndSet(true)) {
203
try {
204
URL.setURLStreamHandlerFactory(new FsUrlStreamHandlerFactory())
205
} catch {
0 commit comments