|
[
Permlink
| « Hide
]
Hairong Kuang added a comment - 16/Oct/07 10:29 PM
The old patch was outdated. So here is a new one.
This patch makes changes to the implementation of I/O throttling as suggested by Raghu. I also added a junit test for testing Throttling.
Pretty much looks fine.
Thanks Raghu!
1. Throttling test is in TestBlockReplacement. 2. Regd throttler, yes I totally agree with you. I will make ThrottlerBase to be package private and it would be nice if a throttler can be shared by mutlple threads. Let's see how this could be done. 3. For comment 3, your change is not exactly the same as the logic in the current code. If you'd merge two checks into one, I will change the code to be if(priSet.contains(delNodeHint) || ( addedNode != null && !priSet.contains(addedNode)) { cur = delNodeHint;} 4. For addBlock, the current code may have null locations in machineSet which cause serialization error, so I use an ArrayList first and then convert it into an array when constructing the result. > 3. For comment 3, your change is not exactly the same as the logic in the current code. If you'd merge two checks into one, I will change the code to be [...]
I see now. I misread the code. No need to merge the conditions. thanks. Thanks Raghu for providing an implementation of a Throttler that can be shared by mutiple threads. This new patch incorporates his algorithm and a couple of minor changes.
There is a warning in eclipse for bandwidthPerSec member of Throttler since it not read anywhere.
This patch removes field bandwidthPerSec in Throttler.
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12368262/replace5.patch against trunk revision r588083. @author +1. The patch does not contain any @author tags. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new compiler warnings. findbugs -1. The patch appears to introduce 1 new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/981/testReport/ This message is automatically generated. -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12368396/replace6.patch against trunk revision r588341. @author +1. The patch does not contain any @author tags. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new compiler warnings. findbugs +1. The patch does not introduce any new Findbugs warnings. core tests -1. The patch failed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/998/testReport/ This message is automatically generated. +1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12368396/replace6.patch against trunk revision r590273. @author +1. The patch does not contain any @author tags. javadoc +1. The javadoc tool did not generate any warning messages. javac +1. The applied patch does not generate any new compiler warnings. findbugs +1. The patch does not introduce any new Findbugs warnings. core tests +1. The patch passed core unit tests. contrib tests +1. The patch passed contrib unit tests. Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1046/testReport/ This message is automatically generated. I just committed this. Thanks Hairong!
Integrated in Hadoop-Nightly #290 (See http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/290/
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||