Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6298

Job#toString throws an exception when not in state RUNNING

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Job#toString calls ensureState(JobState.RUNNING); as the very first thing. That method causes an Exception to be thrown which is not nice.

      One thing this breaks is usage of Job on the Scala (e.g. Spark) REPL as that calls toString after every invocation and that fails every time.

      I'll attach a patch that checks state and if it's RUNNING prints the original message and if not prints something else.

      Attachments

        1. MAPREDUCE-6298.1.patch
          2 kB
          Lars Francke
        2. MAPREDUCE-6298.2.patch
          4 kB
          Lars Francke
        3. MAPREDUCE-6298.3.patch
          4 kB
          Lars Francke
        4. MAPREDUCE-6298.4.patch
          6 kB
          Lars Francke

        Activity

          People

            larsfrancke Lars Francke
            larsfrancke Lars Francke
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: