hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r652436 - in /hadoop/hbase/trunk: ./ src/java/org/apache/hadoop/hbase/client/ src/java/org/apache/hadoop/hbase/master/
Date Thu, 01 May 2008 06:05:58 GMT
Author: stack
Date: Wed Apr 30 23:05:58 2008
New Revision: 652436

URL: http://svn.apache.org/viewvc?rev=652436&view=rev
Log:
HBASE-609  Master doesn't see regionserver edits because of clock skew

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/BaseScanner.java
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableOperation.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=652436&r1=652435&r2=652436&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Wed Apr 30 23:05:58 2008
@@ -27,6 +27,7 @@
    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

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=652436&r1=652435&r2=652436&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java Wed Apr 30
23:05:58 2008
@@ -198,7 +198,7 @@
       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 @@
       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 @@
       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) {

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/BaseScanner.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/BaseScanner.java?rev=652436&r1=652435&r2=652436&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/BaseScanner.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/BaseScanner.java Wed Apr 30
23:05:58 2008
@@ -158,7 +158,7 @@
       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) {

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java?rev=652436&r1=652435&r2=652436&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java
(original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/ProcessServerShutdown.java
Wed Apr 30 23:05:58 2008
@@ -218,7 +218,7 @@
       }
       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 @@
       }
       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;

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableOperation.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableOperation.java?rev=652436&r1=652435&r2=652436&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableOperation.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/TableOperation.java Wed Apr
30 23:05:58 2008
@@ -92,7 +92,7 @@
 
       // 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 {



Mime
View raw message