You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Wilder Rodrigues <wr...@schubergphilis.com> on 2014/02/15 13:42:04 UTC

Review Request 18165: FindBugs findings: fixing equals() methods in 2 classes; commenting out dead variable in 1 class; adding 5 tests to cover the changes in the equals() methods.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18165/
-----------------------------------------------------------

Review request for cloudstack, daan Hoogland and Hugo Trippaers.


Repository: cloudstack-git


Description
-------

Fixed 2 equals() method implementations
Added synchronized keyword to a get() method, because the set() is already synchronized
Commented out a dead variable


Diffs
-----

  engine/orchestration/src/com/cloud/agent/manager/AgentAttache.java 3ebaf4a 
  engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentAttache.java 23c3f76 
  engine/orchestration/src/com/cloud/agent/manager/ConnectedAgentAttache.java 00d54bb 
  engine/orchestration/src/org/apache/cloudstack/engine/service/api/ProvisioningServiceImpl.java 86eab58 
  engine/orchestration/test/com/cloud/agent/manager/ConnectedAgentAttacheTest.java PRE-CREATION 

Diff: https://reviews.apache.org/r/18165/diff/


Testing
-------

Check style successfully executed;
Build successfully executed
5 unit tests added in order to cover the changes.


Thanks,

Wilder Rodrigues


Re: Review Request 18165: FindBugs findings: fixing equals() methods in 2 classes; commenting out dead variable in 1 class; adding 5 tests to cover the changes in the equals() methods.

Posted by Hugo Trippaers <ht...@schubergphilis.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18165/#review35396
-----------------------------------------------------------

Ship it!


commit eee4fb50c8e4633a17050cb03485c9a81292bd2d
Author: wrodrigues <wr...@schubergphilis.com>
Date:   Sat Feb 15 13:23:35 2014 +0100

    FindBugs findings: fixing equals() methods in 2 classes; commenting out dead variable in 1 class; adding 5 tests to cover the changes in the equals() methods.
    
    Signed-off-by: Hugo Trippaers <ht...@schubergphilis.com>


- Hugo Trippaers


On Feb. 15, 2014, 12:42 p.m., Wilder Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/18165/
> -----------------------------------------------------------
> 
> (Updated Feb. 15, 2014, 12:42 p.m.)
> 
> 
> Review request for cloudstack, daan Hoogland and Hugo Trippaers.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> Fixed 2 equals() method implementations
> Added synchronized keyword to a get() method, because the set() is already synchronized
> Commented out a dead variable
> 
> 
> Diffs
> -----
> 
>   engine/orchestration/src/com/cloud/agent/manager/AgentAttache.java 3ebaf4a 
>   engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentAttache.java 23c3f76 
>   engine/orchestration/src/com/cloud/agent/manager/ConnectedAgentAttache.java 00d54bb 
>   engine/orchestration/src/org/apache/cloudstack/engine/service/api/ProvisioningServiceImpl.java 86eab58 
>   engine/orchestration/test/com/cloud/agent/manager/ConnectedAgentAttacheTest.java PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/18165/diff/
> 
> 
> Testing
> -------
> 
> Check style successfully executed;
> Build successfully executed
> 5 unit tests added in order to cover the changes.
> 
> 
> Thanks,
> 
> Wilder Rodrigues
> 
>


Re: Review Request 18165: FindBugs findings: fixing equals() methods in 2 classes; commenting out dead variable in 1 class; adding 5 tests to cover the changes in the equals() methods.

Posted by Wilder Rodrigues <wr...@schubergphilis.com>.

> On Feb. 15, 2014, 12:53 p.m., Hugo Trippaers wrote:
> > Heya, did you test this with devcloud as well?
> 
> Wilder Rodrigues wrote:
>     Unfortunately not. I got the link error when trying it in my environment over my network. Will try to refresh the mac addresses on the net adapters in virtualbox VMs and see if it works. usually I have this link problem when the 2 machines (management server and devcloud) are executed from home.
> 
> Wilder Rodrigues wrote:
>     Got environment working and now downloading a new systemvm form buildacloud. Will update it later and test zone creation/instance/ACL. Will let you know once it's done so you can review it. :)

Tested with VirtualBox 4.3.6 + Debian 7 + XenServer 6.2 + SBP BetaCloud


- Wilder


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18165/#review34568
-----------------------------------------------------------


On Feb. 15, 2014, 12:42 p.m., Wilder Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/18165/
> -----------------------------------------------------------
> 
> (Updated Feb. 15, 2014, 12:42 p.m.)
> 
> 
> Review request for cloudstack, daan Hoogland and Hugo Trippaers.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> Fixed 2 equals() method implementations
> Added synchronized keyword to a get() method, because the set() is already synchronized
> Commented out a dead variable
> 
> 
> Diffs
> -----
> 
>   engine/orchestration/src/com/cloud/agent/manager/AgentAttache.java 3ebaf4a 
>   engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentAttache.java 23c3f76 
>   engine/orchestration/src/com/cloud/agent/manager/ConnectedAgentAttache.java 00d54bb 
>   engine/orchestration/src/org/apache/cloudstack/engine/service/api/ProvisioningServiceImpl.java 86eab58 
>   engine/orchestration/test/com/cloud/agent/manager/ConnectedAgentAttacheTest.java PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/18165/diff/
> 
> 
> Testing
> -------
> 
> Check style successfully executed;
> Build successfully executed
> 5 unit tests added in order to cover the changes.
> 
> 
> Thanks,
> 
> Wilder Rodrigues
> 
>


Re: Review Request 18165: FindBugs findings: fixing equals() methods in 2 classes; commenting out dead variable in 1 class; adding 5 tests to cover the changes in the equals() methods.

Posted by Wilder Rodrigues <wr...@schubergphilis.com>.

> On Feb. 15, 2014, 12:53 p.m., Hugo Trippaers wrote:
> > Heya, did you test this with devcloud as well?
> 
> Wilder Rodrigues wrote:
>     Unfortunately not. I got the link error when trying it in my environment over my network. Will try to refresh the mac addresses on the net adapters in virtualbox VMs and see if it works. usually I have this link problem when the 2 machines (management server and devcloud) are executed from home.

Got environment working and now downloading a new systemvm form buildacloud. Will update it later and test zone creation/instance/ACL. Will let you know once it's done so you can review it. :)


- Wilder


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18165/#review34568
-----------------------------------------------------------


On Feb. 15, 2014, 12:42 p.m., Wilder Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/18165/
> -----------------------------------------------------------
> 
> (Updated Feb. 15, 2014, 12:42 p.m.)
> 
> 
> Review request for cloudstack, daan Hoogland and Hugo Trippaers.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> Fixed 2 equals() method implementations
> Added synchronized keyword to a get() method, because the set() is already synchronized
> Commented out a dead variable
> 
> 
> Diffs
> -----
> 
>   engine/orchestration/src/com/cloud/agent/manager/AgentAttache.java 3ebaf4a 
>   engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentAttache.java 23c3f76 
>   engine/orchestration/src/com/cloud/agent/manager/ConnectedAgentAttache.java 00d54bb 
>   engine/orchestration/src/org/apache/cloudstack/engine/service/api/ProvisioningServiceImpl.java 86eab58 
>   engine/orchestration/test/com/cloud/agent/manager/ConnectedAgentAttacheTest.java PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/18165/diff/
> 
> 
> Testing
> -------
> 
> Check style successfully executed;
> Build successfully executed
> 5 unit tests added in order to cover the changes.
> 
> 
> Thanks,
> 
> Wilder Rodrigues
> 
>


Re: Review Request 18165: FindBugs findings: fixing equals() methods in 2 classes; commenting out dead variable in 1 class; adding 5 tests to cover the changes in the equals() methods.

Posted by Wilder Rodrigues <wr...@schubergphilis.com>.

> On Feb. 15, 2014, 12:53 p.m., Hugo Trippaers wrote:
> > Heya, did you test this with devcloud as well?

Unfortunately not. I got the link error when trying it in my environment over my network. Will try to refresh the mac addresses on the net adapters in virtualbox VMs and see if it works. usually I have this link problem when the 2 machines (management server and devcloud) are executed from home.


- Wilder


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18165/#review34568
-----------------------------------------------------------


On Feb. 15, 2014, 12:42 p.m., Wilder Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/18165/
> -----------------------------------------------------------
> 
> (Updated Feb. 15, 2014, 12:42 p.m.)
> 
> 
> Review request for cloudstack, daan Hoogland and Hugo Trippaers.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> Fixed 2 equals() method implementations
> Added synchronized keyword to a get() method, because the set() is already synchronized
> Commented out a dead variable
> 
> 
> Diffs
> -----
> 
>   engine/orchestration/src/com/cloud/agent/manager/AgentAttache.java 3ebaf4a 
>   engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentAttache.java 23c3f76 
>   engine/orchestration/src/com/cloud/agent/manager/ConnectedAgentAttache.java 00d54bb 
>   engine/orchestration/src/org/apache/cloudstack/engine/service/api/ProvisioningServiceImpl.java 86eab58 
>   engine/orchestration/test/com/cloud/agent/manager/ConnectedAgentAttacheTest.java PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/18165/diff/
> 
> 
> Testing
> -------
> 
> Check style successfully executed;
> Build successfully executed
> 5 unit tests added in order to cover the changes.
> 
> 
> Thanks,
> 
> Wilder Rodrigues
> 
>


Re: Review Request 18165: FindBugs findings: fixing equals() methods in 2 classes; commenting out dead variable in 1 class; adding 5 tests to cover the changes in the equals() methods.

Posted by Hugo Trippaers <ht...@schubergphilis.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/18165/#review34568
-----------------------------------------------------------


Heya, did you test this with devcloud as well? 

- Hugo Trippaers


On Feb. 15, 2014, 12:42 p.m., Wilder Rodrigues wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/18165/
> -----------------------------------------------------------
> 
> (Updated Feb. 15, 2014, 12:42 p.m.)
> 
> 
> Review request for cloudstack, daan Hoogland and Hugo Trippaers.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> Fixed 2 equals() method implementations
> Added synchronized keyword to a get() method, because the set() is already synchronized
> Commented out a dead variable
> 
> 
> Diffs
> -----
> 
>   engine/orchestration/src/com/cloud/agent/manager/AgentAttache.java 3ebaf4a 
>   engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentAttache.java 23c3f76 
>   engine/orchestration/src/com/cloud/agent/manager/ConnectedAgentAttache.java 00d54bb 
>   engine/orchestration/src/org/apache/cloudstack/engine/service/api/ProvisioningServiceImpl.java 86eab58 
>   engine/orchestration/test/com/cloud/agent/manager/ConnectedAgentAttacheTest.java PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/18165/diff/
> 
> 
> Testing
> -------
> 
> Check style successfully executed;
> Build successfully executed
> 5 unit tests added in order to cover the changes.
> 
> 
> Thanks,
> 
> Wilder Rodrigues
> 
>