HBASE-1215 part 6; adding logging
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@796615 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
26c49c2d32
commit
cbc87cd00d
|
@ -124,6 +124,7 @@ public class MetaUtils {
|
|||
HRegion meta = metaRegions.get(metaInfo.getRegionName());
|
||||
if (meta == null) {
|
||||
meta = openMetaRegion(metaInfo);
|
||||
LOG.info("META OPEN " + meta.toString());
|
||||
this.metaRegions.put(metaInfo.getRegionName(), meta);
|
||||
}
|
||||
return meta;
|
||||
|
@ -146,6 +147,7 @@ public class MetaUtils {
|
|||
}
|
||||
try {
|
||||
for (HRegion r: metaRegions.values()) {
|
||||
LOG.info("META CLOSE " + r.toString());
|
||||
r.close();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
|
@ -505,4 +507,4 @@ public class MetaUtils {
|
|||
return Bytes.equals(n, HConstants.ROOT_TABLE_NAME) ||
|
||||
Bytes.equals(n, HConstants.META_TABLE_NAME);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue