Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12712#discussion_r61289272
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/Checkpoint.scala ---
    @@ -184,8 +184,7 @@ class CheckpointWriter(
       val executor = Executors.newFixedThreadPool(1)
       val compressionCodec = CompressionCodec.createCodec(conf)
       private var stopped = false
    -  private var _fs: FileSystem = _
    -
    +  @volatile private[this] var fs: FileSystem = null
    --- End diff --
    
    It's actually referenced by inner classes. I think the idea here is that 
we'll avoid calling `.getFileSystem` too much by caching the result, but will 
have the ability to clear the cache in case the cached FileSystem seems to be 
in a bad state.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to