Issue Details (XML | Word | Printable)

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

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

SequenceFile.Sorter.MergeQueue.next does an unnecessary copy of the key

Created: 08/May/08 07:12 AM   Updated: 22/Aug/08 07:50 PM
Component/s: io
Affects Version/s: 0.17.0
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 3365.patch 2008-05-13 08:37 AM Devaraj Das 3 kB
Text File Licensed for inclusion in ASF works 3365.patch 2008-05-08 02:04 PM Devaraj Das 3 kB
Text File Licensed for inclusion in ASF works 3365.patch 2008-05-08 11:46 AM Devaraj Das 3 kB
Issue Links:
dependent
 

Hadoop Flags: Reviewed
Resolution Date: 13/May/08 07:41 PM


 Description  « Hide
SequenceFile.Sorter.MergeQueue.next does an unnecessary copy of the rawKey. We should remove that copy, and move code which adjusts the heap from next() to getKey(), which should then just return ms.getKey(), thereby eliminating the extra copy.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Devaraj Das added a comment - 08/May/08 11:46 AM
Attaching a patch while i am doing some testing.. This patch modifies the next() method to not do copying from the SegmentDescriptor.

Devaraj Das added a comment - 08/May/08 02:04 PM
Tested patch

Hadoop QA added a comment - 09/May/08 12:06 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12381671/3365.patch
against trunk revision 654315.

+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 passed core unit tests.

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

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

This message is automatically generated.


Devaraj Das added a comment - 13/May/08 08:37 AM
This addresses Chris's comment that minSegment should be set to null in MergeQueue.close. Also removes one unnecessary minSegment = null assignment.

Devaraj Das added a comment - 13/May/08 08:38 AM
Pushing the last patch through hudson

Hadoop QA added a comment - 13/May/08 11:27 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12381935/3365.patch
against trunk revision 655674.

+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 passed core unit tests.

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

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

This message is automatically generated.


Devaraj Das added a comment - 13/May/08 07:41 PM
I just committed this.

Hudson added a comment - 14/May/08 12:43 PM