[SERVER-27218] Startup warning recommending the use of XFS isn't displayed properly in Mongo Shell Created: 30/Nov/16  Updated: 05/Apr/17  Resolved: 30/Nov/16

Status: Closed
Project: Core Server
Component/s: WiredTiger
Affects Version/s: 3.4.0
Fix Version/s: 3.4.1, 3.5.1

Type: Bug Priority: Minor - P4
Reporter: Amar Hamzeh Assignee: Kevin Pulo
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-22606 Startup warning if ext4 is used with ... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Backport Completed:
Steps To Reproduce:

1. Start a 3.4 instance with EXT4 and WiredTiger
2. Login to the Mongo Shell

Sprint: Storage 2016-12-12
Participants:

 Description   

The following warning introduced by SERVER-22606 is not displayed properly in Mongo Shell:

** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine

It's displayed as:

Server has startup warnings:
2016-11-30T10:40:54.540+1100 I STORAGE [initandlisten]
>

Where it should be:

Server has startup warnings:
2016-11-30T10:36:54.540+1100 I CONTROL  [initandlisten]
2016-11-30T10:36:54.540+1100 I CONTROL  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2016-11-30T10:36:54.540+1100 I CONTROL  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2016-11-30T10:36:54.540+1100 I CONTROL  [initandlisten]
>



 Comments   
Comment by Githook User [ 05/Dec/16 ]

Author:

{u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}

Message: SERVER-27218 Fix WT Ext4/XFS startup warning in the shell

(cherry picked from commit 5bd4529cffd8149f5471df5e8013828c1dcc1e4e)
Branch: v3.4
https://github.com/mongodb/mongo/commit/c09c4d6aae7eb22bfa0981c3085c9319f83bc4de

Comment by Jonathan Reams [ 30/Nov/16 ]

I've opened SERVER-27221 to address this.

Comment by Kevin Pulo [ 30/Nov/16 ]

Yeah, I noticed that too, but it felt out of scope for this ticket. I also think that in that case, the message should be more like "The dbpath is not using XFS. Using the XFS files is strongly recommend ... etc etc" Definitely open another ticket for these changes.

Comment by Jonathan Reams [ 30/Nov/16 ]

Can we also check that fs_stats.f_type != XFS_SUPER_MAGIC instead of fs_stats.f_type == EXT4_SUPER_MAGIC? It seems pretty silly to tell users to use XFS just because they're using ext4. If they switch to btrfs, fat32, or something, this warning would go away even though they aren't using XFS. I can open another ticket if this change is out of scope.

Comment by Githook User [ 30/Nov/16 ]

Author:

{u'username': u'devkev', u'name': u'Kevin Pulo', u'email': u'kevin.pulo@mongodb.com'}

Message: SERVER-27218 Fix WT Ext4/XFS startup warning in the shell
Branch: master
https://github.com/mongodb/mongo/commit/5bd4529cffd8149f5471df5e8013828c1dcc1e4e

Generated at Thu Feb 08 04:14:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.