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:
Michael Stack 2008-05-01 06:05:58 +00:00
parent 0c08836299
commit c70e4fa984
5 changed files with 8 additions and 7 deletions

View File

@ -27,6 +27,7 @@ Hbase Change Log
HBASE-604 Don't allow CLASSPATH from environment pollute the hbase CLASSPATH
HBASE-608 HRegionServer::getThisIP() checks hadoop config var for dns interface name
(Jim R. Wilson via Stack)
HBASE-609 Master doesn't see regionserver edits because of clock skew
IMPROVEMENTS
HBASE-559 MR example job to count table rows

View File

@ -198,7 +198,7 @@ public class HBaseAdmin implements HConstants {
try {
scannerId =
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);
if (values == null || values.size() == 0) {
break;
@ -278,7 +278,7 @@ public class HBaseAdmin implements HConstants {
try {
scannerId =
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
COL_REGIONINFO_ARRAY, tableName, System.currentTimeMillis(), null);
COL_REGIONINFO_ARRAY, tableName, HConstants.LATEST_TIMESTAMP, null);
boolean isenabled = false;
while (true) {
@ -378,7 +378,7 @@ public class HBaseAdmin implements HConstants {
try {
scannerId =
server.openScanner(firstMetaServer.getRegionInfo().getRegionName(),
COL_REGIONINFO_ARRAY, tableName, System.currentTimeMillis(), null);
COL_REGIONINFO_ARRAY, tableName, HConstants.LATEST_TIMESTAMP, null);
boolean disabled = false;
while (true) {

View File

@ -158,7 +158,7 @@ abstract class BaseScanner extends Chore implements HConstants {
regionServer = master.connection.getHRegionConnection(region.getServer());
scannerId =
regionServer.openScanner(region.getRegionName(), COLUMN_FAMILY_ARRAY,
EMPTY_START_ROW, System.currentTimeMillis(), null);
EMPTY_START_ROW, HConstants.LATEST_TIMESTAMP, null);
int numberOfRegionsFound = 0;
while (true) {

View File

@ -218,7 +218,7 @@ class ProcessServerShutdown extends RegionServerOperation {
}
long scannerId = server.openScanner(
HRegionInfo.rootRegionInfo.getRegionName(), COLUMN_FAMILY_ARRAY,
EMPTY_START_ROW, System.currentTimeMillis(), null);
EMPTY_START_ROW, HConstants.LATEST_TIMESTAMP, null);
scanMetaRegion(server, scannerId,
HRegionInfo.rootRegionInfo.getRegionName());
return true;
@ -238,7 +238,7 @@ class ProcessServerShutdown extends RegionServerOperation {
}
long scannerId =
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());
return true;

View File

@ -92,7 +92,7 @@ abstract class TableOperation implements HConstants {
// Open a scanner on the meta region
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>();
try {