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

Expose an api to check whether a compiled Siddhi app is stateful or not #1373

Closed
pcnfernando opened this issue Jul 4, 2019 · 0 comments · Fixed by #1413
Closed

Expose an api to check whether a compiled Siddhi app is stateful or not #1373

pcnfernando opened this issue Jul 4, 2019 · 0 comments · Fixed by #1413
Assignees
Milestone

Comments

@pcnfernando
Copy link
Contributor

Description:
At the moment, when SiddhiApp is parsed using SiddhiCompiler.parse(), it provides you with the definition maps and execution elements.
In order to check whether the app is stateful, we need to iterate through all definitions and stream handlers and categorize depending on whether we have windows, patterns and such stateful cases manually.
Even in that case, we might miss stateful function usages since that information is not available.

Affected Siddhi Version:
4.x, 5.0.2

@suhothayan suhothayan self-assigned this Jul 17, 2019
@suhothayan suhothayan added this to the 5.1.2 milestone Jul 17, 2019
suhothayan added a commit to suhothayan/siddhi that referenced this issue Jul 24, 2019
…io#1373

This expose queries, partitions, windows, triggers, and tables to check whether they are stateful or not.
pcnfernando added a commit that referenced this issue Jul 24, 2019
 Expose API to check whether the Siddhi App is stateful or not #1373
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants