Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-9886

Validate usages of Runtime.getRuntime.addShutdownHook

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.0, 2.0.0
    • Spark Core
    • None

    Description

      While refactoring calls to Utils.addShutdownHook to spark ShutdownHookManager in PR #8109, I've seen instances of calls to Runtime.getRuntime.addShutdownHook:

      org\apache\spark\deploy\ExternalShuffleService.scala:126
      org\apache\spark\deploy\mesos\MesosClusterDispatcher.scala:113
      org\apache\spark\storage\ExternalBlockStore.scala:181

      Comment from @vanzin:
      "From a quick look, it seems that at least the one in ExternalBlockStore should be changed; the other two seem to be separate processes (i.e. they are not part of a Spark application) so that's questionable. But I'd say leave it for a different change (maybe file a separate bug so it doesn't fall through the cracks)."

      Attachments

        Activity

          People

            naveenminchu Naveen Kumar Minchu
            FlamingMike Michel Lemay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: