[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989312#comment-14989312
 ] 

ASF subversion and git services commented on CLOUDSTACK-9006:
-------------------------------------------------------------

Commit 5f610415504b9f18f91169761598a1585ce429c7 in cloudstack's branch 
refs/heads/master from [~remibergsma]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=5f61041 ]

Merge pull request #1009 from rags22489664/master

CLOUDSTACK-9006 - ListTemplates API returns result in inconsistent order when 
called concurrentlyThe order of templates returned in the response is based on 
a field called sortkey and by default value for the field is set to 0.

With more than 1000 templates, we tried listing the templates with different 
page sizes concurrently, and we noticed the results being inconsistent.

Thus we added a secondary order by clause to list templates call on 
tempZonePair column to make sure the results are consistent.

The addOrderby method of Filter class was also not appending , if we added more 
orderby clauses.

* pr/1009:
  CLOUDSTACK-9006 - ListTemplates API returns result in inconsistent order when 
called concurrently
  CLOUDSTACK-9006 - ListTemplates API returns result in inconsistent order when 
called concurrently

Signed-off-by: Remi Bergsma <git...@remi.nl>


> ListTemplates API returns result in inconsistent order when called 
> concurrently
> -------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9006
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9006
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API
>            Reporter: Ramamurti Subramanian
>            Assignee: Ramamurti Subramanian
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to