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

[cygnus-ngsi][NGSIPostgreSQLSink] Data insertion fails when cache is not enabled #1446

Open
frbattid opened this issue Jun 14, 2017 · 1 comment
Labels

Comments

@frbattid
Copy link
Member

This is because at PostgreSQLBackendImpl.java PostgreSQLCache cache is initialized to null upon declaration:

https://github.com/telefonicaid/fiware-cygnus/blob/master/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/postgresql/PostgreSQLBackendImpl.java#L45

Then, only if enable_cache is set to true, cache is initialized with a PostgreSQLCache object:

https://github.com/telefonicaid/fiware-cygnus/blob/master/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/postgresql/PostgreSQLBackendImpl.java#L58

If not, the data insertion fails when checking if the schema is in the cache:

https://github.com/telefonicaid/fiware-cygnus/blob/master/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/postgresql/PostgreSQLBackendImpl.java#L86

@PedroD
Copy link

PedroD commented Jul 10, 2018

This issue remains unfixed.

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

No branches or pull requests

2 participants