karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kleber Ayala (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-6171) batch command line mode does not work
Date Fri, 08 Mar 2019 01:38:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16787306#comment-16787306
] 

Kleber Ayala edited comment on KARAF-6171 at 3/8/19 1:37 AM:
-------------------------------------------------------------

This error also affects docker images using client command to install features,
we have docker images on production deployed with a jenkins pipeline.

The problem is on *org.apache.karaf.client.Main*, there is a new section of code that creates
a new thread and only works for not Batch mode.

The issue was introduced with:

https://issues.apache.org/jira/browse/KARAF-5995

 
{code:java|title=org.apache.karaf.client.Main|borderStyle=solid}
new Thread() {
    public void run() {
        while (true) {
            try {
                int a = System.in.read();
                if (a == -1) {
                    channel.close(true);
                    break;
                }
                Thread.sleep(1000);
            } catch (Exception e) {
                //ignore
            }
        }
    }
}.start();
{code}


was (Author: keal_):
This error also affects docker images using client command to install features,
we have docker images on production deployed with a jenkins pipeline.

The problem is on *org.apache.karaf.client.Main*, there is a new section of code that creates
a new thread and only works for not Batch mode.

The issue is introduced with:

https://issues.apache.org/jira/browse/KARAF-5995

 
{code:java|title=org.apache.karaf.client.Main|borderStyle=solid}
new Thread() {
    public void run() {
        while (true) {
            try {
                int a = System.in.read();
                if (a == -1) {
                    channel.close(true);
                    break;
                }
                Thread.sleep(1000);
            } catch (Exception e) {
                //ignore
            }
        }
    }
}.start();
{code}

> batch command line mode does not work
> -------------------------------------
>
>                 Key: KARAF-6171
>                 URL: https://issues.apache.org/jira/browse/KARAF-6171
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.2, 4.2.3
>            Reporter: Michal Hlavac
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.4
>
>
> for example 
> {code:java}
> echo "config:list" | bin/client -b{code}
> does not do anything, no error nor configuration list output



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message