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 4AD06200AC8 for ; Tue, 7 Jun 2016 22:04:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4968A160A4F; Tue, 7 Jun 2016 20:04:31 +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 B6D96160968 for ; Tue, 7 Jun 2016 22:04:30 +0200 (CEST) Received: (qmail 11831 invoked by uid 500); 7 Jun 2016 20:04:29 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 11809 invoked by uid 99); 7 Jun 2016 20:04:29 -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; Tue, 07 Jun 2016 20:04:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 89C25DFFAB; Tue, 7 Jun 2016 20:04:29 +0000 (UTC) From: keith-turner To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org References: In-Reply-To: Subject: [GitHub] accumulo pull request #110: ACCUMULO-4328: Run multiple tablet servers per h... Content-Type: text/plain Message-Id: <20160607200429.89C25DFFAB@git1-us-west.apache.org> Date: Tue, 7 Jun 2016 20:04:29 +0000 (UTC) archived-at: Tue, 07 Jun 2016 20:04:31 -0000 Github user keith-turner commented on a diff in the pull request: https://github.com/apache/accumulo/pull/110#discussion_r66142161 --- Diff: assemble/bin/config.sh --- @@ -118,6 +118,20 @@ else export NUMA_CMD="" fi +# NUMA sanity checks +if [[ -z $NUM_TSERVERS ]]; then + echo "NUM_TSERVERS is missing in accumulo-env.sh, please check your configuration." + exit 1 +fi +if [[ $NUM_TSERVERS -eq 1 && -n $TSERVER_NUMA_OPTIONS ]]; then + echo "TSERVER_NUMA_OPTIONS declared when NUM_TSERVERS is 1, use ACCUMULO_NUMACTL_OPTIONS instead" + exit 1 +fi +if [[ $NUM_TSERVERS -gt 1 && ${#TSERVER_NUMA_OPTIONS[*]} -ne $NUM_TSERVERS ]]; then --- End diff -- Could make this sanity check ```bash if [[ $NUM_TSERVERS -gt 1 && ${#TSERVER_NUMA_OPTIONS[*]} -ne $NUM_TSERVERS && ${#TSERVER_NUMA_OPTIONS[*]} -gt 0]]; ``` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---