You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by cristofolini <gi...@git.apache.org> on 2015/10/17 21:52:54 UTC

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

GitHub user cristofolini opened a pull request:

    https://github.com/apache/cloudstack/pull/942

    Removed unused code from the EngineHostDao Implementation 

    After analysing the code within the EngineHostDaoImpl class, we noticed that methods:
    countBy;
    findByGuid;
    findAndUpdateDirectAgentToLoad;
    findAndUpdateApplianceToLoad;
    markHostsAsDisconnected;
    listAllUpAndEnabledNonHAHosts;
    findLostHosts;
    getRunningHostCounts;
    getNextSequence;
    countRoutingHostsByDataCenter;
    updateResourceState;
    findByTypeNameAndZoneId;
    findHypervisorHostInCluster;
    lockOneRandomRow;
    
    And variables:
    status_logger;
    state_logger;
    _resourceStateAttr
    
    Have no usage. Thus, in order to clean up the code, we decided to remove them from EngineHostDaoImpl and its interface (EngineHostDao).
    All of EngineHostDaoImpl's attributes were set to private, given that they are not accessed by any other class.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rafaelweingartner/cloudstack lrg-cs-hackday-011

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/942.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #942
    
----
commit f1ec0c5ad14d81bdebbbfa195fc1c6418c69b675
Author: lucas <lu...@localhost.localdomain>
Date:   2015-10-17T19:33:12Z

    Removed unused code from the EngineHostDao Implementation (EngineHostDaoImpl)

----


---
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.
---

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

Posted by bhaisaab <gi...@git.apache.org>.
Github user bhaisaab commented on the pull request:

    https://github.com/apache/cloudstack/pull/942#issuecomment-161352291
  
    LGTM (only code review)


---
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.
---

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

Posted by remibergsma <gi...@git.apache.org>.
Github user remibergsma commented on the pull request:

    https://github.com/apache/cloudstack/pull/942#issuecomment-161433986
  
    @DaanHoogland That expunge issue is now resolved in the integration tests, my bad :-s


---
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.
---

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

Posted by DaanHoogland <gi...@git.apache.org>.
Github user DaanHoogland commented on the pull request:

    https://github.com/apache/cloudstack/pull/942#issuecomment-158940788
  
    @cristofolini you can force push, more important is that the regression suites are run on it. ping @remibergsma ?


---
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.
---

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

Posted by wido <gi...@git.apache.org>.
Github user wido commented on the pull request:

    https://github.com/apache/cloudstack/pull/942#issuecomment-151547785
  
    Based on the fact that all the code builds and the UnitTests are also running properly I can give this one a LGTM


---
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.
---

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

Posted by DaanHoogland <gi...@git.apache.org>.
Github user DaanHoogland commented on the pull request:

    https://github.com/apache/cloudstack/pull/942#issuecomment-161077181
  
    I had to run one test a couple of times it is bugging us lately:
    
    [942.network.results.txt](https://github.com/apache/cloudstack/files/48984/942.network.results.txt)
    [942.vpc.results.txt](https://github.com/apache/cloudstack/files/48985/942.vpc.results.txt)
    
    ```
    Test destroy(expunge) Virtual Machine ... === TestName: test_09_expunge_vm | Status : SUCCESS ===
    ok
    
    ----------------------------------------------------------------------
    Ran 1 test in 534.295s
    
    OK
    ```
    
    LGTM


---
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.
---

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

Posted by cristofolini <gi...@git.apache.org>.
Github user cristofolini commented on the pull request:

    https://github.com/apache/cloudstack/pull/942#issuecomment-158935886
  
    I've pushed another commit to bring this PR up to date with the latest snapshot but it seems the Travis build had some issues sorting out some dependencies. What would be the best course of action at this point? Is a forced push in order, just to get the build started again, or is there a more "elegant" solution to this? :)


---
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.
---

[GitHub] cloudstack pull request: Removed unused code from the EngineHostDa...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cloudstack/pull/942


---
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.
---