fiware-cygnus icon indicating copy to clipboard operation
fiware-cygnus copied to clipboard

Disabling Retryable Writes In MongoDB

Open Madhu-NEC opened this issue 3 years ago • 2 comments

Hi @AlvaroVega , @fgalan ,

I want to disable Retryable Writes for MongoDB while connecting mongo-sink in cygnus. Same is supported in Orion via -dbDisableRetryWrites option as mentioned https://fiware-orion.readthedocs.io/en/master/admin/cli/index.html I want to know if there is any similar setting in Cygnus to disable Retryable Writes?

Component Versions: Cygnus: 2.9.0 MongoDB: 4.4

Madhu-NEC avatar Jul 14 '21 09:07 Madhu-NEC

I'd suggest to have a look to the official Cygnus documentation with regards to the sinks that persist on MongoDB (MongoSink and STHSink):

  • https://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/flume_extensions_catalogue/ngsi_sth_sink/index.html
  • https://fiware-cygnus.readthedocs.io/en/latest/cygnus-ngsi/flume_extensions_catalogue/ngsi_mongo_sink/index.html

If you don't find a configuration parameter for retryable writes in that configuration pages then probably this is a (small) lack of functionality in Cygnus and the issue makes sense to fill that gap. Maybe you want to volunteer to implement it? ;)

fgalan avatar Jul 27 '21 09:07 fgalan

According with orion doc:

-dbDisableRetryWrites. Set retryWrite parameter to false in DB connections (not recommended, only to keep compatibility with old MongoDB instances)

It seems that options is just to connect with legacy mongoDB instances, maybe related with mongo db driver used by origion and maybe that feature not apply to cygnus which uses modern mongodb driver

AlvaroVega avatar Aug 04 '21 07:08 AlvaroVega