[SERVER-20488] systemFlags reporting different values between our UAT and PROD servers. Created: 18/Sep/15 Updated: 21/Sep/15 Resolved: 21/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics |
| Affects Version/s: | 2.6.8 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Sean Donders | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
systemFlags in the Stats() collection is different between our UAT and PROD servers. Our UAT servers show 1 as the value and our PROD show 0. Below is an example of what's returned in our UAT env't. But in our Prod env't the systemFlags is zero.
http://docs.mongodb.org/v2.6/reference/command/collStats/ states that it "Reports the flags on this collection that reflect internal server options. Typically this value is 1 and reflects the existence of an index on the _id field." When querying UAT and PROD env'ts the getIndexes() show that an Index exists.
Please advise what the Server uses this flag for, and why it may be reporting differently across env'ts. |
| Comments |
| Comment by Stennie Steneker (Inactive) [ 21/Sep/15 ] |
|
Hi Sean, The systemFlags value in collection stats is an internal bookkeeping artifact, and just indicates that the server ensured the collection's _id index for a code path where the index was required (ref: ensureHaveIdIndex()). This flag may be reset as a result of some operations that affect indexes such as compact or reIndex(). The systemFlags value does not have any user-facing impact and was actually removed prior to the MongoDB 3.0 production release. You can safely ignore this if you are diff'ing collection stats between UAT and PROD environments. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group. Regards, |