-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fix/sql backend destination #2007
Conversation
A CNR update is needed |
@@ -34,37 +34,38 @@ | |||
|
|||
/** | |||
* Creates a table, given its name, if not exists in the given database. | |||
* @param destination | |||
* @param dataBase | |||
* @param tableName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing param schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in f30b89d
* @param tableName | ||
* @param maxRecords | ||
* @throws com.telefonica.iot.cygnus.errors.CygnusRuntimeError | ||
* @throws com.telefonica.iot.cygnus.errors.CygnusPersistenceError | ||
*/ | ||
void capRecords(String destination, String tableName, long maxRecords) throws CygnusRuntimeError, CygnusPersistenceError; | ||
void capRecords(String dataBase, String tableName, long maxRecords) throws CygnusRuntimeError, CygnusPersistenceError; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is only implemented by MySQL sink, That's why I didn't add the schema param. Do you thing It should be included?
Still duplicated sentence: fiware-cygnus/cygnus-ngsi/src/main/java/com/telefonica/iot/cygnus/sinks/NGSIPostgreSQLSink.java Line 367 in a02484b
|
Fixed in fc4f58a |
@@ -0,0 +1,18 @@ | |||
package com.telefonica.iot.cygnus.backends.sql; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License header in all new files, pls :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 8ef7b73
[cygnus-ngsi] [PostgisSink] Fix PostgreSQL encoding when enabled. | ||
[cygnus-ngsi] [MysqlSink, PostgisSink, PosgreSQLSink] Update sinks to initialize persistance backend objects without database. (#2004) | ||
[cygnus-common] Remove database initialization on constructors. (#2004) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR has no any impact in documentation?
Just to check...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a bugfix, do not introduce a new behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NTC
if (buildDBName(null) != null) { | ||
createPersistenceBackend(postgisHost, postgisPort, postgisUsername, postgisPassword, maxPoolSize, buildDBName(null), postgisOptions); | ||
} | ||
createPersistenceBackend(postgisHost, postgisPort, postgisUsername, postgisPassword, maxPoolSize, postgisOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that ngsi-ld sinks like this are not fully aligned with ngsiv2 sinks and maybe are not received latest features, bugfixes and refactors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@anmunoz this PR fixes some sinks in cygnus-ngsi that also are being used in cygnus-ngsi-ld. I'm telling you, just in case you want also to apply similar fixes to them. |
fix for #2004
You can find test results on the attached files.
agent.txt
cygnus.txt