[
https://issues.apache.org/jira/browse/CLOUDSTACK-10132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16249201#comment-16249201
]
ASF GitHub Bot commented on CLOUDSTACK-10132:
---------------------------------------------
rhtyd commented on a change in pull request #2309: CLOUDSTACK-10132: Multiple
Management Servers Support for agents
URL: https://github.com/apache/cloudstack/pull/2309#discussion_r150464767
##########
File path: agent/src/com/cloud/agent/Agent.java
##########
@@ -699,16 +719,97 @@ public void processResponse(final Response response,
final Link link) {
}
}
- public void processReadyCommand(final Command cmd) {
+ /**
+ * Checks if received list is different to actual management server list
(in order and size)
+ * @param actual actual list
+ * @param received received list
+ * @return true if list is updated, false if not
+ */
+ private boolean isReceivedListUpdated(List<String> actual, List<String>
received) {
+ if (actual.size() != received.size()) {
+ return true;
+ }
+ for (int i = 0; i < received.size(); i++) {
Review comment:
We can simply using the previous implementation to simply check if the
existing setting differs in size or `set`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Multiple Management Servers Support for agents
> ----------------------------------------------
>
> Key: CLOUDSTACK-10132
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10132
> Project: CloudStack
> Issue Type: Improvement
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.11.0.0
> Reporter: Nicolas Vazquez
> Assignee: Nicolas Vazquez
>
> Multiple Management Servers Support for agents
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)