Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C13718B40 for ; Sat, 30 May 2015 21:23:21 +0000 (UTC) Received: (qmail 54530 invoked by uid 500); 30 May 2015 21:23:21 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 54491 invoked by uid 500); 30 May 2015 21:23:21 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 54480 invoked by uid 99); 30 May 2015 21:23:21 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2015 21:23:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F1E54181A68 for ; Sat, 30 May 2015 21:23:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.771 X-Spam-Level: * X-Spam-Status: No, score=1.771 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id nNRxbwDAAxqM for ; Sat, 30 May 2015 21:23:18 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 1F83A4540D for ; Sat, 30 May 2015 21:23:18 +0000 (UTC) Received: (qmail 54281 invoked by uid 99); 30 May 2015 21:23:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 May 2015 21:23:17 +0000 Date: Sat, 30 May 2015 21:23:17 +0000 (UTC) From: "Balu Vellanki (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FALCON-1244) listInstances : numResults query param is ignored when start and end params are not specified. 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/FALCON-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Balu Vellanki updated FALCON-1244: ---------------------------------- Description: Reported by [~pisaychuk]. We should use numResults if want to get number of instances different from default (10). But we can't use it without start/end params. For example. If I have a process {code} 3 FIFO minutes(5) UTC {code} with 12 instances {code} 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@1 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@2 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@3 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@4 status is READY on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@5 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@6 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@7 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@8 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@9 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@10 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@11 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@12 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ {code} and I try to get all instances with request http://192.168.56.111:15000/api/instance/list/process/ListProcessInstancesTest--agregator-coord16-29e9fec6?numResults=12&user.name=fertrist. But it returns me only 10 most recent instances, as if it were default numResults. To get all instances I have to use http://192.168.56.111:15000/api/instance/list/process/ListProcessInstancesTest--agregator-coord16-29e9fec6?start=2015-05-18T15:39Z&end=2015-05-18T16:39Z&numResults=12&user.name=fertrist. was: Reported by [~pisaychuk]. We should use numResults if want to get number of instances different from default (10). But we can't use it without start/end params. For example. If I have a process {code} 3 FIFO minutes(5) UTC {code} with 12 instances {code} 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@1 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@2 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@3 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@4 status is READY on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@5 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@6 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@7 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@8 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@9 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@10 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@11 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@12 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ {code} and I try to get all instances with request http://192.168.56.111:15000/api/instance/list/process/ListProcessInstancesTest--agregator-coord16-29e9fec6?numResults=12&user.name=fertrist. But it returns me only 10 most recent instances, as if it were default numResults. To get all instances I have to use http://192.168.56.111:15000/api/instance/list/process/ListProcessInstancesTest--agregator-coord16-29e9fec6?start=2015-05-18T15:39Z&end=2015-05-18T16:39Z&numResults=12&user.name=fertrist. Is it intended? If yes, then we need to update a documentation. Failing tests: ListProcessInstancesTest. > listInstances : numResults query param is ignored when start and end params are not specified. > ----------------------------------------------------------------------------------------------- > > Key: FALCON-1244 > URL: https://issues.apache.org/jira/browse/FALCON-1244 > Project: Falcon > Issue Type: Bug > Components: webapp > Reporter: Balu Vellanki > Assignee: Balu Vellanki > Priority: Critical > Fix For: 0.7 > > > Reported by [~pisaychuk]. > We should use numResults if want to get number of instances different from default (10). But we can't use it without start/end params. For example. > If I have a process > {code} > > > > > > > 3 > FIFO > minutes(5) > UTC > > > > > > > > > > > > > > > > {code} > with 12 instances > {code} > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@1 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@2 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@3 status is RUNNING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@4 status is READY on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@5 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@6 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@7 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@8 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@9 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@10 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@11 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > 15/05/18 19:35:30 INFO util.InstanceUtil: Coordinator Action 0001378-150420123757231-oozie-oozi-C@12 status is WAITING on oozie http://colo-1.example.com:11000/oozie/ > {code} > and I try to get all instances with request > http://192.168.56.111:15000/api/instance/list/process/ListProcessInstancesTest--agregator-coord16-29e9fec6?numResults=12&user.name=fertrist. But it returns me only 10 most recent instances, as if it were default numResults. > To get all instances I have to use > http://192.168.56.111:15000/api/instance/list/process/ListProcessInstancesTest--agregator-coord16-29e9fec6?start=2015-05-18T15:39Z&end=2015-05-18T16:39Z&numResults=12&user.name=fertrist. -- This message was sent by Atlassian JIRA (v6.3.4#6332)