You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/08/05 00:17:27 UTC
[jira] [Created] (HDFS-2226) Clean up counting of operations in
FSEditLogLoader
Clean up counting of operations in FSEditLogLoader
--------------------------------------------------
Key: HDFS-2226
URL: https://issues.apache.org/jira/browse/HDFS-2226
Project: Hadoop HDFS
Issue Type: Improvement
Components: name-node
Affects Versions: 0.23.0
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Priority: Trivial
Fix For: 0.23.0
This is simple cleanup in FSEditLogLoader - rather than having a variable per operation type, we can just use an EnumMap to count how many instances of each opcode we've hit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2226) Clean up counting of operations in
FSEditLogLoader
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079828#comment-13079828 ]
Hudson commented on HDFS-2226:
------------------------------
Integrated in Hadoop-Hdfs-trunk #738 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/738/])
HDFS-2226. Clean up counting of operations in FSEditLogLoader. Contributed by Todd Lipcon.
todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1154098
Files :
* /hadoop/common/trunk/hdfs/CHANGES.txt
* /hadoop/common/trunk/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java
* /hadoop/common/trunk/hdfs/src/java/org/apache/hadoop/hdfs/util/Holder.java
> Clean up counting of operations in FSEditLogLoader
> --------------------------------------------------
>
> Key: HDFS-2226
> URL: https://issues.apache.org/jira/browse/HDFS-2226
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Trivial
> Fix For: 0.23.0
>
> Attachments: hdfs-2226.txt, hdfs-2226.txt
>
>
> This is simple cleanup in FSEditLogLoader - rather than having a variable per operation type, we can just use an EnumMap to count how many instances of each opcode we've hit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2226) Clean up counting of operations in
FSEditLogLoader
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079845#comment-13079845 ]
Hudson commented on HDFS-2226:
------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #812 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/812/])
HDFS-2226. Clean up counting of operations in FSEditLogLoader. Contributed by Todd Lipcon.
todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1154098
Files :
* /hadoop/common/trunk/hdfs/CHANGES.txt
* /hadoop/common/trunk/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java
* /hadoop/common/trunk/hdfs/src/java/org/apache/hadoop/hdfs/util/Holder.java
> Clean up counting of operations in FSEditLogLoader
> --------------------------------------------------
>
> Key: HDFS-2226
> URL: https://issues.apache.org/jira/browse/HDFS-2226
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Trivial
> Fix For: 0.23.0
>
> Attachments: hdfs-2226.txt, hdfs-2226.txt
>
>
> This is simple cleanup in FSEditLogLoader - rather than having a variable per operation type, we can just use an EnumMap to count how many instances of each opcode we've hit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-2226) Clean up counting of operations in
FSEditLogLoader
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon updated HDFS-2226:
------------------------------
Attachment: hdfs-2226.txt
Sorry, missed a file in previous upload
> Clean up counting of operations in FSEditLogLoader
> --------------------------------------------------
>
> Key: HDFS-2226
> URL: https://issues.apache.org/jira/browse/HDFS-2226
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Trivial
> Fix For: 0.23.0
>
> Attachments: hdfs-2226.txt, hdfs-2226.txt
>
>
> This is simple cleanup in FSEditLogLoader - rather than having a variable per operation type, we can just use an EnumMap to count how many instances of each opcode we've hit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2226) Clean up counting of operations in
FSEditLogLoader
Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079675#comment-13079675 ]
Aaron T. Myers commented on HDFS-2226:
--------------------------------------
+1, patch looks good to me.
> Clean up counting of operations in FSEditLogLoader
> --------------------------------------------------
>
> Key: HDFS-2226
> URL: https://issues.apache.org/jira/browse/HDFS-2226
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Trivial
> Fix For: 0.23.0
>
> Attachments: hdfs-2226.txt, hdfs-2226.txt
>
>
> This is simple cleanup in FSEditLogLoader - rather than having a variable per operation type, we can just use an EnumMap to count how many instances of each opcode we've hit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (HDFS-2226) Clean up counting of operations in
FSEditLogLoader
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon resolved HDFS-2226.
-------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
Ran test-patch and it checked out aside from lack of tests (justified above). Committed to trunk. Thanks for reviewing, Aaron.
> Clean up counting of operations in FSEditLogLoader
> --------------------------------------------------
>
> Key: HDFS-2226
> URL: https://issues.apache.org/jira/browse/HDFS-2226
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Trivial
> Fix For: 0.23.0
>
> Attachments: hdfs-2226.txt, hdfs-2226.txt
>
>
> This is simple cleanup in FSEditLogLoader - rather than having a variable per operation type, we can just use an EnumMap to count how many instances of each opcode we've hit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-2226) Clean up counting of operations in
FSEditLogLoader
Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Lipcon updated HDFS-2226:
------------------------------
Attachment: hdfs-2226.txt
Simple patch attached.
It doesn't include new tests since it's just a change to how the debug log output is generated. I manually verified that the output looks reasonable.
> Clean up counting of operations in FSEditLogLoader
> --------------------------------------------------
>
> Key: HDFS-2226
> URL: https://issues.apache.org/jira/browse/HDFS-2226
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Trivial
> Fix For: 0.23.0
>
> Attachments: hdfs-2226.txt, hdfs-2226.txt
>
>
> This is simple cleanup in FSEditLogLoader - rather than having a variable per operation type, we can just use an EnumMap to count how many instances of each opcode we've hit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira