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

improves error with a bad url in mongo-sink #2046

Closed
AlvaroVega opened this issue May 24, 2021 · 2 comments
Closed

improves error with a bad url in mongo-sink #2046

AlvaroVega opened this issue May 24, 2021 · 2 comments

Comments

@AlvaroVega
Copy link
Member

cygnus-ngsi.sinks.sth-sink.mongo_hosts = iot-mongo

instead of

cygnus-ngsi.sinks.sth-sink.mongo_hosts = iot-mongo:27017

time=2021-05-24T10:34:13.567Z | lvl=DEBUG | corr=N/A | trans=N/A | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=createDatabase | msg=com.telefonica.iot.cygnus.backends.mongo.MongoBackendImpl[91] : Creating Mongo database=sth_smartcity
time=2021-05-24T10:34:13.568Z | lvl=ERROR | corr=N/A | trans=N/A | srv=N/A | subsrv=N/A | comp=cygnus-ngsi | op=processRollbackedBatches | msg=com.telefonica.iot.cygnus.sinks.NGSISink[418] : CygnusPersistenceError. -, 1. Stack trace: [com.telefonica.iot.cygnus.sinks.NGSIMongoSink.persistAggregation(NGSIMongoSink.java:292), com.telefonica.iot.cygnus.sinks.NGSIMongoSink.persistBatch(NGSIMongoSink.java:149), com.telefonica.iot.cygnus.sinks.NGSISink.processRollbackedBatches(NGSISink.java:402), com.telefonica.iot.cygnus.sinks.NGSISink.process(NGSISink.java:375), org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:67), org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:145), java.lang.Thread.run(Thread.java:748)]

@AlvaroVega
Copy link
Member Author

lhttps://github.com/telefonicaid/fiware-cygnus/blob/10f5751002d85ace0bf050af2379dc280c48ec71/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/mongo/MongoBackendImpl.java#L551-L554

@fgalan fgalan added this to the release/2.10.0 milestone May 25, 2021
@fgalan
Copy link
Member

fgalan commented May 25, 2021

Fixed in PR #2047

@fgalan fgalan closed this as completed May 25, 2021
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

2 participants