hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r807752 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/mapreduce/IndexRecordWriter.java
Date Tue, 25 Aug 2009 18:32:40 GMT
Author: apurtell
Date: Tue Aug 25 18:32:39 2009
New Revision: 807752

URL: http://svn.apache.org/viewvc?rev=807752&view=rev
Log:
HBASE-1791 Timeout in IndexRecordWriter

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapreduce/IndexRecordWriter.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=807752&r1=807751&r2=807752&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Tue Aug 25 18:32:39 2009
@@ -3,6 +3,8 @@
   INCOMPATIBLE CHANGES
 
   BUG FIXES
+   HBASE-1791  Timeout in IndexRecordWriter (Bradford Stephens via Andrew
+               Purtell)
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapreduce/IndexRecordWriter.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapreduce/IndexRecordWriter.java?rev=807752&r1=807751&r2=807752&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapreduce/IndexRecordWriter.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapreduce/IndexRecordWriter.java Tue
Aug 25 18:32:39 2009
@@ -136,9 +136,14 @@
      */
     @Override
     public void run() {
-      while (!closed) {
         try {
-          context.setStatus("closing");
+            context.setStatus("Closing");
+        } catch (IOException e) {
+            return;
+        }
+        while (!closed) {
+        try {
+          context.progress();            
           Thread.sleep(1000);
         } catch (InterruptedException e) {
           continue;



Mime
View raw message