From issues-return-98157-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Wed Aug 28 08:26:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3F6C718065E for ; Wed, 28 Aug 2019 10:26:03 +0200 (CEST) Received: (qmail 27021 invoked by uid 500); 28 Aug 2019 08:26:02 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 26989 invoked by uid 99); 28 Aug 2019 08:26:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2019 08:26:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C3555E30D9 for ; Wed, 28 Aug 2019 08:26:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id A7764780CA3 for ; Wed, 28 Aug 2019 08:26:00 +0000 (UTC) Date: Wed, 28 Aug 2019 08:26:00 +0000 (UTC) From: "Alexey Goncharuk (Jira)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-12113) control.sh terminates silently when JAVA_HOME is not set 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/IGNITE-12113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Goncharuk updated IGNITE-12113: -------------------------------------- Ignite Flags: (was: Release Notes Required) > control.sh terminates silently when JAVA_HOME is not set > -------------------------------------------------------- > > Key: IGNITE-12113 > URL: https://issues.apache.org/jira/browse/IGNITE-12113 > Project: Ignite > Issue Type: Bug > Reporter: Alexey Goncharuk > Assignee: Alexey Goncharuk > Priority: Major > Fix For: 2.8, 2.7.6 > > Attachments: IGNITE-12113_Fix_silent_control_sh_fail_when_JAVA_HOME_is_empty.patch > > > Running control.sh from ignite-2.7.6 release candidate on MacOS with empty JAVA_HOME produces no output - the script terminates without any action. > The reason is the following line in {{bin/control.sh}}: > {code} > javaMajorVersion "${JAVA_HOME}/bin/java" > {code} > Since {{JAVA_HOME}} is empty, the argument passed to the function is invalid and the function terminates the script. I suggest replacing the {{${JAVA_HOME}/bin/java}} with just {{$JAVA}} because it is already determined earlier in the scope. The suggested fix works in my environment for all options of {{JAVA_HOME}} -- This message was sent by Atlassian Jira (v8.3.2#803003)