[SERVER-1306] Unable to access collections on dir-per-db setup with local namespace symlinked to directory Created: 25/Jun/10  Updated: 28/Jun/12  Resolved: 12/Jul/10

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.4.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Avery Rosen Assignee: Aaron Staple
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: Linux
Participants:

 Description   

This machine has a completely typical file system layout and is using the directory per db option.

Tenseiga:~ avery$ mongo master.bb.mongo.ny
MongoDB shell version: 1.2.0
url: master.bb.mongo.ny
connecting to: master.bb.mongo.ny/test
type "help" for help
> db.printReplicationInfo()
configured oplog size:   7949.223731200002MB
log length start to end: 288058secs (80.02hrs)
oplog first event time:  Sun Jun 20 2010 06:24:29 GMT-0400 (EDT)
oplog last event time:   Wed Jun 23 2010 14:25:27 GMT-0400 (EDT)
now:                     Wed Jun 23 2010 14:25:29 GMT-0400 (EDT)
> use local                
switched to db local
> show tables              
pair.sync
sources
system.indexes

This machine is using the per-db option, but the entry for 'local' in the data directory is a symlink to a directory on another partition:
Tenseiga:shopwiki.war avery$ mongo master.ui.mongo.ny
MongoDB shell version: 1.2.0
url: master.ui.mongo.ny
connecting to: master.ui.mongo.ny/test
type "help" for help
> db.printReplicationInfo()
configured oplog size:   67108.864MB
log length start to end: 392921secs (109.14hrs)
oplog first event time:  Sat Jun 19 2010 01:16:19 GMT-0400 (EDT)
oplog last event time:   Wed Jun 23 2010 14:25:00 GMT-0400 (EDT)
now:                     Wed Jun 23 2010 14:25:00 GMT-0400 (EDT)
> use local                
switched to db local
> show tables              

Using db version v1.4.2, pdfile version 4.5



 Comments   
Comment by Aaron Staple [ 12/Jul/10 ]

I was unable to reproduce using 1.4.2 with the directoryperdb option and 'local' directory a symlink to a directory on another partition. If you believe there is still an issue could you reopen and send ln -s of your dbpath, and also report any other details which might be pertinent for reproducing the reported behavior.

Comment by Avery Rosen [ 25/Jun/10 ]

D'oh, I mis-reported this issue, as is apparent by the output I included in the description, it should say that the issue is not being able to access the collections directly, not that printReplicationInfo wasn't working. Please adjust ticket name, etc.

Generated at Thu Feb 08 02:56:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.