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 8CE92200CCE for ; Sun, 9 Jul 2017 07:09:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8B42016B7B3; Sun, 9 Jul 2017 05:09:00 +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 D10A716B7AF for ; Sun, 9 Jul 2017 07:08:59 +0200 (CEST) Received: (qmail 6050 invoked by uid 500); 9 Jul 2017 05:08:59 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 6041 invoked by uid 99); 9 Jul 2017 05:08:58 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jul 2017 05:08:58 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 48A99E1153; Sun, 9 Jul 2017 05:08:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: machristie@apache.org To: commits@airavata.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: airavata git commit: AIRAVATA-2405 getUsersWithRole test Date: Sun, 9 Jul 2017 05:08:58 +0000 (UTC) archived-at: Sun, 09 Jul 2017 05:09:00 -0000 Repository: airavata Updated Branches: refs/heads/develop 226cd3fb7 -> 86713eeca AIRAVATA-2405 getUsersWithRole test Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/86713eec Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/86713eec Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/86713eec Branch: refs/heads/develop Commit: 86713eecadd740de8c28a14923f77763b00fc9a5 Parents: 226cd3f Author: Marcus Christie Authored: Sun Jul 9 00:08:52 2017 -0500 Committer: Marcus Christie Committed: Sun Jul 9 00:08:52 2017 -0500 ---------------------------------------------------------------------- .../admin/services/core/impl/TenantManagementKeycloakImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/86713eec/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java ---------------------------------------------------------------------- diff --git a/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java b/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java index fc6af61..97039ed 100644 --- a/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java +++ b/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java @@ -540,7 +540,7 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface { null, null, null, - 0, 10000); + 0, 100); logger.debug("getUsersWithRole: all users count=" + allUsers.size()); allUsers.sort((a, b) -> a.getCreatedTimestamp() - b.getCreatedTimestamp() > 0 ? -1 : 1); // The 100 most recently created users @@ -568,7 +568,9 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface { throw exception; } finally { if (client != null) { + logger.debug("getUsersWithRole: closing client..."); client.close(); + logger.debug("getUsersWithRole: client closed"); } } }