Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8573

Configuration tries to read from an inputstream resource multiple times.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2, 0.23.3, 2.0.0-alpha, 3.0.0-alpha1
    • 0.23.3, 2.0.2-alpha
    • conf
    • None

    Description

      If someone calls Configuration.addResource(InputStream) and then reloadConfiguration is called for any reason, Configruation will try to reread the contents of the InputStream, after it has already closed it.

      This never showed up in 1.0 because the framework itself does not call addResource with an InputStream, and typically by the time user code starts running that might call this, all of the default and site resources have already been loaded.

      In 0.23 mapreduce is now a client library, and mapred-site.xml and mapred-default.xml are loaded much later in the process.

      Attachments

        1. HADOOP-8573.txt
          8 kB
          Robert Joseph Evans
        2. HADOOP-8573.txt
          8 kB
          Robert Joseph Evans
        3. HADOOP-8573.txt
          7 kB
          Robert Joseph Evans

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            revans2 Robert Joseph Evans
            revans2 Robert Joseph Evans
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment