Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18169 Coprocessor fix and cleanup before 2.0.0 release
  3. HBASE-19295

The Configuration returned by CPEnv should be read-only.

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      CoprocessorEnvironment#getConfiguration returns a READ-ONLY Configuration. Attempts at altering the returned Configuration -- whether setting or adding resources -- will result in an IllegalStateException warning of the Read-only condition of the returned Configuration.
      Show
      CoprocessorEnvironment#getConfiguration returns a READ-ONLY Configuration. Attempts at altering the returned Configuration -- whether setting or adding resources -- will result in an IllegalStateException warning of the Read-only condition of the returned Configuration.

    Description

      The Configuration a CP gets when it does a getConfiguration on the environment is that of the RegionServer. The CP should not be able to modify this config. We should throw exception if they try to write us.

      Ditto w/ the Connection they can get from the env. They should not be able to close it at min.

      Attachments

        1. HBASE-19295.master.001.patch
          16 kB
          Michael Stack
        2. HBASE-19295.master.002.patch
          17 kB
          Michael Stack
        3. HBASE-19295.master.003.patch
          17 kB
          Michael Stack
        4. HBASE-19295.master.004.patch
          17 kB
          Michael Stack
        5. HBASE-19295.master.005.patch
          17 kB
          Michael Stack

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: