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

Hot Redeploying Siddhi App With Http Request-Response produces errors #1051

Open
sybernix opened this issue Nov 7, 2019 · 0 comments
Open

Comments

@sybernix
Copy link
Contributor

sybernix commented Nov 7, 2019

Description:
When the Response source has a regex as http.status.code after redeploying we dont receive the responses.

Affected Product Version:
wso2sp-4.4.0 with siddhi-io-http-1.2.0

Steps to reproduce:
Deploy the following siddhi app

@App:name("testLoad")
@App:description("Descripiosdfgdfgn")

@source(type='http', worker.count='20', receiver.url='http://localhost:5006/Sweet', @map(type = 'json'))
define stream inputStream(attr1 int);

@sink(type='http-request', sink.id='A1', publisher.url='http://www.mocky.io/v2/5dc1500133000075921a50fa', method='POST',headers="'Content-Type:text/xml'",blocking.io="true",
--@sink(type='http', publisher.url='http://localhost:8080/resource1/a/', method='POST',headers="'Content-Type:text/xml'",
@map(type='xml'))


--@sink(type='http', publisher.url='http://localhost:8688/service/EchoService', @map(type='json'))
define stream outputStream (attr1 int);

@sink(type='log')
define stream bar (attr1 int);

@source(type='http-response',sink.id='A1',http.status.code='[2|4]00', @map(type='json'))
@sink(type='log')
define stream JSONoutstream (attr1 int);

@source(type='http-response',sink.id='A1',http.status.code='500', @map(type='json'))
@sink(type='log')
define stream JSONoddutstream2 (attr1 int);


@info(name='query1')
from inputStream
select *
insert into outputStream;

from outputStream
select * insert into bar;

While running edit the siddhi app and redeploy it. Send a request again. Observe the errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant