You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jamie Goodyear (JIRA)" <ji...@apache.org> on 2008/09/17 15:59:52 UTC

[jira] Created: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Failed kernel commands in command chain will hang processing.
-------------------------------------------------------------

                 Key: SMX4KNL-88
                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
             Project: ServiceMix Kernel
          Issue Type: Bug
         Environment: Unix
            Reporter: Jamie Goodyear


Failed kernel commands in command chain will hang processing.

Ex 1: 
jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit

The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:

hi1
hi2
hi3

Then smx will exit, returning the terminal prompt.

Ex 2:
jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit

Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).

Is this the behavior we want to maintain? 
Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45775#action_45775 ] 

Jamie Goodyear commented on SMX4KNL-88:
---------------------------------------

Guillaume - just caught your comment after i had posted the last comment, will look into this.

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie Goodyear resolved SMX4KNL-88.
-----------------------------------

    Resolution: Won't Fix

Follow described work around.

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-88a.txt
>
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45773#action_45773 ] 

Guillaume Nodet commented on SMX4KNL-88:
----------------------------------------

Not sure if we should continue executing commends after a failure.  I think most scripts would halt at this point.
However, we need to enclose the execution inside a try / catch to avoid the shutdown to hang.
Wanna try providing a patch for this issue ?

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45926#action_45926 ] 

Jamie Goodyear commented on SMX4KNL-88:
---------------------------------------

Any comments/concerns with the approach outlined above?

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-88a.txt
>
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45994#action_45994 ] 

Guillaume Nodet commented on SMX4KNL-88:
----------------------------------------

What about starting your list of commands with a sleep to ensure everything is loaded ?
I hope at some point, the OSGi runtime (felix) will be able to handle such a shutdown, so i'm not very keen on waiting a fix amount in time in the kernel.
Depending on your configuration and your machine, sleeping a bit before running the commands should make things more flexible.
Wdyt ?

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-88a.txt
>
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie Goodyear updated SMX4KNL-88:
----------------------------------

    Attachment: smx4knl-88a.txt

One possible solution. 

The command executor takes the command chain as one large command. Once any one part of it fails the whole command is then treated as being in error. This means that upon processing "ecco hi2 \;" the command would fail and stop processing any more commands in the chain. GShell run() method's behavior upon error is to immediately call the asyncShutdown method to end the session.

When the OSGi layer (smx4 features) is present the normal exit on error behavior of the kernel becomes a problem. Some bundles may be in the state of starting or stopping, exiting during these transitive states is currently not supported. So to get around this we can allow the kernel to wait a few seconds to let these bundles finish processing before the asyncShutdown method it called to end the run() session.

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-88a.txt
>
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45772#action_45772 ] 

Jamie Goodyear commented on SMX4KNL-88:
---------------------------------------

Testing with the kernel the system will exit, however no other commands are executed after failed command.

Appears that the hanging issue may be to do with the OSGI framework on top of kernel not stopping. 

13:20:24,811 | INFO  | Thread-18        | GShell                           | he.geronimo.gshell.spring.GShell  151 | Exiting shell due to caught exception org.apache.geronimo.gshell.layout.NotFoundException: ecch
org.apache.geronimo.gshell.layout.NotFoundException: ecch
        at org.apache.geronimo.gshell.spring.SpringCommandRegistry.findNode(SpringCommandRegistry.java:171)
        at org.apache.geronimo.gshell.spring.SpringCommandRegistry.findNode(SpringCommandRegistry.java:156)
        at org.apache.geronimo.gshell.spring.SpringCommandRegistry.findNode(SpringCommandRegistry.java:197)
        at org.apache.geronimo.gshell.DefaultCommandExecutor.execute(DefaultCommandExecutor.java:218)
        at org.apache.geronimo.gshell.DefaultCommandExecutor$1.run(DefaultCommandExecutor.java:163)
        at org.apache.geronimo.gshell.spring.SpringCommandExecutor$1$1.run(SpringCommandExecutor.java:67)
13:20:24,816 | INFO  | Thread-21        | GShell                           | .geronimo.gshell.spring.GShell$2  163 | Caught exception while shutting down framework: org.osgi.framework.BundleException: Stopping a bundle that is starting or stopping is currently not supported.
org.osgi.framework.BundleException: Stopping a bundle that is starting or stopping is currently not supported.
        at org.apache.felix.framework.Felix._stopBundle(Felix.java:1982)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:1954)
        at org.apache.felix.framework.Felix.stop(Felix.java:910)
        at org.apache.geronimo.gshell.spring.GShell$2.run(GShell.java:161)

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45774#action_45774 ] 

Jamie Goodyear commented on SMX4KNL-88:
---------------------------------------

The behavior of the kernel appears to be to exit upon first failed command. 

The question at this point should be do we want the kernel to exit or continue on to the next command? 

If the plan is to exit then this issue may be marked as resolved (OSGI framework issue will have to be resolved at some other date). Otherwise we'll need to make the kernel skip along to the next command in the chain.
 

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SMX4KNL-88 started by Jamie Goodyear.

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-88a.txt
>
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie Goodyear reassigned SMX4KNL-88:
-------------------------------------

    Assignee: Jamie Goodyear

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46077#action_46077 ] 

Jamie Goodyear commented on SMX4KNL-88:
---------------------------------------

After much testing adding in "utils sleep 30" to the beginning of all command chained servicemix startup commands seems to negate the occurrence of hangs on a failed sub-command. Users of SMX4 command chaining must be made aware that this practice of putting the kernel to sleep is the work around for possibly failing commands.

Hence a chain where we may have a command fail (simulated by  'ecco' command):

jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit

we would want to use the chain:

jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix  utils sleep 30000 \; echo hi1 \; ecco hi2\; echo hi3 \; exit

to avoid having the 'ecco hi2' hang servicemix.

Please note that this particular hang situation tends to occur on slower or heavy load systems.

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-88a.txt
>
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SMX4KNL-88) Failed kernel commands in command chain will hang processing.

Posted by "Jamie Goodyear (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45997#action_45997 ] 

Jamie Goodyear commented on SMX4KNL-88:
---------------------------------------

I'll experiment with additional sleeps with my project and report back my findings.

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>            Assignee: Jamie Goodyear
>         Attachments: smx4knl-88a.txt
>
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> jgoodyea@jebediah:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this case the second echo command has been mis-spelled. Instead of an error message being displayed to the screen and continuing on to echo "hi3" however smx stops processing commands (the user then has to ctrl+c the process to regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.