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 "Xiaoyu Yao (JIRA)" <ji...@apache.org> on 2018/07/05 18:27:00 UTC
[jira] [Comment Edited] (HDDS-217) Move all SCMEvents to a package
[ https://issues.apache.org/jira/browse/HDDS-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533996#comment-16533996 ]
Xiaoyu Yao edited comment on HDDS-217 at 7/5/18 6:26 PM:
---------------------------------------------------------
Thanks [~anu] for the patch. The change looks good to me. I just have two minor comments
SCMEvents.java
Line 71: should we rename CLOSE_CONTAINER_EVENT to CLOSE_CONTAINER to be consistent with other events defined in SCMEvents class?
TestCloseContainerEventHandler.java
Line 56: suggest using RandmomUtil.nextInt to avoid the hassle of maintaining member variable rand.
[~nandakumar131], "patch -p1 " works perfectly fine with this patch though "git apply patch" does not work sometimes.
was (Author: xyao):
Thanks [~anu] for the patch. The change looks good to me. I just have two minor comments
SCMEvents.java
Line 71: should we rename CLOSE_CONTAINER_EVENT to CLOSE_CONTAINER to be consistent with other events defined in SCMEvents class?
TestCloseContainerEventHandler.java
Line 56: suggest using RandmomUtil.nextInt to avoid the hassle of maintaining member variable rand.
> Move all SCMEvents to a package
> -------------------------------
>
> Key: HDDS-217
> URL: https://issues.apache.org/jira/browse/HDDS-217
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Components: SCM
> Reporter: Anu Engineer
> Assignee: Anu Engineer
> Priority: Major
> Fix For: 0.2.1
>
> Attachments: HDDS-217.001.patch
>
>
> Moving all SCM internal events to a single package; then it is easy to write event producers and consumers easily. Also, we have a single location for all the events. This patch is a simple refactoring patch.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org