[SERVER-20753] Broken "show dbs" when WiredTiger is built as a separate library Created: 05/Oct/15 Updated: 05/Oct/15 Resolved: 05/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build, WiredTiger |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Matthias Saou | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
With WiredTiger 2.6.1 and MongoDB 3.0.6, the show dbs command doesn't work, with the following error :
And this line appears in the mongod.log file :
This server has been installed with 3.0.0, then upgraded to 3.0.3, then finally to 3.0.6, in case that could explain the issue. |
| Comments |
| Comment by Ramon Fernandez Marina [ 05/Oct/15 ] |
|
Thias, this matter was already discussed in mongodb-dev. The short answer is that what you're trying to do is currently not supported, please see the link above for further details. Regards, |
| Comment by Matthias Saou [ 05/Oct/15 ] |
|
For MongoDB 3.0.6, when using --shared-all, what tag/release/commit of WiredTiger should I use? So far, I have tried the following :
I would really like to see the Fedora packages get updated. For that to happen, this is one problem that needs to be fixed, so pointers would be very welcome! (let me know if you'd like a different report for this) |
| Comment by Matthias Saou [ 05/Oct/15 ] |
|
Ouch! Spot on. Well, I'm using Fedora/EPEL packages as a base, and Fedora includes a guideline prohibiting using bundled snapshots of libraries : https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries (and I personally agree with it, as I would hate to have a dozen different statically linked openssl versions on my systems!) I understand that it might not be convenient for rapid changes in both MongoDB and WiredTiger, but the correct thing would be to make the required releases of WiredTiger, with proper library versioning and make sure MongoDB checks for the version it needs at build time. At the moment, mongodb-3.0.6 happily builds and links against any wiredtiger version since they all provide libwiredtiger.so.0.0.0 (from my limited testing). In the meantime, I have seen that the wiredtiger git repository has a "mongodb-3.0.6" tag, so I'm going to rebuild my shared wiredtiger package with the 2.6.1 source + a patch that brings its code up to par with that tag, as I'm assuming that should do it. Thanks for the quick reply! |
| Comment by Daniel Pasette (Inactive) [ 05/Oct/15 ] |
|
Hi Matthias, This interface is available in WiredTiger 2.6.2, but not in 2.6.1 (see docs). MongoDB should not be built with WiredTiger as a separate library except for test purposes. -Dan |