Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 107C317C4E for ; Fri, 30 Oct 2015 04:23:28 +0000 (UTC) Received: (qmail 35182 invoked by uid 500); 30 Oct 2015 04:23:27 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 35146 invoked by uid 500); 30 Oct 2015 04:23:27 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 35126 invoked by uid 500); 30 Oct 2015 04:23:27 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 35122 invoked by uid 99); 30 Oct 2015 04:23:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 04:23:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ADF4A2C1F56 for ; Fri, 30 Oct 2015 04:23:27 +0000 (UTC) Date: Fri, 30 Oct 2015 04:23:27 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9006) ListTemplates API returns result in inconsistent order when called concurrently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 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)