Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTTP/SSE]SSE source does not seem to retry to connect #205

Open
dilini-muthumala opened this issue Mar 17, 2021 · 0 comments
Open

[HTTP/SSE]SSE source does not seem to retry to connect #205

dilini-muthumala opened this issue Mar 17, 2021 · 0 comments
Labels
bug Something isn't working Priority/Normal

Comments

@dilini-muthumala
Copy link
Contributor

dilini-muthumala commented Mar 17, 2021

Credits: Thank you @cazci for providing the siddhi app and SSE server for testing!

Description:
I've created a Siddhi app with an SSE source and started it, before the SSE server was started. Did not show any errors on the SI tooling console until the SSE server was started. Furthermore, it did not connect with the SSE server when I started it later on.

Affected Product Version:
wso2si-tooling-4.0.0-SNAPSHOT

OS, DB, other environment details and versions:
Mac OS 10.13.1 (17B1003)
Chrome Version 88.0.4324.146 (Official Build) (x86_64)

Steps to reproduce:
Create the below Siddhi app in tooling server and start it. It was started with no errors printed on the SI tooling logs.
After sometime, start the SSE server.

Expected behaviour:
It was expected that the SSE source would keep retrying to connect to the SSE server.
When the SSE server got available, SSE source would connect to it.

Actual behaviour:
SSE source did not connect to the SSE server when it got online.

Siddhi app

@App:name("SSEApp")

@Source(type = 'sse', event.source.url='http://localhost:8080/sse',
    @map(type='json'))
define stream RecieveProductionStream (date string);

@sink(type='log') 
define stream LogProductionStream(date string);

from RecieveProductionStream
select *
insert into LogProductionStream

SSE server
Mock Server.zip

To start this server,
Download the Mock Server.zip file and extract it.
Go to the extracted location and run the below two commands:

npm install
node server.js
@dilini-muthumala dilini-muthumala added the bug Something isn't working label Mar 18, 2021
@ramindu90 ramindu90 added this to the 4.0.0-beta milestone Mar 18, 2021
@isudana isudana added 4.0.0 and removed 4.0.0 labels Apr 21, 2021
@AnuGayan AnuGayan added the 4.1.0 label Oct 29, 2021
@AnuGayan AnuGayan removed the 4.1.0 label Mar 29, 2022
@AnuGayan AnuGayan removed this from the 4.0.0-beta milestone Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority/Normal
Projects
None yet
Development

No branches or pull requests

5 participants