From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 03:14:59 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 31238 invoked from network); 2 Aug 2009 03:14:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 03:14:59 -0000 Received: (qmail 73874 invoked by uid 500); 2 Aug 2009 03:15:03 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 73826 invoked by uid 500); 2 Aug 2009 03:15:03 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 73817 invoked by uid 99); 2 Aug 2009 03:15:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 03:15:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 03:14:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D1FF7238887A; Sun, 2 Aug 2009 03:14:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799974 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Date: Sun, 02 Aug 2009 03:14:38 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 03:14:37 2009 New Revision: 799974 URL: http://svn.apache.org/viewvc?rev=799974&view=rev Log: HBASE-1723 getRowWithColumnsTs changed behavior Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=799974&r1=799973&r2=799974&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Sun Aug 2 03:14:37 2009 @@ -537,6 +537,7 @@ HBASE-1714 Thrift server: prefix scan API HBASE-1719 hold a reference to the region in stores instead of only the region info + HBASE-1723 getRowWithColumnsTs changed behavior (Mathias Lehman via Stack) OPTIMIZATIONS HBASE-1412 Change values for delete column and column family in KeyValue Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java?rev=799974&r1=799973&r2=799974&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Sun Aug 2 03:14:37 2009 @@ -341,7 +341,7 @@ HTable table = getTable(tableName); if (columns == null) { Get get = new Get(row); - get.setTimeRange(Long.MIN_VALUE, timestamp); + get.setTimeStamp(timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } @@ -355,7 +355,7 @@ get.addColumn(famAndQf[0], famAndQf[1]); } } - get.setTimeRange(Long.MIN_VALUE, timestamp); + get.setTimeStamp(timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } catch (IOException e) { From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 03:15:09 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 31287 invoked from network); 2 Aug 2009 03:15:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 03:15:09 -0000 Received: (qmail 73980 invoked by uid 500); 2 Aug 2009 03:15:12 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 73933 invoked by uid 500); 2 Aug 2009 03:15:12 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 73924 invoked by uid 99); 2 Aug 2009 03:15:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 03:15:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 03:15:09 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D9CCA23888DC; Sun, 2 Aug 2009 03:14:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799975 - /hadoop/hbase/branches/0.20/CHANGES.txt Date: Sun, 02 Aug 2009 03:14:49 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 03:14:49 2009 New Revision: 799975 URL: http://svn.apache.org/viewvc?rev=799975&view=rev Log: HBASE-1723 getRowWithColumnsTs changed behavior Modified: hadoop/hbase/branches/0.20/CHANGES.txt Modified: hadoop/hbase/branches/0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=799975&r1=799974&r2=799975&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/CHANGES.txt (original) +++ hadoop/hbase/branches/0.20/CHANGES.txt Sun Aug 2 03:14:49 2009 @@ -306,6 +306,7 @@ go into .META. but catalog scanner just got old values (redux) HBASE-1534 Got ZooKeeper event, state: Disconnected on HRS and then NPE on reinit + HBASE-1723 getRowWithColumnsTs changed behavior (Mathias Lehman via Stack) IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 03:15:33 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 31307 invoked from network); 2 Aug 2009 03:15:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 03:15:33 -0000 Received: (qmail 74205 invoked by uid 500); 2 Aug 2009 03:15:37 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 74156 invoked by uid 500); 2 Aug 2009 03:15:37 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 74147 invoked by uid 99); 2 Aug 2009 03:15:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 03:15:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 03:15:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BAA09238887A; Sun, 2 Aug 2009 03:15:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799976 - /hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Date: Sun, 02 Aug 2009 03:15:08 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 03:15:08 2009 New Revision: 799976 URL: http://svn.apache.org/viewvc?rev=799976&view=rev Log: HBASE-1723 getRowWithColumnsTs changed behavior Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java?rev=799976&r1=799975&r2=799976&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Sun Aug 2 03:15:08 2009 @@ -341,7 +341,7 @@ HTable table = getTable(tableName); if (columns == null) { Get get = new Get(row); - get.setTimeRange(Long.MIN_VALUE, timestamp); + get.setTimeStamp(timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } @@ -355,7 +355,7 @@ get.addColumn(famAndQf[0], famAndQf[1]); } } - get.setTimeRange(Long.MIN_VALUE, timestamp); + get.setTimeStamp(timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } catch (IOException e) { From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 04:29:13 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 39074 invoked from network); 2 Aug 2009 04:29:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 04:29:13 -0000 Received: (qmail 3017 invoked by uid 500); 2 Aug 2009 04:29:16 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 2970 invoked by uid 500); 2 Aug 2009 04:29:16 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 2961 invoked by uid 99); 2 Aug 2009 04:29:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:29:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:29:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 469E1238888F; Sun, 2 Aug 2009 04:28:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r799984 - in /hadoop/hbase/branches/0.20: CHANGES.txt src/java/org/apache/hadoop/hbase/mapred/TableMap.java Date: Sun, 02 Aug 2009 04:28:54 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 04:28:53 2009 New Revision: 799984 URL: http://svn.apache.org/viewvc?rev=799984&view=rev Log: HBASE-1725 Old TableMap interface's definitions are not generic enough Modified: hadoop/hbase/branches/0.20/CHANGES.txt hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/mapred/TableMap.java Modified: hadoop/hbase/branches/0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=799984&r1=799983&r2=799984&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/CHANGES.txt (original) +++ hadoop/hbase/branches/0.20/CHANGES.txt Sun Aug 2 04:28:53 2009 @@ -307,6 +307,8 @@ HBASE-1534 Got ZooKeeper event, state: Disconnected on HRS and then NPE on reinit HBASE-1723 getRowWithColumnsTs changed behavior (Mathias Lehman via Stack) + HBASE-1725 Old TableMap interface's definitions are not generic enough + (Doğacan Güney via Stack) IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/mapred/TableMap.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/mapred/TableMap.java?rev=799984&r1=799983&r2=799984&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/mapred/TableMap.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/mapred/TableMap.java Sun Aug 2 04:28:53 2009 @@ -33,7 +33,7 @@ * @param <V> Writable value class */ @Deprecated -public interface TableMap<K extends WritableComparable<K>, V extends Writable> +public interface TableMap<K extends WritableComparable<? super K>, V extends Writable> extends Mapper<ImmutableBytesWritable, RowResult, K, V> { } From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 04:30:36 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 39182 invoked from network); 2 Aug 2009 04:30:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 04:30:35 -0000 Received: (qmail 3315 invoked by uid 500); 2 Aug 2009 04:30:39 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 3264 invoked by uid 500); 2 Aug 2009 04:30:39 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 3255 invoked by uid 99); 2 Aug 2009 04:30:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:30:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:30:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0EF10238888F; Sun, 2 Aug 2009 04:30:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r799985 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/mapred/TableMap.java Date: Sun, 02 Aug 2009 04:30:16 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 04:30:16 2009 New Revision: 799985 URL: http://svn.apache.org/viewvc?rev=799985&view=rev Log: HBASE-1725 Old TableMap interface's definitions are not generic enough Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapred/TableMap.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=799985&r1=799984&r2=799985&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Sun Aug 2 04:30:16 2009 @@ -306,6 +306,8 @@ go into .META. but catalog scanner just got old values (redux) HBASE-1534 Got ZooKeeper event, state: Disconnected on HRS and then NPE on reinit + HBASE-1725 Old TableMap interface's definitions are not generic enough + (Doğacan Güney via Stack) IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapred/TableMap.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapred/TableMap.java?rev=799985&r1=799984&r2=799985&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapred/TableMap.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/mapred/TableMap.java Sun Aug 2 04:30:16 2009 @@ -33,7 +33,7 @@ * @param <V> Writable value class */ @Deprecated -public interface TableMap<K extends WritableComparable<K>, V extends Writable> +public interface TableMap<K extends WritableComparable<? super K>, V extends Writable> extends Mapper<ImmutableBytesWritable, RowResult, K, V> { } From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 04:39:49 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 39846 invoked from network); 2 Aug 2009 04:39:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 04:39:49 -0000 Received: (qmail 7262 invoked by uid 500); 2 Aug 2009 04:39:52 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 7213 invoked by uid 500); 2 Aug 2009 04:39:52 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 7204 invoked by uid 99); 2 Aug 2009 04:39:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:39:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:39:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 722A8238888F; Sun, 2 Aug 2009 04:39:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799986 - /hadoop/hbase/branches/0.19/CHANGES.txt Date: Sun, 02 Aug 2009 04:39:30 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 04:39:30 2009 New Revision: 799986 URL: http://svn.apache.org/viewvc?rev=799986&view=rev Log: HBASE-1726 Migration to 0.20 looses index information from HTableDescriptor Modified: hadoop/hbase/branches/0.19/CHANGES.txt Modified: hadoop/hbase/branches/0.19/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/CHANGES.txt?rev=799986&r1=799985&r2=799986&view=diff ============================================================================== --- hadoop/hbase/branches/0.19/CHANGES.txt (original) +++ hadoop/hbase/branches/0.19/CHANGES.txt Sun Aug 2 04:39:30 2009 @@ -29,6 +29,8 @@ HBASE-1651 client is broken, it requests ROOT region location from ZK too much HBASE-1683 OOME on master splitting logs; stuck, won't go down + HBASE-1726 Migration to 0.20 looses index information from HTableDescriptor + (Clint Morgan via Stack) IMPROVEMENTS HBASE-1722 Add support for exporting HBase metrics via JMX From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 04:40:11 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 39901 invoked from network); 2 Aug 2009 04:40:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 04:40:11 -0000 Received: (qmail 7344 invoked by uid 500); 2 Aug 2009 04:40:15 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 7295 invoked by uid 500); 2 Aug 2009 04:40:15 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 7286 invoked by uid 99); 2 Aug 2009 04:40:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:40:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:40:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 78AFD23888DC; Sun, 2 Aug 2009 04:39:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799987 - in /hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration: ./ IndexSpecificationArray.java MoveIndexMetaData.java Date: Sun, 02 Aug 2009 04:39:50 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 04:39:50 2009 New Revision: 799987 URL: http://svn.apache.org/viewvc?rev=799987&view=rev Log: HBASE-1726 Migration to 0.20 looses index information from HTableDescriptor Added: hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/ hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/IndexSpecificationArray.java hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/MoveIndexMetaData.java Added: hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/IndexSpecificationArray.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/IndexSpecificationArray.java?rev=799987&view=auto ============================================================================== --- hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/IndexSpecificationArray.java (added) +++ hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/IndexSpecificationArray.java Sun Aug 2 04:39:50 2009 @@ -0,0 +1,51 @@ +package org.apache.hadoop.hbase.client.tableindexed.migration; + +import java.io.DataInput; +import java.io.DataOutput; +import java.io.IOException; + +import org.apache.hadoop.hbase.client.tableindexed.IndexSpecification; +import org.apache.hadoop.io.Writable; + +/** + * Holds an array of index specifications. Copied from 0.20 hbase to migrate indexes. + */ +public class IndexSpecificationArray implements Writable { + + private IndexSpecification[] indexSpecifications; + + public IndexSpecificationArray() { + // FOr writable + } + + public IndexSpecificationArray(final IndexSpecification[] specs) { + this.indexSpecifications = specs; + } + + public void readFields(final DataInput in) throws IOException { + int size = in.readInt(); + indexSpecifications = new IndexSpecification[size]; + for (int i = 0; i < size; i++) { + indexSpecifications[i] = new IndexSpecification(); + indexSpecifications[i].readFields(in); + } + + } + + public void write(final DataOutput out) throws IOException { + out.writeInt(indexSpecifications.length); + for (IndexSpecification indexSpec : indexSpecifications) { + indexSpec.write(out); + } + } + + /** + * Get indexSpecifications. + * + * @return indexSpecifications + */ + public IndexSpecification[] getIndexSpecifications() { + return indexSpecifications; + } + +} Added: hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/MoveIndexMetaData.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/MoveIndexMetaData.java?rev=799987&view=auto ============================================================================== --- hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/MoveIndexMetaData.java (added) +++ hadoop/hbase/branches/0.19/src/java/org/apache/hadoop/hbase/client/tableindexed/migration/MoveIndexMetaData.java Sun Aug 2 04:39:50 2009 @@ -0,0 +1,50 @@ +package org.apache.hadoop.hbase.client.tableindexed.migration; + +import java.io.ByteArrayOutputStream; +import java.io.DataOutputStream; +import java.io.IOException; +import java.util.Collection; + +import org.apache.hadoop.hbase.HBaseConfiguration; +import org.apache.hadoop.hbase.HTableDescriptor; +import org.apache.hadoop.hbase.client.HBaseAdmin; +import org.apache.hadoop.hbase.client.tableindexed.IndexSpecification; +import org.apache.hadoop.hbase.util.Bytes; + +/** + * One time migration account for index metadata change for 0.20. (Not handled by hbase migration). + */ +public class MoveIndexMetaData { + + private static final byte[] INDEXES_KEY = Bytes.toBytes("INDEXES"); + + public static void main(final String[] args) { + try { + HBaseAdmin admin = new HBaseAdmin(new HBaseConfiguration()); + for (HTableDescriptor tableDesc : admin.listTables()) { + if (!tableDesc.getIndexes().isEmpty()) { + admin.disableTable(tableDesc.getName()); + writeToTable(tableDesc.getIndexes(), tableDesc); + admin.modifyTable(tableDesc.getName(), tableDesc); + admin.enableTable(tableDesc.getName()); + } + } + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + private static void writeToTable(final Collection<IndexSpecification> indexes, final HTableDescriptor tableDesc) { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + DataOutputStream dos = new DataOutputStream(baos); + IndexSpecificationArray indexArray = new IndexSpecificationArray(indexes.toArray(new IndexSpecification[0])); + + try { + indexArray.write(dos); + dos.flush(); + } catch (IOException e) { + throw new RuntimeException(e); + } + tableDesc.setValue(INDEXES_KEY, baos.toByteArray()); + } +} From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 04:54:12 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 41040 invoked from network); 2 Aug 2009 04:54:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 04:54:12 -0000 Received: (qmail 12803 invoked by uid 500); 2 Aug 2009 04:54:16 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 12754 invoked by uid 500); 2 Aug 2009 04:54:16 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 12745 invoked by uid 99); 2 Aug 2009 04:54:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:54:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:54:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 29139238888F; Sun, 2 Aug 2009 04:53:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r799990 - in /hadoop/hbase/branches/0.20: CHANGES.txt src/java/org/apache/hadoop/hbase/HColumnDescriptor.java src/java/org/apache/hadoop/hbase/HTableDescriptor.java src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Date: Sun, 02 Aug 2009 04:53:46 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 04:53:46 2009 New Revision: 799990 URL: http://svn.apache.org/viewvc?rev=799990&view=rev Log: HBASE-1732 Flag to disable regionserver restart Modified: hadoop/hbase/branches/0.20/CHANGES.txt hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HTableDescriptor.java hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Modified: hadoop/hbase/branches/0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=799990&r1=799989&r2=799990&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/CHANGES.txt (original) +++ hadoop/hbase/branches/0.20/CHANGES.txt Sun Aug 2 04:53:46 2009 @@ -309,6 +309,7 @@ HBASE-1723 getRowWithColumnsTs changed behavior (Mathias Lehman via Stack) HBASE-1725 Old TableMap interface's definitions are not generic enough (Doğacan Güney via Stack) + HBASE-1732 Flag to disable regionserver restart IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java?rev=799990&r1=799989&r2=799990&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java Sun Aug 2 04:53:46 2009 @@ -54,6 +54,7 @@ // Time-to-live feature. Version 4 was when we moved to byte arrays, HBASE-82. // Version 5 was when bloom filter descriptors were removed. // Version 6 adds metadata as a map where keys and values are byte[]. + // Version 7 -- add new compression and hfile blocksize to HColumnDescriptor (HBASE-1217) private static final byte COLUMN_DESCRIPTOR_VERSION = (byte)7; /** Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HTableDescriptor.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HTableDescriptor.java?rev=799990&r1=799989&r2=799990&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HTableDescriptor.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/HTableDescriptor.java Sun Aug 2 04:53:46 2009 @@ -51,8 +51,8 @@ // Changes prior to version 3 were not recorded here. // Version 3 adds metadata as a map where keys and values are byte[]. // Version 4 adds indexes - // FIXME version 5 should remove indexes - public static final byte TABLE_DESCRIPTOR_VERSION = 4; + // Version 5 removed transactional pollution -- e.g. indexes + public static final byte TABLE_DESCRIPTOR_VERSION = 5; private byte [] name = HConstants.EMPTY_BYTE_ARRAY; private String nameAsString = ""; Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=799990&r1=799989&r2=799990&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Sun Aug 2 04:53:46 2009 @@ -355,7 +355,7 @@ EventType type = event.getType(); KeeperState state = event.getState(); LOG.info("Got ZooKeeper event, state: " + state + ", type: " + - type + ", path: " + event.getPath()); + type + ", path: " + event.getPath()); // Ignore events if we're shutting down. if (stopRequested.get()) { @@ -365,7 +365,13 @@ if (state == KeeperState.Expired) { LOG.error("ZooKeeper session expired"); - restart(); + boolean restart = + this.conf.getBoolean("hbase.regionserver.restart.on.zk.expire", false); + if (restart) { + restart(); + } else { + abort(); + } } else if (type == EventType.NodeDeleted) { watchMasterAddress(); } else if (type == EventType.NodeCreated) { From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 04:56:08 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 41236 invoked from network); 2 Aug 2009 04:56:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 04:56:07 -0000 Received: (qmail 13712 invoked by uid 500); 2 Aug 2009 04:56:11 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 13664 invoked by uid 500); 2 Aug 2009 04:56:11 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 13655 invoked by uid 99); 2 Aug 2009 04:56:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:56:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 04:56:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3C4F623888CC; Sun, 2 Aug 2009 04:55:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r799991 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Date: Sun, 02 Aug 2009 04:55:42 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 04:55:41 2009 New Revision: 799991 URL: http://svn.apache.org/viewvc?rev=799991&view=rev Log: HBASE-1732 Flag to disable regionserver restart Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=799991&r1=799990&r2=799991&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Sun Aug 2 04:55:41 2009 @@ -308,6 +308,7 @@ on reinit HBASE-1725 Old TableMap interface's definitions are not generic enough (Doğacan Güney via Stack) + HBASE-1732 Flag to disable regionserver restart IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=799991&r1=799990&r2=799991&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Sun Aug 2 04:55:41 2009 @@ -355,7 +355,7 @@ EventType type = event.getType(); KeeperState state = event.getState(); LOG.info("Got ZooKeeper event, state: " + state + ", type: " + - type + ", path: " + event.getPath()); + type + ", path: " + event.getPath()); // Ignore events if we're shutting down. if (stopRequested.get()) { @@ -365,7 +365,13 @@ if (state == KeeperState.Expired) { LOG.error("ZooKeeper session expired"); - restart(); + boolean restart = + this.conf.getBoolean("hbase.regionserver.restart.on.zk.expire", false); + if (restart) { + restart(); + } else { + abort(); + } } else if (type == EventType.NodeDeleted) { watchMasterAddress(); } else if (type == EventType.NodeCreated) { From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 05:00:07 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 41619 invoked from network); 2 Aug 2009 05:00:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 05:00:07 -0000 Received: (qmail 13946 invoked by uid 500); 2 Aug 2009 05:00:11 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 13897 invoked by uid 500); 2 Aug 2009 05:00:11 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 13888 invoked by uid 99); 2 Aug 2009 05:00:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 05:00:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 05:00:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 086C2238888F; Sun, 2 Aug 2009 04:59:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r799992 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/HColumnDescriptor.java src/java/org/apache/hadoop/hbase/HTableDescriptor.java Date: Sun, 02 Aug 2009 04:59:46 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 04:59:46 2009 New Revision: 799992 URL: http://svn.apache.org/viewvc?rev=799992&view=rev Log: HBASE-1727 HTD and HCD versions need update Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HTableDescriptor.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=799992&r1=799991&r2=799992&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Sun Aug 2 04:59:46 2009 @@ -309,6 +309,7 @@ HBASE-1725 Old TableMap interface's definitions are not generic enough (Doğacan Güney via Stack) HBASE-1732 Flag to disable regionserver restart + HBASE-1727 HTD and HCD versions need update IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java?rev=799992&r1=799991&r2=799992&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HColumnDescriptor.java Sun Aug 2 04:59:46 2009 @@ -54,6 +54,7 @@ // Time-to-live feature. Version 4 was when we moved to byte arrays, HBASE-82. // Version 5 was when bloom filter descriptors were removed. // Version 6 adds metadata as a map where keys and values are byte[]. + // Version 7 -- add new compression and hfile blocksize to HColumnDescriptor (HBASE-1217) private static final byte COLUMN_DESCRIPTOR_VERSION = (byte)7; /** Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HTableDescriptor.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HTableDescriptor.java?rev=799992&r1=799991&r2=799992&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HTableDescriptor.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/HTableDescriptor.java Sun Aug 2 04:59:46 2009 @@ -51,8 +51,8 @@ // Changes prior to version 3 were not recorded here. // Version 3 adds metadata as a map where keys and values are byte[]. // Version 4 adds indexes - // FIXME version 5 should remove indexes - public static final byte TABLE_DESCRIPTOR_VERSION = 4; + // Version 5 removed transactional pollution -- e.g. indexes + public static final byte TABLE_DESCRIPTOR_VERSION = 5; private byte [] name = HConstants.EMPTY_BYTE_ARRAY; private String nameAsString = ""; From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 05:08:33 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 42782 invoked from network); 2 Aug 2009 05:08:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 05:08:31 -0000 Received: (qmail 15893 invoked by uid 500); 2 Aug 2009 05:08:34 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 15844 invoked by uid 500); 2 Aug 2009 05:08:34 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 15835 invoked by uid 99); 2 Aug 2009 05:08:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 05:08:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 05:08:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 27F84238887A; Sun, 2 Aug 2009 05:08:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799994 - /hadoop/hbase/trunk/src/java/overview.html Date: Sun, 02 Aug 2009 05:08:03 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 05:08:02 2009 New Revision: 799994 URL: http://svn.apache.org/viewvc?rev=799994&view=rev Log: Change hadoop-site.xml to hdfs-site.xml Modified: hadoop/hbase/trunk/src/java/overview.html Modified: hadoop/hbase/trunk/src/java/overview.html URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/overview.html?rev=799994&r1=799993&r2=799994&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/overview.html (original) +++ hadoop/hbase/trunk/src/java/overview.html Sun Aug 2 05:08:02 2009 @@ -285,7 +285,7 @@ see this configuration unless you do one of the following: <ul> <li>Add a pointer to your <code>HADOOP_CONF_DIR</code> to <code>CLASSPATH</code> in <code>hbase-env.sh</code></li> - <li>Add a copy of <code>hadoop-site.xml</code> to <code>${HBASE_HOME}/conf</code>, or</li> + <li>Add a copy of <code>hdfs-site.xml</code> (or <code>hadoop-site.xml</code>) to <code>${HBASE_HOME}/conf</code>, or</li> <li>If only a small set of HDFS client configurations, add them to <code>hbase-site.xml</code></li> </ul> An example of such an HDFS client configuration is <code>dfs.replication</code>. If for example, From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 05:11:02 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 43016 invoked from network); 2 Aug 2009 05:11:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 05:11:02 -0000 Received: (qmail 16566 invoked by uid 500); 2 Aug 2009 05:11:06 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 16516 invoked by uid 500); 2 Aug 2009 05:11:06 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 16507 invoked by uid 99); 2 Aug 2009 05:11:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 05:11:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 05:10:57 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 670FF238887A; Sun, 2 Aug 2009 05:10:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r799995 - /hadoop/hbase/branches/0.20/src/java/overview.html Date: Sun, 02 Aug 2009 05:10:37 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 05:10:37 2009 New Revision: 799995 URL: http://svn.apache.org/viewvc?rev=799995&view=rev Log: Change hadoop-site.xml to hdfs-site.xml Modified: hadoop/hbase/branches/0.20/src/java/overview.html Modified: hadoop/hbase/branches/0.20/src/java/overview.html URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/overview.html?rev=799995&r1=799994&r2=799995&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/overview.html (original) +++ hadoop/hbase/branches/0.20/src/java/overview.html Sun Aug 2 05:10:37 2009 @@ -285,7 +285,7 @@ see this configuration unless you do one of the following: <ul> <li>Add a pointer to your <code>HADOOP_CONF_DIR</code> to <code>CLASSPATH</code> in <code>hbase-env.sh</code></li> - <li>Add a copy of <code>hadoop-site.xml</code> to <code>${HBASE_HOME}/conf</code>, or</li> + <li>Add a copy of <code>hdfs-site.xml</code> (or <code>hadoop-site.xml</code>) to <code>${HBASE_HOME}/conf</code>, or</li> <li>If only a small set of HDFS client configurations, add them to <code>hbase-site.xml</code></li> </ul> An example of such an HDFS client configuration is <code>dfs.replication</code>. If for example, From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 23:28:37 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 84002 invoked from network); 2 Aug 2009 23:28:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 23:28:37 -0000 Received: (qmail 37820 invoked by uid 500); 2 Aug 2009 23:28:42 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 37796 invoked by uid 500); 2 Aug 2009 23:28:42 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 37787 invoked by uid 99); 2 Aug 2009 23:28:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 23:28:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 23:28:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C0AB1238889B; Sun, 2 Aug 2009 23:28:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r800157 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java Date: Sun, 02 Aug 2009 23:28:20 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 23:28:20 2009 New Revision: 800157 URL: http://svn.apache.org/viewvc?rev=800157&view=rev Log: HBASE-1604 HBaseClient.getConnection() may return a broken connection without throwing an exception Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=800157&r1=800156&r2=800157&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Sun Aug 2 23:28:20 2009 @@ -310,6 +310,8 @@ (Doğacan Güney via Stack) HBASE-1732 Flag to disable regionserver restart HBASE-1727 HTD and HCD versions need update + HBASE-1604 HBaseClient.getConnection() may return a broken connection + without throwing an exception (Eugene Kirpichov via Stack) IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java?rev=800157&r1=800156&r2=800157&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java Sun Aug 2 23:28:20 2009 @@ -286,7 +286,7 @@ * a header to the server and starts * the connection thread that waits for responses. */ - protected synchronized void setupIOstreams() { + protected synchronized void setupIOstreams() throws IOException { if (socket != null || shouldCloseConnection.get()) { return; } @@ -328,6 +328,8 @@ } catch (IOException e) { markClosed(e); close(); + + throw e; } } From hbase-commits-returnhodgeselizabeth@example.com Sun Aug 02 23:29:58 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 84460 invoked from network); 2 Aug 2009 23:29:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Aug 2009 23:29:57 -0000 Received: (qmail 39799 invoked by uid 500); 2 Aug 2009 23:30:02 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 39771 invoked by uid 500); 2 Aug 2009 23:30:02 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 39739 invoked by uid 99); 2 Aug 2009 23:30:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 23:30:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Aug 2009 23:29:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E96A423888DD; Sun, 2 Aug 2009 23:29:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r800159 - in /hadoop/hbase/branches/0.20: CHANGES.txt src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java Date: Sun, 02 Aug 2009 23:29:37 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Sun Aug 2 23:29:37 2009 New Revision: 800159 URL: http://svn.apache.org/viewvc?rev=800159&view=rev Log: HBASE-1604 HBaseClient.getConnection() may return a broken connection without throwing an exception Modified: hadoop/hbase/branches/0.20/CHANGES.txt hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java Modified: hadoop/hbase/branches/0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=800159&r1=800158&r2=800159&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/CHANGES.txt (original) +++ hadoop/hbase/branches/0.20/CHANGES.txt Sun Aug 2 23:29:37 2009 @@ -310,6 +310,8 @@ HBASE-1725 Old TableMap interface's definitions are not generic enough (Doğacan Güney via Stack) HBASE-1732 Flag to disable regionserver restart + HBASE-1604 HBaseClient.getConnection() may return a broken connection + without throwing an exception (Eugene Kirpichov via Stack) IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java?rev=800159&r1=800158&r2=800159&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/ipc/HBaseClient.java Sun Aug 2 23:29:37 2009 @@ -286,7 +286,7 @@ * a header to the server and starts * the connection thread that waits for responses. */ - protected synchronized void setupIOstreams() { + protected synchronized void setupIOstreams() throws IOException { if (socket != null || shouldCloseConnection.get()) { return; } @@ -328,6 +328,8 @@ } catch (IOException e) { markClosed(e); close(); + + throw e; } } From hbase-commits-returnhodgeselizabeth@example.com Mon Aug 03 00:25:02 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 97820 invoked from network); 3 Aug 2009 00:25:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Aug 2009 00:25:02 -0000 Received: (qmail 60314 invoked by uid 500); 3 Aug 2009 00:25:07 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 60265 invoked by uid 500); 3 Aug 2009 00:25:07 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 60256 invoked by uid 99); 3 Aug 2009 00:25:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 00:25:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 00:25:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 455442388872; Mon, 3 Aug 2009 00:24:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r800175 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Date: Mon, 03 Aug 2009 00:24:43 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Mon Aug 3 00:24:42 2009 New Revision: 800175 URL: http://svn.apache.org/viewvc?rev=800175&view=rev Log: Reversed HBASE-1723 getRowWithColumnsTs changed behavior Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=800175&r1=800174&r2=800175&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Mon Aug 3 00:24:42 2009 @@ -543,7 +543,6 @@ HBASE-1714 Thrift server: prefix scan API HBASE-1719 hold a reference to the region in stores instead of only the region info - HBASE-1723 getRowWithColumnsTs changed behavior (Mathias Lehman via Stack) OPTIMIZATIONS HBASE-1412 Change values for delete column and column family in KeyValue Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java?rev=800175&r1=800174&r2=800175&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Mon Aug 3 00:24:42 2009 @@ -341,7 +341,7 @@ HTable table = getTable(tableName); if (columns == null) { Get get = new Get(row); - get.setTimeStamp(timestamp); + get.setTimeRange(Long.MIN_VALUE, timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } @@ -355,7 +355,7 @@ get.addColumn(famAndQf[0], famAndQf[1]); } } - get.setTimeStamp(timestamp); + get.setTimeRange(Long.MIN_VALUE, timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } catch (IOException e) { From hbase-commits-returnhodgeselizabeth@example.com Mon Aug 03 00:25:38 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 97872 invoked from network); 3 Aug 2009 00:25:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Aug 2009 00:25:38 -0000 Received: (qmail 60383 invoked by uid 500); 3 Aug 2009 00:25:43 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 60344 invoked by uid 500); 3 Aug 2009 00:25:43 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 60335 invoked by uid 99); 3 Aug 2009 00:25:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 00:25:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 00:25:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CAF732388891; Mon, 3 Aug 2009 00:25:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r800176 - in /hadoop/hbase/branches/0.20: CHANGES.txt src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Date: Mon, 03 Aug 2009 00:25:19 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Mon Aug 3 00:25:19 2009 New Revision: 800176 URL: http://svn.apache.org/viewvc?rev=800176&view=rev Log: Reversed HBASE-1723 getRowWithColumnsTs changed behavior Modified: hadoop/hbase/branches/0.20/CHANGES.txt hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Modified: hadoop/hbase/branches/0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=800176&r1=800175&r2=800176&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/CHANGES.txt (original) +++ hadoop/hbase/branches/0.20/CHANGES.txt Mon Aug 3 00:25:19 2009 @@ -306,7 +306,6 @@ go into .META. but catalog scanner just got old values (redux) HBASE-1534 Got ZooKeeper event, state: Disconnected on HRS and then NPE on reinit - HBASE-1723 getRowWithColumnsTs changed behavior (Mathias Lehman via Stack) HBASE-1725 Old TableMap interface's definitions are not generic enough (Doğacan Güney via Stack) HBASE-1732 Flag to disable regionserver restart Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java?rev=800176&r1=800175&r2=800176&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Mon Aug 3 00:25:19 2009 @@ -341,7 +341,7 @@ HTable table = getTable(tableName); if (columns == null) { Get get = new Get(row); - get.setTimeStamp(timestamp); + get.setTimeRange(Long.MIN_VALUE, timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } @@ -355,7 +355,7 @@ get.addColumn(famAndQf[0], famAndQf[1]); } } - get.setTimeStamp(timestamp); + get.setTimeRange(Long.MIN_VALUE, timestamp); Result result = table.get(get); return ThriftUtilities.rowResultFromHBase(result.getRowResult()); } catch (IOException e) { From hbase-commits-returnhodgeselizabeth@example.com Mon Aug 03 21:49:29 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 25768 invoked from network); 3 Aug 2009 21:49:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Aug 2009 21:49:29 -0000 Received: (qmail 38870 invoked by uid 500); 3 Aug 2009 21:49:34 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 38824 invoked by uid 500); 3 Aug 2009 21:49:34 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 38815 invoked by uid 99); 3 Aug 2009 21:49:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 21:49:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 21:49:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 834AC2388854; Mon, 3 Aug 2009 21:49:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r800585 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/master/RegionManager.java Date: Mon, 03 Aug 2009 21:49:10 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: jgray Date: Mon Aug 3 21:49:10 2009 New Revision: 800585 URL: http://svn.apache.org/viewvc?rev=800585&view=rev Log: HBASE-1737 Regions unbalanced when adding new node Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/RegionManager.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=800585&r1=800584&r2=800585&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Mon Aug 3 21:49:10 2009 @@ -312,6 +312,7 @@ HBASE-1727 HTD and HCD versions need update HBASE-1604 HBaseClient.getConnection() may return a broken connection without throwing an exception (Eugene Kirpichov via Stack) + HBASE-1737 Regions unbalanced when adding new node IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/RegionManager.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/RegionManager.java?rev=800585&r1=800584&r2=800585&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/RegionManager.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/RegionManager.java Mon Aug 3 21:49:10 2009 @@ -1349,19 +1349,24 @@ double avg = master.serverManager.getAverageLoad(); // nothing to balance if server load not more then average load - if (servLoad.getLoad() <= Math.ceil(avg) || avg <= 2.0) return; + if(servLoad.getLoad() <= Math.ceil(avg) || avg <= 2.0) { + return; + } - // check if server is overloaded + // check if current server is overloaded int numRegionsToClose = balanceFromOverloaded(servLoad, avg); // check if we can unload server by low loaded servers - if (numRegionsToClose <= 0) - balanceToLowloaded(info.getServerName(), servLoad, avg); + if(numRegionsToClose <= 0) { + numRegionsToClose = balanceToLowloaded(info.getServerName(), servLoad, + avg); + } - if (maxRegToClose > 0) + if(maxRegToClose > 0) { numRegionsToClose = Math.min(numRegionsToClose, maxRegToClose); - - if (numRegionsToClose > 0){ + } + + if(numRegionsToClose > 0) { unassignSomeRegions(info, numRegionsToClose, mostLoadedRegions, returnMsgs); } @@ -1416,7 +1421,8 @@ if (LOG.isDebugEnabled()) { LOG.debug("Server " + srvName + " will be unloaded for " + "balance. Server load: " + numSrvRegs + " avg: " + - avgLoad + ", regions can be moved: " + numMoveToLowLoaded); + avgLoad + ", regions can be moved: " + numMoveToLowLoaded + + ". Regions to close: " + numRegionsToClose); } return numRegionsToClose; } From hbase-commits-returnhodgeselizabeth@example.com Mon Aug 03 23:18:35 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 72892 invoked from network); 3 Aug 2009 23:18:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Aug 2009 23:18:35 -0000 Received: (qmail 72272 invoked by uid 500); 3 Aug 2009 23:18:39 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 72243 invoked by uid 500); 3 Aug 2009 23:18:39 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 72192 invoked by uid 99); 3 Aug 2009 23:18:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 23:18:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 23:18:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6C9D723888EC; Mon, 3 Aug 2009 23:18:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r800617 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/regionserver/HLog.java Date: Mon, 03 Aug 2009 23:18:14 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Mon Aug 3 23:18:14 2009 New Revision: 800617 URL: http://svn.apache.org/viewvc?rev=800617&view=rev Log: HBASE-1739 hbase-1683 broke splitting; only split three logs no matter what N was Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=800617&r1=800616&r2=800617&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Mon Aug 3 23:18:14 2009 @@ -313,6 +313,8 @@ HBASE-1604 HBaseClient.getConnection() may return a broken connection without throwing an exception (Eugene Kirpichov via Stack) HBASE-1737 Regions unbalanced when adding new node + HBASE-1739 hbase-1683 broke splitting; only split three logs no matter + what N was IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java?rev=800617&r1=800616&r2=800617&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java Mon Aug 3 23:18:14 2009 @@ -860,7 +860,7 @@ // hodgeselizabeth@example.com when it's the last step int endIndex = step == maxSteps - 1? logfiles.length: step * concurrentLogReads + concurrentLogReads; - for (int i = (step * 10); i < endIndex; i++) { + for (int i = (step * concurrentLogReads); i < endIndex; i++) { // Check for possibly empty file. With appends, currently Hadoop // reports a zero length even if the file has been sync'd. Revisit if // HADOOP-4751 is committed. From hbase-commits-returnhodgeselizabeth@example.com Mon Aug 03 23:22:07 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 74526 invoked from network); 3 Aug 2009 23:22:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Aug 2009 23:22:06 -0000 Received: (qmail 79310 invoked by uid 500); 3 Aug 2009 23:22:12 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 79262 invoked by uid 500); 3 Aug 2009 23:22:12 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 79253 invoked by uid 99); 3 Aug 2009 23:22:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 23:22:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 23:22:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BFF552388891; Mon, 3 Aug 2009 23:21:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r800619 - in /hadoop/hbase/branches/0.20: CHANGES.txt src/java/org/apache/hadoop/hbase/regionserver/HLog.java Date: Mon, 03 Aug 2009 23:21:47 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Mon Aug 3 23:21:47 2009 New Revision: 800619 URL: http://svn.apache.org/viewvc?rev=800619&view=rev Log: HBASE-1739 hbase-1683 broke splitting; only split three logs no matter what N was Modified: hadoop/hbase/branches/0.20/CHANGES.txt hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HLog.java Modified: hadoop/hbase/branches/0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=800619&r1=800618&r2=800619&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/CHANGES.txt (original) +++ hadoop/hbase/branches/0.20/CHANGES.txt Mon Aug 3 23:21:47 2009 @@ -311,6 +311,8 @@ HBASE-1732 Flag to disable regionserver restart HBASE-1604 HBaseClient.getConnection() may return a broken connection without throwing an exception (Eugene Kirpichov via Stack) + HBASE-1739 hbase-1683 broke splitting; only split three logs no matter + what N was IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HLog.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HLog.java?rev=800619&r1=800618&r2=800619&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HLog.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/regionserver/HLog.java Mon Aug 3 23:21:47 2009 @@ -860,7 +860,7 @@ // hodgeselizabeth@example.com when it's the last step int endIndex = step == maxSteps - 1? logfiles.length: step * concurrentLogReads + concurrentLogReads; - for (int i = (step * 10); i < endIndex; i++) { + for (int i = (step * concurrentLogReads); i < endIndex; i++) { // Check for possibly empty file. With appends, currently Hadoop // reports a zero length even if the file has been sync'd. Revisit if // HADOOP-4751 is committed. From hbase-commits-returnhodgeselizabeth@example.com Mon Aug 03 23:22:51 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 74807 invoked from network); 3 Aug 2009 23:22:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Aug 2009 23:22:50 -0000 Received: (qmail 81693 invoked by uid 500); 3 Aug 2009 23:22:56 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 81667 invoked by uid 500); 3 Aug 2009 23:22:56 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 81658 invoked by uid 99); 3 Aug 2009 23:22:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 23:22:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 23:22:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A3ED82388981; Mon, 3 Aug 2009 23:22:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r800621 - in /hadoop/hbase/branches/0.20: CHANGES.txt src/java/org/apache/hadoop/hbase/master/RegionManager.java Date: Mon, 03 Aug 2009 23:22:31 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Mon Aug 3 23:22:31 2009 New Revision: 800621 URL: http://svn.apache.org/viewvc?rev=800621&view=rev Log: HBASE-1737 Regions unbalanced when adding new node Modified: hadoop/hbase/branches/0.20/CHANGES.txt hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/master/RegionManager.java Modified: hadoop/hbase/branches/0.20/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/CHANGES.txt?rev=800621&r1=800620&r2=800621&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/CHANGES.txt (original) +++ hadoop/hbase/branches/0.20/CHANGES.txt Mon Aug 3 23:22:31 2009 @@ -313,6 +313,7 @@ without throwing an exception (Eugene Kirpichov via Stack) HBASE-1739 hbase-1683 broke splitting; only split three logs no matter what N was + HBASE-1737 Regions unbalanced when adding new node IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage Modified: hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/master/RegionManager.java URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/master/RegionManager.java?rev=800621&r1=800620&r2=800621&view=diff ============================================================================== --- hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/master/RegionManager.java (original) +++ hadoop/hbase/branches/0.20/src/java/org/apache/hadoop/hbase/master/RegionManager.java Mon Aug 3 23:22:31 2009 @@ -1349,19 +1349,24 @@ double avg = master.serverManager.getAverageLoad(); // nothing to balance if server load not more then average load - if (servLoad.getLoad() <= Math.ceil(avg) || avg <= 2.0) return; + if(servLoad.getLoad() <= Math.ceil(avg) || avg <= 2.0) { + return; + } - // check if server is overloaded + // check if current server is overloaded int numRegionsToClose = balanceFromOverloaded(servLoad, avg); // check if we can unload server by low loaded servers - if (numRegionsToClose <= 0) - balanceToLowloaded(info.getServerName(), servLoad, avg); + if(numRegionsToClose <= 0) { + numRegionsToClose = balanceToLowloaded(info.getServerName(), servLoad, + avg); + } - if (maxRegToClose > 0) + if(maxRegToClose > 0) { numRegionsToClose = Math.min(numRegionsToClose, maxRegToClose); - - if (numRegionsToClose > 0){ + } + + if(numRegionsToClose > 0) { unassignSomeRegions(info, numRegionsToClose, mostLoadedRegions, returnMsgs); } @@ -1416,7 +1421,8 @@ if (LOG.isDebugEnabled()) { LOG.debug("Server " + srvName + " will be unloaded for " + "balance. Server load: " + numSrvRegs + " avg: " + - avgLoad + ", regions can be moved: " + numMoveToLowLoaded); + avgLoad + ", regions can be moved: " + numMoveToLowLoaded + + ". Regions to close: " + numRegionsToClose); } return numRegionsToClose; } From hbase-commits-returnhodgeselizabeth@example.com Tue Aug 04 05:09:45 2009 Return-Path: <hbase-commits-returnhodgeselizabeth@example.com> Delivered-To: hodgeselizabeth@example.com Received: (qmail 71596 invoked from network); 4 Aug 2009 05:09:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Aug 2009 05:09:45 -0000 Received: (qmail 72227 invoked by uid 500); 4 Aug 2009 05:09:50 -0000 Delivered-To: hodgeselizabeth@example.com Received: (qmail 72189 invoked by uid 500); 4 Aug 2009 05:09:50 -0000 Mailing-List: contact hodgeselizabeth@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:hodgeselizabeth@example.com> List-Unsubscribe: <mailto:hodgeselizabeth@example.com> List-Post: <mailto:hodgeselizabeth@example.com> List-Id: <hbase-commits.hadoop.apache.org> Reply-To: hodgeselizabeth@example.com Delivered-To: mailing list hodgeselizabeth@example.com Received: (qmail 72180 invoked by uid 99); 4 Aug 2009 05:09:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2009 05:09:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2009 05:09:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EF0882388892; Tue, 4 Aug 2009 05:09:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r800676 - in /hadoop/hbase/trunk: CHANGES.txt bin/HBase.rb src/java/org/apache/hadoop/hbase/ClusterStatus.java src/java/org/apache/hadoop/hbase/master/HMaster.java src/java/org/apache/hadoop/hbase/master/RegionManager.java Date: Tue, 04 Aug 2009 05:09:27 -0000 To: hodgeselizabeth@example.com From: hodgeselizabeth@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <hodgeselizabeth@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: stack Date: Tue Aug 4 05:09:27 2009 New Revision: 800676 URL: http://svn.apache.org/viewvc?rev=800676&view=rev Log: HBASE-1743 [debug tool] Add regionsInTransition list to ClusterStatus detailed output Modified: hadoop/hbase/trunk/CHANGES.txt hadoop/hbase/trunk/bin/HBase.rb hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ClusterStatus.java hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/HMaster.java hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/master/RegionManager.java Modified: hadoop/hbase/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=800676&r1=800675&r2=800676&view=diff ============================================================================== --- hadoop/hbase/trunk/CHANGES.txt (original) +++ hadoop/hbase/trunk/CHANGES.txt Tue Aug 4 05:09:27 2009 @@ -546,6 +546,8 @@ HBASE-1714 Thrift server: prefix scan API HBASE-1719 hold a reference to the region in stores instead of only the region info + HBASE-1743 [debug tool] Add regionsInTransition list to ClusterStatus + detailed output OPTIMIZATIONS HBASE-1412 Change values for delete column and column family in KeyValue Modified: hadoop/hbase/trunk/bin/HBase.rb URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/bin/HBase.rb?rev=800676&r1=800675&r2=800676&view=diff ============================================================================== --- hadoop/hbase/trunk/bin/HBase.rb (original) +++ hadoop/hbase/trunk/bin/HBase.rb Tue Aug 4 05:09:27 2009 @@ -270,6 +270,11 @@ status = @admin.getClusterStatus() if format != nil and format == "detailed" puts("version %s" % [ status.getHBaseVersion() ]) + # Put regions in transition first because usually empty + puts("%d regionsInTransition" % status.getRegionsInTransition().size()) + for k, v in status.getRegionsInTransition() + puts(" %s" % [v]) + end puts("%d live servers" % [ status.getServers() ]) for server in status.getServerInfo() puts(" %s:%d %d" % \ Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ClusterStatus.java URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ClusterStatus.java?rev=800676&r1=800675&r2=800676&view=diff ============================================================================== --- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ClusterStatus.java (original) +++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/ClusterStatus.java Tue Aug 4 05:09:27 2009 @@ -26,6 +26,10 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.NavigableMap; +import java.util.TreeMap; import org.apache.hadoop.io.VersionedWritable; @@ -41,6 +45,7 @@ * <li>The number of requests since last report.</li> * <li>Detailed region server loading and resource usage information, * per server and per region.</li> + * <li>Regions in transition at master</li> * </ul> */ public class ClusterStatus extends VersionedWritable { @@ -49,6 +54,7 @@ private String hbaseVersion; private Collection<HServerInfo> liveServerInfo; private Collection<String> deadServers; + private NavigableMap<String, String> intransition; /** * Constructor, for Writable @@ -191,6 +197,14 @@ this.deadServers = deadServers; } + public Map<String, String> getRegionsInTransition() { + return this.intransition; + } + + public void setRegionsInTransition(final NavigableMap<String, String> m) { + this.intransition = m; + } + // // Writable // @@ -206,6 +220,11 @@ for (String server: deadServers) { out.writeUTF(server); } + out.writeInt(this.intransition.size()); + for (Map.Entry<String, String> e: this.intransition.entrySet()) { + out.writeUTF(e.getKey()); + out.writeUTF(e.getValue()); + } } public void readFields(DataInput in) throws IOException { @@ -223,5 +242,12 @@ for (int i = 0; i < count; i++) { deadServers.add(in.readUTF()); } + count = in.readInt(); + this.intransition = new TreeMap<String, String>(); + for (int i = 0; i < count; i++) { + String key = in.readUTF(); + String value = in.readUTF(); + this.intransition.put(key, value); + } } -} +} \ No newline at end of file
{'source': 'Apache Software Foundation Public Mail Archives'}