Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 96162200C2D for ; Sat, 18 Feb 2017 03:02:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 91529160B6D; Sat, 18 Feb 2017 02:02:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D83BA160B57 for ; Sat, 18 Feb 2017 03:02:51 +0100 (CET) Received: (qmail 17564 invoked by uid 500); 18 Feb 2017 02:02:51 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 17555 invoked by uid 99); 18 Feb 2017 02:02:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Feb 2017 02:02:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B1DCCC0FFF for ; Sat, 18 Feb 2017 02:02:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BurPXCLULd39 for ; Sat, 18 Feb 2017 02:02:50 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 88CFB5F3FF for ; Sat, 18 Feb 2017 02:02:49 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1ADD1E0819 for ; Sat, 18 Feb 2017 02:02:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6486024123 for ; Sat, 18 Feb 2017 02:02:44 +0000 (UTC) Date: Sat, 18 Feb 2017 02:02:44 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5259) Allow listing a user-defined number of profiles MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 18 Feb 2017 02:02:52 -0000 [ https://issues.apache.org/jira/browse/DRILL-5259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15872888#comment-15872888 ] ASF GitHub Bot commented on DRILL-5259: --------------------------------------- Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/751#discussion_r101880246 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/ProfileResources.java --- @@ -220,7 +225,21 @@ public QProfiles getProfilesJSON() { final List finishedQueries = Lists.newArrayList(); - final Iterator> range = completed.getRange(0, MAX_PROFILES); + //Defining #Profiles to load + int maxProfilesToLoad; + if (MaxProfiles == null) { + MaxProfiles = work.getContext().getConfig().getInt(ExecConstants.HTTP_MAX_PROFILES); --- End diff -- Just {code} int maxProfilesToLoad = work.getContext()...; {code} > Allow listing a user-defined number of profiles > ------------------------------------------------ > > Key: DRILL-5259 > URL: https://issues.apache.org/jira/browse/DRILL-5259 > Project: Apache Drill > Issue Type: Improvement > Components: Web Server > Affects Versions: 1.9.0 > Reporter: Kunal Khatua > Assignee: Kunal Khatua > Priority: Trivial > Fix For: 1.10.0 > > > Currently, the web UI only lists the last 100 profiles. > This count is currently hard coded. The proposed change would be to create an option in drill-override.conf to provide a flexible default value, and also an option within the UI (via optional parameter in the path). -- This message was sent by Atlassian JIRA (v6.3.15#6346)