HBASE-609 Master doesn't see regionserver edits because of clock skew
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@652436 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0c08836299
commit
c70e4fa984
|
@ -27,6 +27,7 @@ Hbase Change Log
|
||||||
HBASE-604 Don't allow CLASSPATH from environment pollute the hbase CLASSPATH
|
HBASE-604 Don't allow CLASSPATH from environment pollute the hbase CLASSPATH
|
||||||
HBASE-608 HRegionServer::getThisIP() checks hadoop config var for dns interface name
|
HBASE-608 HRegionServer::getThisIP() checks hadoop config var for dns interface name
|
||||||
(Jim R. Wilson via Stack)
|
(Jim R. Wilson via Stack)
|
||||||
|
HBASE-609 Master doesn't see regionserver edits because of clock skew
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-559 MR example job to count table rows
|
HBASE-559 MR example job to count table rows
|
||||||
|
|
|
@ -198,7 +198,7 @@ public class HBaseAdmin implements HConstants {
|
||||||
try {
|
try {
|
||||||
scannerId =
|
scannerId =
|
||||||
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
|
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
|
||||||
COL_REGIONINFO_ARRAY, tableName, System.currentTimeMillis(), null);
|
COL_REGIONINFO_ARRAY, tableName, HConstants.LATEST_TIMESTAMP, null);
|
||||||
RowResult values = server.next(scannerId);
|
RowResult values = server.next(scannerId);
|
||||||
if (values == null || values.size() == 0) {
|
if (values == null || values.size() == 0) {
|
||||||
break;
|
break;
|
||||||
|
@ -278,7 +278,7 @@ public class HBaseAdmin implements HConstants {
|
||||||
try {
|
try {
|
||||||
scannerId =
|
scannerId =
|
||||||
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
|
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
|
||||||
COL_REGIONINFO_ARRAY, tableName, System.currentTimeMillis(), null);
|
COL_REGIONINFO_ARRAY, tableName, HConstants.LATEST_TIMESTAMP, null);
|
||||||
boolean isenabled = false;
|
boolean isenabled = false;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
@ -378,7 +378,7 @@ public class HBaseAdmin implements HConstants {
|
||||||
try {
|
try {
|
||||||
scannerId =
|
scannerId =
|
||||||
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
|
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
|
||||||
COL_REGIONINFO_ARRAY, tableName, System.currentTimeMillis(), null);
|
COL_REGIONINFO_ARRAY, tableName, HConstants.LATEST_TIMESTAMP, null);
|
||||||
|
|
||||||
boolean disabled = false;
|
boolean disabled = false;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
|
@ -158,7 +158,7 @@ abstract class BaseScanner extends Chore implements HConstants {
|
||||||
regionServer = master.connection.getHRegionConnection(region.getServer());
|
regionServer = master.connection.getHRegionConnection(region.getServer());
|
||||||
scannerId =
|
scannerId =
|
||||||
regionServer.openScanner(region.getRegionName(), COLUMN_FAMILY_ARRAY,
|
regionServer.openScanner(region.getRegionName(), COLUMN_FAMILY_ARRAY,
|
||||||
EMPTY_START_ROW, System.currentTimeMillis(), null);
|
EMPTY_START_ROW, HConstants.LATEST_TIMESTAMP, null);
|
||||||
|
|
||||||
int numberOfRegionsFound = 0;
|
int numberOfRegionsFound = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
|
@ -218,7 +218,7 @@ class ProcessServerShutdown extends RegionServerOperation {
|
||||||
}
|
}
|
||||||
long scannerId = server.openScanner(
|
long scannerId = server.openScanner(
|
||||||
HRegionInfo.rootRegionInfo.getRegionName(), COLUMN_FAMILY_ARRAY,
|
HRegionInfo.rootRegionInfo.getRegionName(), COLUMN_FAMILY_ARRAY,
|
||||||
EMPTY_START_ROW, System.currentTimeMillis(), null);
|
EMPTY_START_ROW, HConstants.LATEST_TIMESTAMP, null);
|
||||||
scanMetaRegion(server, scannerId,
|
scanMetaRegion(server, scannerId,
|
||||||
HRegionInfo.rootRegionInfo.getRegionName());
|
HRegionInfo.rootRegionInfo.getRegionName());
|
||||||
return true;
|
return true;
|
||||||
|
@ -238,7 +238,7 @@ class ProcessServerShutdown extends RegionServerOperation {
|
||||||
}
|
}
|
||||||
long scannerId =
|
long scannerId =
|
||||||
server.openScanner(m.getRegionName(), COLUMN_FAMILY_ARRAY,
|
server.openScanner(m.getRegionName(), COLUMN_FAMILY_ARRAY,
|
||||||
EMPTY_START_ROW, System.currentTimeMillis(), null);
|
EMPTY_START_ROW, HConstants.LATEST_TIMESTAMP, null);
|
||||||
|
|
||||||
scanMetaRegion(server, scannerId, m.getRegionName());
|
scanMetaRegion(server, scannerId, m.getRegionName());
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -92,7 +92,7 @@ abstract class TableOperation implements HConstants {
|
||||||
|
|
||||||
// Open a scanner on the meta region
|
// Open a scanner on the meta region
|
||||||
long scannerId = server.openScanner(m.getRegionName(),
|
long scannerId = server.openScanner(m.getRegionName(),
|
||||||
COLUMN_FAMILY_ARRAY, tableName, System.currentTimeMillis(), null);
|
COLUMN_FAMILY_ARRAY, tableName, HConstants.LATEST_TIMESTAMP, null);
|
||||||
|
|
||||||
List<Text> emptyRows = new ArrayList<Text>();
|
List<Text> emptyRows = new ArrayList<Text>();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue