Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E98318BA2 for ; Thu, 14 Jan 2016 14:24:14 +0000 (UTC) Received: (qmail 76685 invoked by uid 500); 14 Jan 2016 14:24:13 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 76626 invoked by uid 500); 14 Jan 2016 14:24:13 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 76614 invoked by uid 99); 14 Jan 2016 14:24:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jan 2016 14:24:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3473FE3834; Thu, 14 Jan 2016 14:24:13 +0000 (UTC) From: rafaelweingartner To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Add Health Check Command to NSX plugin Content-Type: text/plain Message-Id: <20160114142413.3473FE3834@git1-us-west.apache.org> Date: Thu, 14 Jan 2016 14:24:13 +0000 (UTC) Github user rafaelweingartner commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1293#discussion_r49730831 --- Diff: engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java --- @@ -821,9 +819,9 @@ protected boolean handleDisconnectWithInvestigation(final AgentAttache attache, try { nextStatus = host.getStatus().getNextStatus(event); } catch (final NoTransitionException ne) { - /* Agent may be currently in status of Down, Alert, Removed, namely there is no next status for some events. - * Why this can happen? Ask God not me. I hate there was no piece of comment for code handling race condition. - * God knew what race condition the code dealt with! + /* --- End diff -- I understand your point. However, you have not just formatted the class you added some extra comments. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---