You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Jothi Padmanabhan (JIRA)" <ji...@apache.org> on 2009/08/31 06:51:32 UTC
[jira] Created: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
---------------------------------------------------------------------------------
Key: HADOOP-6224
URL: https://issues.apache.org/jira/browse/HADOOP-6224
Project: Hadoop Common
Issue Type: Improvement
Components: io
Reporter: Jothi Padmanabhan
Assignee: Jothi Padmanabhan
Fix For: 0.21.0
MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749414#action_12749414 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Common-trunk-Commit #3 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/3/])
. Adds methods to read strings safely, makes the Buffer class in DataOutputBuffer public, and introduces public constructors there. These changes are required for MAPREDUCE-318. Contributed by Jothi Padmanabhan and Arun Murthy.
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Douglas updated HADOOP-6224:
----------------------------------
Description: MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method. (was: MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes. )
Summary: Add a method to WritableUtils performing a bounded read of a String (was: Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318)
Updated summary/description
(committed with the understanding that MAPREDUCE-830 will test this, including negative cases)
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750802#action_12750802 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hdfs-Patch-h5.grid.sp2.yahoo.net #8 (See [http://hudson.zones.apache.org/hudson/job/Hdfs-Patch-h5.grid.sp2.yahoo.net/8/])
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749880#action_12749880 ]
Devaraj Das commented on HADOOP-6224:
-------------------------------------
bq. One minor point: Would it be better readStringSafely move to WritableUtils?
Re-looking at the patch, i think it makes sense. +1
bq. One serious question: I am not sure why we need to open up the internal Buffer class of DataOutputBuffer, or need to support the construction based on an external byte[]. For the least, the ctor should clearly identify the ownership of the byte[]. But based on the implementation of DataOutputBuffer, it seems that the ownership has to be transferred to DataOutputBuffer and the caller of this ctor should not retain the reference to byte[].
HADOOP-6226 was opened to address this. I propose that we actually close that jira, and have the implementation in the mapreduce package as part of MAPREDUCE-318
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750264#action_12750264 ]
Hadoop QA commented on HADOOP-6224:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12418332/hadoop-6224.patch
against trunk revision 810329.
+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 new tests are needed for this patch.
Also please list what manual steps were performed to verify 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-h4.grid.sp2.yahoo.net/5/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/5/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/5/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/5/console
This message is automatically generated.
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750995#action_12750995 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Hdfs-trunk #71 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Hdfs-trunk/71/])
Checking in the updated common jar that has the updates for HADOOP-6226 and .
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749383#action_12749383 ]
Jothi Padmanabhan commented on HADOOP-6224:
-------------------------------------------
bq, Please justify why no new tests are needed for this patch.
This functionality will be comprehensively tested by MAPREDUCE-318
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jothi Padmanabhan updated HADOOP-6224:
--------------------------------------
Status: Patch Available (was: Reopened)
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749473#action_12749473 ]
Jothi Padmanabhan commented on HADOOP-6224:
-------------------------------------------
I ran HDFS and MapRed tests using this jar, they all ran fine except for the known test failures, TestRecoveryManager and TestKillSubProcessesWithLinuxTaskController
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750309#action_12750309 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Common-trunk-Commit #7 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/7/])
. Add a method to WritableUtils supported a bounded read of an
encoded String. Contributed by Jothi Padmanabhan
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750224#action_12750224 ]
Tsz Wo (Nicholas), SZE commented on HADOOP-6224:
------------------------------------------------
> I'd suggest to change the exception argument's message from ...
The variable length indeed is the number of bytes, which could be different from the string size, depending on the encoding. We should make it clear in the exception message.
{code}
+ * @param maxLength the largest acceptable length of string
{code}
Similarly, maxLength is indeed the largest acceptable length of a *encoded* string.
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Konstantin Boudnik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750008#action_12750008 ]
Konstantin Boudnik commented on HADOOP-6224:
--------------------------------------------
- Using class name qualifier
{{+ int length = WritableUtils.readVInt(in);}}
seems to be unnecessary since the method belongs to {{WritableUtils}} now
- I'd suggest to change the exception argument's message from
{noformat}
+ throw new IllegalArgumentException("String size was " + length +
+ ", which is outside of 0.." +
+ maxLength);
{noformat}
to
{noformat}
+ throw new IllegalArgumentException("String size was " + length +
+ ", which is out of 0.." +
+ maxLength + " range.");
{noformat}
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jothi Padmanabhan reopened HADOOP-6224:
---------------------------------------
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750505#action_12750505 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #11 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Hdfs-trunk-Commit/11/])
Checking in the updated common jar that has the updates for HADOOP-6226 and .
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jothi Padmanabhan updated HADOOP-6224:
--------------------------------------
Attachment: hadoop-6224.patch
Patch that moves readStringSafely to WritableUitls and reverts changes to DataOutputBuffer
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749465#action_12749465 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Common-trunk #80 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/80/])
. Adds methods to read strings safely, makes the Buffer class in DataOutputBuffer public, and introduces public constructors there. These changes are required for MAPREDUCE-318. Contributed by Jothi Padmanabhan and Arun Murthy.
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749824#action_12749824 ]
Jothi Padmanabhan commented on HADOOP-6224:
-------------------------------------------
Actually, you are right -- the ownership of the internal buffer gets muddled with this patch.
What we actually need in MAPREDUCE-318 was a way to create and handle streams based on memory buffers. I created HADOOP-6226 to handle this and will revert the changes to DataOutputBuffer in that patch.
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750539#action_12750539 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #12 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/12/])
Checking in the updated common jar that has the updates for HADOOP-6226 and .
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749382#action_12749382 ]
Hadoop QA commented on HADOOP-6224:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12418118/common.patch
against trunk revision 808415.
+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 new tests are needed for this patch.
Also please list what manual steps were performed to verify 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-vesta.apache.org/632/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/632/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/632/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/632/console
This message is automatically generated.
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Douglas updated HADOOP-6224:
----------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
+1
I committed this. Thanks, Jothi!
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750220#action_12750220 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Common-trunk-Commit #5 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk-Commit/5/])
Revert
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750522#action_12750522 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Mapreduce-trunk #70 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk/70/])
Checking in the updated common jar that has the updates for HADOOP-6226 and .
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jothi Padmanabhan updated HADOOP-6224:
--------------------------------------
Attachment: common.patch
Straight Forward Patch
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750390#action_12750390 ]
Hudson commented on HADOOP-6224:
--------------------------------
Integrated in Hadoop-Common-trunk #82 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Common-trunk/82/])
. Add a method to WritableUtils supported a bounded read of an
encoded String. Contributed by Jothi Padmanabhan
Revert
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jothi Padmanabhan updated HADOOP-6224:
--------------------------------------
Attachment: hadoop-6224.patch
Patch incorporating the review comments
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devaraj Das updated HADOOP-6224:
--------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I just committed this. Thanks, Jothi and Arun!
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add some utility methods to Text
and DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Hong Tang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749639#action_12749639 ]
Hong Tang commented on HADOOP-6224:
-----------------------------------
I am actually a bit surprised by the patch.
- One minor point: Would it be better readStringSafely move to WritableUtils?
- One serious question: I am not sure why we need to open up the internal Buffer class of DataOutputBuffer, or need to support the construction based on an external byte[]. For the least, the ctor should clearly identify the ownership of the byte[]. But based on the implementation of DataOutputBuffer, it seems that the ownership has to be transferred to DataOutputBuffer and the caller of this ctor should not retain the reference to byte[].
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Douglas updated HADOOP-6224:
----------------------------------
Status: Open (was: Patch Available)
bq. Patch that moves readStringSafely to WritableUitls and reverts changes to DataOutputBuffer
We shouldn't add layers of patches for discrete issues. I reverted the original patch. A patch adding the new method to WritableUtils makes sense.
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6224) Add a method to WritableUtils
performing a bounded read of a String
Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750316#action_12750316 ]
Chris Douglas commented on HADOOP-6224:
---------------------------------------
Whoops; I meant MAPREDUCE-318 will test this
> Add a method to WritableUtils performing a bounded read of a String
> -------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs to sanity check vint-length-encoded Strings read from a byte stream. It would be appropriate to add this as a general utility method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jothi Padmanabhan updated HADOOP-6224:
--------------------------------------
Status: Patch Available (was: Open)
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch, hadoop-6224.patch, hadoop-6224.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6224) Add some utility methods to Text and
DataOutputBuffer to be used by MAPREDUCE-318
Posted by "Jothi Padmanabhan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jothi Padmanabhan updated HADOOP-6224:
--------------------------------------
Status: Patch Available (was: Open)
> Add some utility methods to Text and DataOutputBuffer to be used by MAPREDUCE-318
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-6224
> URL: https://issues.apache.org/jira/browse/HADOOP-6224
> Project: Hadoop Common
> Issue Type: Improvement
> Components: io
> Reporter: Jothi Padmanabhan
> Assignee: Jothi Padmanabhan
> Fix For: 0.21.0
>
> Attachments: common.patch
>
>
> MAPREDUCE-318 needs some minor extensions to the Text and the DataOutputBuffer classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.