HBase
  1. HBase
  2. HBASE-5773

HtablePool constructor not reading config files in certain cases

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.90.6, 0.92.1, 0.94.1
    • Fix Version/s: 0.94.0, 0.95.0
    • Component/s: Client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Creating a HtablePool can issue two behaviour depanding on the constructor called.

      Case 1: loads the configs from hbase-site
      public HTablePool()

      { this(HBaseConfiguration.create(), Integer.MAX_VALUE); }

      Calling this with null values for Configuration:
      public HTablePool(final Configuration config, final int maxSize)

      { this(config, maxSize, null, null); }

      will issue:

      public HTablePool(final Configuration config, final int maxSize,
      final HTableInterfaceFactory tableFactory, PoolType poolType) {
      // Make a new configuration instance so I can safely cleanup when
      // done with the pool.
      this.config = config == null ? new Configuration() : config;

      which does not read the hbase-site config files as HBaseConfiguration.create() does.

      I've tracked this problem to all versions of hbase.

      1. different-config-behaviour.90.patch
        0.7 kB
        stack
      2. different-config-behaviour.90.patch
        0.7 kB
        stack
      3. different-config-behaviour.patch
        0.7 kB
        Ioan Eugen Stan

        Activity

        Ioan Eugen Stan created issue -
        Ioan Eugen Stan made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 0.90.7 [ 12319481 ]
        Fix Version/s 0.92.2 [ 12319888 ]
        Fix Version/s 0.94.1 [ 12320257 ]
        Ioan Eugen Stan made changes -
        Attachment different-config-behaviour.patch [ 12522403 ]
        stack made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 0.94.0 [ 12316419 ]
        Fix Version/s 0.90.7 [ 12319481 ]
        Fix Version/s 0.94.1 [ 12320257 ]
        Resolution Fixed [ 1 ]
        stack made changes -
        Attachment different-config-behaviour.90.patch [ 12522580 ]
        stack made changes -
        Attachment different-config-behaviour.90.patch [ 12522581 ]
        stack made changes -
        Fix Version/s 0.90.7 [ 12319481 ]
        Jonathan Hsieh made changes -
        Assignee Ioan Eugen Stan [ ieugen ]
        Fix Version/s 0.96.0 [ 12320040 ]
        Lars Hofhansl made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        stack made changes -
        Fix Version/s 0.95.0 [ 12324094 ]
        Fix Version/s 0.94.0 [ 12316419 ]
        Fix Version/s 0.90.7 [ 12319481 ]
        Fix Version/s 0.92.2 [ 12319888 ]
        Fix Version/s 0.96.0 [ 12320040 ]
        Lars Hofhansl made changes -
        Fix Version/s 0.94.0 [ 12316419 ]
        Lars Hofhansl made changes -
        Fix Version/s 0.94.1 [ 12320257 ]
        Fix Version/s 0.94.0 [ 12316419 ]
        Lars Hofhansl made changes -
        Fix Version/s 0.94.0 [ 12316419 ]
        Fix Version/s 0.94.1 [ 12320257 ]

          People

          • Assignee:
            Ioan Eugen Stan
            Reporter:
            Ioan Eugen Stan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development