-
Notifications
You must be signed in to change notification settings - Fork 481
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
Use official MongoDB C Driver instead of libmongo-client #891
Use official MongoDB C Driver instead of libmongo-client #891
Conversation
Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
afmongodb_dd_set_safe_mode() first set it to FALSE, but then we set self->safe_mode to TRUE. Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
Rename libmongo-client to mongo-c-driver in build scripts Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
Added Mongo connection URI option to config file. Removed all other options from the config file that can be passed through the URI. Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
2f65add
to
f888d62
Compare
Different header, bson conventions, constants, methods. Fixes syslog-ng#361 Signed-off-by: bkil-syslogng <tamas.nagy@balabit.com>
f888d62
to
55806db
Compare
I have fixed the warnings that made it fail, so now I am ready. |
👍 |
…-c-driver F/libmongo client to mongo c driver (final)
Configuration changes: These changes are effective on the master branch and will be published first in syslog-ng 3.8. @fekete-robert may be also interested in this. |
Thanks, I've added it to our todo list. On Mon, Feb 1, 2016 at 10:40 AM, Tibor Benke notifications@github.com
|
They are completely removed (without deprecation). |
Well, that's not nice. This breaks user configuration, which we should nake Is it impossible to support those options?
|
The complete underlying library was swapped out. The new lib supports these options, but they are embedded into an URI. We may add a layer (construct the URI based on these options...), but I don't think it's worth the effort. We would eventually do the complete removal. |
Well, how difficult would it be to do that layer. We tend to be upward
|
It's not difficult, but IMHO error prone. What if we warn the user about the new simplified config if he/she uses one of the old configuration parameters? I know compatibility is very important, but if we always stick to it we can never get rid of some not-so-good decisions. Also, 3.8 is a major release. |
Telling the user to migrate to the new options is fine and is the policy we applied in the past. We can even remove options if a long enough grace period is available. The fact that 3.8 is a major release is not an excuse to break user configurations, our intent is to make upgrades (even accross major versions) as seamless as possible. Breaking configurations this way would upset users of that feature and rightly so. I would consider this a critical bug. |
We discussed this with Laci and those interested and concluded that However, it could not be guaranteed that the layered functionality would I recall that we have also asked Ricsi about who asked for this All in all, my vote is that no compatibility layer will be added and this On Mon, Feb 1, 2016 at 8:06 PM, Balazs Scheidler notifications@github.com
|
Sorry, but this is still not convincing enough. In the past 18 years, We do have infrastructure in place to "upgrade" options to a saner I might be missing something related to why it is so difficult to implement We don't have a clue how many people use the mongodb functionality, but if Bazsi On Wed, Feb 3, 2016 at 9:20 AM, Tamas Nagy notifications@github.com wrote:
|
Actually, I'm sad and surprised that you only now share this completely See: #728 (comment) Putting the handling of this process itself aside, I'm still not convinced Until which version would you support the old mongodb config syntax? On Wed, Feb 3, 2016 at 12:02 PM, Balazs Scheidler notifications@github.com
|
I for one don't review all patches and I never intended to (that would be a That said I think this question is not an issue that should be decided by A seemingly internal change (e.g. change the implementation of a I think there are numerous trade-offs and solutions that can be made at But I wanted to draw a clear line in the sand: breaking the user Look at for example the systemd workarounds in the unix-stream() driver, How far we would want to keep compatibility I don't know, it is a tradeoff Bazsi On Wed, Feb 3, 2016 at 1:55 PM, Tamas Nagy notifications@github.com wrote:
|
By the way, the PR started as one which does not break the config, and only From a retrospective, we have assumed that all of those interested were up On Wed, Feb 3, 2016 at 3:05 PM, Nagy, Tamás tamas.nagy@balabit.com wrote:
|
Rebased and migrated #728
Should be almost the be the same codebase, except:
After
somebody
does sanity checking to verify that the rebase went alright and they like the squashed commit organization, it would be ready for merge from my perspective.Please assign it to someone else if you are assigned and you don't have time for this.