You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, the input handlers between source mappers and stream junction are cleared leading to log being printed as siddhi app runtime is not running,
[pool-4-thread-1] ERROR io.siddhi.extension.map.xml.sourcemapper.XmlSourceMapper - Exception occurred when converting XML message to Siddhi Event
java.lang.InterruptedException: Siddhi app 'TestSiddhiApp' is not running, cannot send events
at io.siddhi.core.stream.input.InputHandler.send(InputHandler.java:93)
at io.siddhi.core.stream.input.source.PassThroughSourceHandler.sendEvents(PassThroughSourceHandler.java:40)
at io.siddhi.core.stream.input.source.InputEventHandler.sendEvents(InputEventHandler.java:111)
at io.siddhi.extension.map.xml.sourcemapper.XmlSourceMapper.mapAndProcess(XmlSourceMapper.java:254)
at io.siddhi.core.stream.input.source.SourceMapper.onEvent(SourceMapper.java:152)
at io.siddhi.core.stream.input.source.SourceMapper.onEvent(SourceMapper.java:118)
at io.siddhi.extension.io.http.source.HttpWorkerThread.run(HttpWorkerThread.java:62)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Affected Siddhi Version:
5.1.12
Steps to reproduce:
Modified Siddhi-io-http testcase
@niveathika Is this something affecting only Siddhi-io-http or would be the same in general for any siddhi application runtime? Also, on a related note, what would be the recommended way to restart an application runtime when using Siddhi as a java library? For my use case, I have a runtime that detects multiple patterns. On the first detection of any of them I want to restart the whole runtime to start again from scratch. Seems from the replies in #1614 that it is not possible to do that from the siddhi application itself so I am planning to "reset" the runtime from the "outside". I guess that it would be a matter of calling shutdown followed by start on the runtime object, since it seems there is no such thing as a restart method. Maybe @mohanvive can help on this. Ideally, it should be possible to clear the associated state for a runtime without having to recreate it.
Description:
$subject, due to clearing of all input handlers during the shutdown, https://github.com/siddhi-io/siddhi/blob/master/modules/siddhi-core/src/main/java/io/siddhi/core/stream/input/InputManager.java#L84
Here, the input handlers between source mappers and stream junction are cleared leading to log being printed as siddhi app runtime is not running,
Affected Siddhi Version:
5.1.12
Steps to reproduce:
Modified Siddhi-io-http testcase
Related Issues:
siddhi-io/distribution#826
siddhi-io/siddhi-io-http#161
The text was updated successfully, but these errors were encountered: