[
https://issues.apache.org/jira/browse/HDDS-1193?focusedWorklogId=207442&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-207442
]
ASF GitHub Bot logged work on HDDS-1193:
----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Mar/19 21:35
Start Date: 04/Mar/19 21:35
Worklog Time Spent: 10m
Work Description: bharatviswa504 commented on pull request #534:
HDDS-1193. Refactor ContainerChillModeRule and DatanodeChillMode rule.
URL: https://github.com/apache/hadoop/pull/534#discussion_r262253124
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/chillmode/DataNodeChillModeRule.java
##########
@@ -62,18 +65,37 @@ public double getRegisteredDataNodes() {
@Override
public void process(NodeRegistrationContainerReport reportsProto) {
- if (requiredDns == 0) {
- // No dn check required.
+
+ registeredDnSet.add(reportsProto.getDatanodeDetails().getUuid());
+ registeredDns = registeredDnSet.size();
+
+ }
+
+ @Override
+ public void onMessage(NodeRegistrationContainerReport
+ nodeRegistrationContainerReport, EventPublisher publisher) {
+ // TODO: when we have remove handlers, we can remove getInChillmode check
+ if (chillModeManager.getInChillMode()) {
+ if (validate()) {
Review comment:
Done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 207442)
Time Spent: 50m (was: 40m)
> Refactor ContainerChillModeRule and DatanodeChillMode rule
> ----------------------------------------------------------
>
> Key: HDDS-1193
> URL: https://issues.apache.org/jira/browse/HDDS-1193
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: SCM
> Reporter: Bharat Viswanadham
> Assignee: Bharat Viswanadham
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> The main intention of this Jira is to have all rules look in a similar way of
> handling events.
> In this Jira, did the following changes:
> # Both DatanodeRule and ContainerRuleĀ implements EventHandler and listen for
> NodeRegistrationContainerReport
> # Update ScmChillModeManager not to handle any events. (As each rule need to
> handle an event, and work on that rule)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]