fix the issue of .META. getting ignored

Summary:
Add a test for getTableRegions to check if we get regions for a normal table
and also for the META table

Test Plan:
Tested on the dev cluster

on issuing
major_compact '.META.'
from the hbase shell

verified the output in the master logs

2011-10-04 19:11:26,657 INFO org.apache.hadoop.hbase.master.BaseScanner: All 1
.META. region(s) scanned
2011-10-04 19:12:01,879 DEBUG org.apache.hadoop.hbase.master.HMaster: Received
a modifyTable operation TABLE_MAJOR_COMPACT for .META.
2011-10-04 19:12:01,879 DEBUG org.apache.hadoop.hbase.master.HMaster: Came Here
- 22011-10-04 19:12:01,880 DEBUG org.apache.hadoop.hbase.master.HMaster:
Including {server: 10.30.223.192:60020, regionname: .META.,,1.1028785192,
startKey: <>}
2011-10-04 19:12:01,880 DEBUG org.apache.hadoop.hbase.master.HMaster: Came Here
- 2.12011-10-04 19:12:01,880 DEBUG org.apache.hadoop.hbase.master.HMaster: Came
Here - 2.1.2
2011-10-04 19:12:01,880 DEBUG org.apache.hadoop.hbase.master.RegionManager:
Adding operation TABLE_MAJOR_COMPACT from tasklist
2011-10-04 19:12:02,510 DEBUG org.apache.hadoop.hbase.master.RegionManager:
Sending MSG_REGION_MAJOR_COMPACT REGION => {NAME => '.META.,,1', STARTKEY => '',
ENDKEY => '', ENCODED => 1028785192, TABLE => {{NAME => '.META.', IS_META =>
'true', FAMILIES => [{NAME => 'info', BLOOMFILTER => 'NONE', REPLICATION_SCOPE
=> '0', VERSIONS => '10', COMPRESSION => 'NONE', TTL => '2147483647', BLOCKSIZE
=> '8192', IN_MEMORY => 'true', BLOCKCACHE => 'true'}]}} to 10.30.223.192:60020
2011-10-04 19:12:15,151 INFO org.apache.hadoop.hbase.master.ServerManager: 3
region servers, 0 dead, average load 0.6666666666666666

Reviewers: kannan, kranganathan

Reviewed By: kannan

CC: hbase-eng@lists, kannan, aaiyer

Differential Revision: 338463

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89@1182038 13f79535-47bb-0310-9956-ffa450edef68
2 files changed