[SERVER-23960] Improve log message on 3.2 when downgrading from 3.3+ after creating new WT index Created: 27/Apr/16  Updated: 14/Mar/17  Resolved: 27/May/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Storage
Affects Version/s: None
Fix Version/s: 3.2.7, 3.3.8

Type: Improvement Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Vincent Do
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on DOCS-7953 Instruction for handling index versio... Closed
Documented
is documented by DOCS-7953 Instruction for handling index versio... Closed
Related
is related to SERVER-19703 Add keystring and indexing support fo... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Integrate+Tuning 15 (06/03/16)
Participants:

 Description   

The error message that is emitted when a user downgrades after creating an index in version 3.3.5+ is unhelpful.

We can change the log message to give the user more information about how to handle the downgrade in 3.2.7+ and what the offending collection/index is.

dan:(git)mongo[master]/$ ../3.2-mongo/mongod
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten] MongoDB starting : pid=28134 port=27017 dbpath=/data/db 64-bit host=dan
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten] db version v3.2.5-33-g111b51d
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten] git version: 111b51db9db315b6ed0fcfc8f444c75c85f54dc6
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten] allocator: tcmalloc
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten] modules: none
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten] build environment:
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten]     distarch: x86_64
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten]     target_arch: x86_64
2016-04-27T12:48:18.658-0400 I CONTROL  [initandlisten] options: {}
2016-04-27T12:48:18.675-0400 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2016-04-27T12:48:18.675-0400 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=74G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2016-04-27T12:48:18.877-0400 I CONTROL  [initandlisten]
==> 2016-04-27T12:48:18.879-0400 I -        [initandlisten] Fatal assertion 28579 UnsupportedFormat: Application metadata for table:index-0-1896016118062454958 has unsupported format version 7
2016-04-27T12:48:18.879-0400 I -        [initandlisten]
 
***aborting after fassert() failure



 Comments   
Comment by Githook User [ 27/May/16 ]

Author:

{u'username': u'vincentdo', u'name': u'Vincent Do', u'email': u'do.vincent@live.com'}

Message: SERVER-23960 Add error message for index downgrade from 3.4 to 3.2

(cherry picked from commit 869058314384c4c3c70760f51f5dd2f4ef3c9b31)
Branch: v3.2
https://github.com/mongodb/mongo/commit/2f48c45858c661bd8328dc515314e672d13f0f56

Comment by Githook User [ 27/May/16 ]

Author:

{u'username': u'vincentdo', u'name': u'Vincent Do', u'email': u'do.vincent@live.com'}

Message: SERVER-23960 Add error message for index downgrade from 3.4 to 3.2
Branch: master
https://github.com/mongodb/mongo/commit/869058314384c4c3c70760f51f5dd2f4ef3c9b31

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