HBASE-525 HTable.getRow(Text) does not work

-Fixed broken set initialization in HRegionServer

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@638150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bryan Duxbury 2008-03-18 00:13:23 +00:00
parent 37cf8a8cfb
commit f8fc7bdd77
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,7 @@ Hbase Change Log
startcode of -1 in .META. startcode of -1 in .META.
HBASE-516 HStoreFile.finalKey does not update the final key if it is not HBASE-516 HStoreFile.finalKey does not update the final key if it is not
the top region of a split region the top region of a split region
HBASE-525 HTable.getRow(Text) does not work (Clint Morgan via Bryan Duxbury)
IMPROVEMENTS IMPROVEMENTS
HBASE-415 Rewrite leases to use DelayedBlockingQueue instead of polling HBASE-415 Rewrite leases to use DelayedBlockingQueue instead of polling

View File

@ -965,8 +965,9 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
requestCount.incrementAndGet(); requestCount.incrementAndGet();
try { try {
// convert the columns array into a set so it's easy to check later. // convert the columns array into a set so it's easy to check later.
Set<Text> columnSet = new HashSet<Text>(); Set<Text> columnSet = null;
if (columns != null) { if (columns != null) {
columnSet = new HashSet<Text>();
columnSet.addAll(Arrays.asList(columns)); columnSet.addAll(Arrays.asList(columns));
} }