You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Min Chen <mi...@citrix.com> on 2013/03/13 02:08:01 UTC

Review Request: CLOUDSTACK-1656:NicResponses in a UserVmResponse are not preseving the natural order.

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

Review request for cloudstack and Chip Childers.


Description
-------

For a UserVm with multiple Nics, listVMCmd will return this VM with NicResponses in reverse order, not ordered by device_id of Nic table. This patch fixed this issue by using LinkedHashSet instead of HashSet to preserve insertion order.


This addresses bug https://issues.apache.org/jira/browse/CLOUDSTACK-1656.


Diffs
-----

  api/src/org/apache/cloudstack/api/response/DomainRouterResponse.java 274e7a5 
  api/src/org/apache/cloudstack/api/response/SecurityGroupResponse.java 1130ec0 
  api/src/org/apache/cloudstack/api/response/UserVmResponse.java cb2113e 
  api/src/org/apache/cloudstack/api/response/VolumeResponse.java b10da0c 

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


Testing
-------

Tested locally.


Thanks,

Min Chen


Re: Review Request: CLOUDSTACK-1656:NicResponses in a UserVmResponse are not preseving the natural order.

Posted by Chip Childers <ch...@sungard.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9890/#review17781
-----------------------------------------------------------

Ship it!


applied to 4.1.

Thanks!

- Chip Childers


On March 13, 2013, 1:08 a.m., Min Chen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9890/
> -----------------------------------------------------------
> 
> (Updated March 13, 2013, 1:08 a.m.)
> 
> 
> Review request for cloudstack and Chip Childers.
> 
> 
> Description
> -------
> 
> For a UserVm with multiple Nics, listVMCmd will return this VM with NicResponses in reverse order, not ordered by device_id of Nic table. This patch fixed this issue by using LinkedHashSet instead of HashSet to preserve insertion order.
> 
> 
> This addresses bug https://issues.apache.org/jira/browse/CLOUDSTACK-1656.
> 
> 
> Diffs
> -----
> 
>   api/src/org/apache/cloudstack/api/response/DomainRouterResponse.java 274e7a5 
>   api/src/org/apache/cloudstack/api/response/SecurityGroupResponse.java 1130ec0 
>   api/src/org/apache/cloudstack/api/response/UserVmResponse.java cb2113e 
>   api/src/org/apache/cloudstack/api/response/VolumeResponse.java b10da0c 
> 
> Diff: https://reviews.apache.org/r/9890/diff/
> 
> 
> Testing
> -------
> 
> Tested locally.
> 
> 
> Thanks,
> 
> Min Chen
> 
>


Re: Review Request: CLOUDSTACK-1656:NicResponses in a UserVmResponse are not preseving the natural order.

Posted by ASF Subversion and Git Services <as...@urd.zones.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9890/#review17780
-----------------------------------------------------------


Commit 48fdbd4ea850e85aa3a8e7a5a649f3798635e2ec in branch refs/heads/4.1 from Chip Childers <ch...@gmail.com>
[ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=48fdbd4 ]

CLOUDSTACK-1656: NicResponses in a UserVmResponse are not preseving the natural order.


- ASF Subversion and Git Services


On March 13, 2013, 1:08 a.m., Min Chen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9890/
> -----------------------------------------------------------
> 
> (Updated March 13, 2013, 1:08 a.m.)
> 
> 
> Review request for cloudstack and Chip Childers.
> 
> 
> Description
> -------
> 
> For a UserVm with multiple Nics, listVMCmd will return this VM with NicResponses in reverse order, not ordered by device_id of Nic table. This patch fixed this issue by using LinkedHashSet instead of HashSet to preserve insertion order.
> 
> 
> This addresses bug https://issues.apache.org/jira/browse/CLOUDSTACK-1656.
> 
> 
> Diffs
> -----
> 
>   api/src/org/apache/cloudstack/api/response/DomainRouterResponse.java 274e7a5 
>   api/src/org/apache/cloudstack/api/response/SecurityGroupResponse.java 1130ec0 
>   api/src/org/apache/cloudstack/api/response/UserVmResponse.java cb2113e 
>   api/src/org/apache/cloudstack/api/response/VolumeResponse.java b10da0c 
> 
> Diff: https://reviews.apache.org/r/9890/diff/
> 
> 
> Testing
> -------
> 
> Tested locally.
> 
> 
> Thanks,
> 
> Min Chen
> 
>


Re: Review Request: CLOUDSTACK-1656:NicResponses in a UserVmResponse are not preseving the natural order.

Posted by ASF Subversion and Git Services <as...@urd.zones.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9890/#review17808
-----------------------------------------------------------


Commit 05f73d0950d3a12591facce03e43201e2fbbff17 in branch refs/heads/master from Min Chen <mi...@citrix.com>
[ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=05f73d0 ]

CLOUDSTACK-1656: NicResponses in a UserVmResponse are not preseving the natural order.


- ASF Subversion and Git Services


On March 13, 2013, 1:08 a.m., Min Chen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/9890/
> -----------------------------------------------------------
> 
> (Updated March 13, 2013, 1:08 a.m.)
> 
> 
> Review request for cloudstack and Chip Childers.
> 
> 
> Description
> -------
> 
> For a UserVm with multiple Nics, listVMCmd will return this VM with NicResponses in reverse order, not ordered by device_id of Nic table. This patch fixed this issue by using LinkedHashSet instead of HashSet to preserve insertion order.
> 
> 
> This addresses bug https://issues.apache.org/jira/browse/CLOUDSTACK-1656.
> 
> 
> Diffs
> -----
> 
>   api/src/org/apache/cloudstack/api/response/DomainRouterResponse.java 274e7a5 
>   api/src/org/apache/cloudstack/api/response/SecurityGroupResponse.java 1130ec0 
>   api/src/org/apache/cloudstack/api/response/UserVmResponse.java cb2113e 
>   api/src/org/apache/cloudstack/api/response/VolumeResponse.java b10da0c 
> 
> Diff: https://reviews.apache.org/r/9890/diff/
> 
> 
> Testing
> -------
> 
> Tested locally.
> 
> 
> Thanks,
> 
> Min Chen
> 
>