HBASE-1739 hbase-1683 broke splitting; only split three logs no matter what N was

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@800617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-08-03 23:18:14 +00:00
parent 9246691f44
commit 557bd85bc4
2 changed files with 3 additions and 1 deletions

View File

@ -313,6 +313,8 @@ Release 0.20.0 - Unreleased
HBASE-1604 HBaseClient.getConnection() may return a broken connection HBASE-1604 HBaseClient.getConnection() may return a broken connection
without throwing an exception (Eugene Kirpichov via Stack) without throwing an exception (Eugene Kirpichov via Stack)
HBASE-1737 Regions unbalanced when adding new node HBASE-1737 Regions unbalanced when adding new node
HBASE-1739 hbase-1683 broke splitting; only split three logs no matter
what N was
IMPROVEMENTS IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -860,7 +860,7 @@ public class HLog implements HConstants, Syncable {
// Stop at logfiles.length when it's the last step // Stop at logfiles.length when it's the last step
int endIndex = step == maxSteps - 1? logfiles.length: int endIndex = step == maxSteps - 1? logfiles.length:
step * concurrentLogReads + concurrentLogReads; 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 // Check for possibly empty file. With appends, currently Hadoop
// reports a zero length even if the file has been sync'd. Revisit if // reports a zero length even if the file has been sync'd. Revisit if
// HADOOP-4751 is committed. // HADOOP-4751 is committed.