[
https://issues.apache.org/jira/browse/CLOUDSTACK-9006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981840#comment-14981840
]
ASF GitHub Bot commented on CLOUDSTACK-9006:
--------------------------------------------
GitHub user rags22489664 opened a pull request:
https://github.com/apache/cloudstack/pull/1009
CLOUDSTACK-9006 - ListTemplates API returns result in inconsistent order
when called concurrently
The 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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rags22489664/cloudstack master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1009.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 #1009
----
commit c90723f491c8da4cb9873a896a2410f60b358193
Author: ramamurtis <[email protected]>
Date: 2015-10-30T04:14:59Z
CLOUDSTACK-9006 - ListTemplates API returns result in inconsistent order
when called concurrently
----
> 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)