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

Configuration methods that return collections are inconsistent about mutability

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • conf
    • None
    • Reviewed

    Description

      In particular, getTrimmedStringCollection seems to return an immutable collection, whereas getStringCollection returns a mutable one.

      IMO we should always return mutable collections since these methods by definition are doing copies.

      Attachments

        1. hadoop-7300.txt
          3 kB
          Todd Lipcon

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: