Issue Details (XML | Word | Printable)

Key: HADOOP-3427
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Devaraj Das
Reporter: Devaraj Das
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

In ReduceTask::fetchOutputs, wait for result can be improved slightly

Created: 21/May/08 12:59 PM   Updated: 08/Jul/09 04:52 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 3427.3.patch 2008-06-05 09:59 AM Devaraj Das 17 kB
Text File Licensed for inclusion in ASF works 3427.patch 2008-05-27 05:53 AM Devaraj Das 17 kB
Text File Licensed for inclusion in ASF works 3427.patch 2008-05-22 09:48 AM Devaraj Das 17 kB
Text File Licensed for inclusion in ASF works 3427.patch 2008-05-22 07:02 AM Devaraj Das 17 kB

Hadoop Flags: Reviewed
Release Note: Changed shuffle scheduler policy to wait for notifications from shuffle threads before scheduling more.
Resolution Date: 06/Jun/08 06:27 AM


 Description  « Hide
The getCopyResult call in ReduceTask::fetchOutputs waits for 2 seconds if the results list is empty. This can be improved to wait only when sufficient number of fetches (above a certain threshold) have been scheduled. The threshold should ensure that all the fetcher threads would be busy enough, and in this case, the call to getCopyResult would return only when a fetcher thread wakes it up.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Devaraj Das added a comment - 22/May/08 07:02 AM
This patch mainly introduces this change - Defines a number to indicate when the shuffle scheduler should stop and just wait for notifications from the fetchers. This number is hardcoded to (4 * numCopiers).

Devaraj Das added a comment - 22/May/08 09:48 AM
This fixes a comment in the earlier patch

Devaraj Das added a comment - 23/May/08 01:08 PM
Retrying hudson

Devaraj Das added a comment - 27/May/08 05:53 AM
The last patch had an incorrect wait()

Devaraj Das added a comment - 03/Jun/08 02:07 PM
Trying to run hudson again.

Mahadev konar added a comment - 03/Jun/08 05:05 PM
+1 the patch looks good, though the fetchoutputs() needs refactoring urgently.

Hadoop QA added a comment - 03/Jun/08 11:41 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12382819/3427.patch
against trunk revision 662913.

+1 @author. The patch does not contain any @author tags.

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

-1 patch. The patch command could not apply the patch.

Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2551/console

This message is automatically generated.


Devaraj Das added a comment - 04/Jun/08 02:12 PM
Retrying hudson

Hadoop QA added a comment - 04/Jun/08 06:48 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12382819/3427.patch
against trunk revision 663321.

+1 @author. The patch does not contain any @author tags.

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+1 javadoc. The javadoc tool did not generate any warning messages.

+1 javac. The applied patch does not increase the total number of javac compiler warnings.

-1 findbugs. The patch appears to introduce 1 new Findbugs warnings.

+1 release audit. The applied patch does not increase the total number of release audit warnings.

+1 core tests. The patch passed core unit tests.

+1 contrib tests. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2574/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2574/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2574/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2574/console

This message is automatically generated.


Devaraj Das added a comment - 05/Jun/08 09:58 AM
Cancelling patch due to conflicts with trunk

Devaraj Das added a comment - 05/Jun/08 09:59 AM
This is updated w.r.t the trunk.

Devaraj Das added a comment - 05/Jun/08 10:01 AM
queueing it for hudson. Forgot to thank Amareshwari for helping resolving the conflicts quickly.

Hadoop QA added a comment - 05/Jun/08 12:01 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12383448/3427.3.patch
against trunk revision 663487.

+1 @author. The patch does not contain any @author tags.

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+1 javadoc. The javadoc tool did not generate any warning messages.

+1 javac. The applied patch does not increase the total number of javac compiler warnings.

+1 findbugs. The patch does not introduce any new Findbugs warnings.

+1 release audit. The applied patch does not increase the total number of release audit warnings.

-1 core tests. The patch failed core unit tests.

-1 contrib tests. The patch failed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2587/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2587/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2587/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2587/console

This message is automatically generated.


Devaraj Das added a comment - 06/Jun/08 06:27 AM
I just committed this.