2016-10-11 4 views
0

Scope passiert: https://docs.mongodb.com/v3.0/release-notes/3.0-upgrade/#upgrade-recommendations-and-checklistsWas passiert, wenn ich mongos 2.6 mit mongod 3.0

: Ich bin derzeit ein Upgrade eine große MongoDB sharded Umgebung 2,6-3,0, im Anschluss an die Empfehlungen, die von der offiziellen Dokumentation

Darin warnen sie uns mit der folgenden Anmerkung:

Sie die mongod Instanzen bis nicht aktualisieren, nachdem Sie alle Instanzen die mongos aktualisiert haben.

Sie sagen uns jedoch nicht, was die Konsequenzen sind, und noch wichtiger, wie man die Situation wiederherstellen kann, wenn es passiert.

Ziel:

Wir haben ein mongos 2.6 Anschluss an einen 3.0 sharded Umgebung testen wollen und seine Fehlersuche zu simulieren.

Frage:

Vor (natürlich in einer Testumgebung), um fortzufahren, ich möchte wissen, ob jemand eine solche Prüfung und was waren getan hat die Ergebnisse. Wie haben Sie die Situation wiederhergestellt?

Vielen Dank im Voraus.

Antwort

0

Ich habe die oben versucht und schicklich die mongod erlaubt nicht nur um die Verbindung herzustellen zu Mongos:

mongos> show tables 
2016-10-17T13:24:00.954+0100 E QUERY [thread1] Error: error: { 
     "$err" : "could not initialize sharding on connection mtk-uat-rs-eu0/mongod.mtkdb413.motortrak.com:28100,mongod.mtkdb413.motortrak.com:28101 :: caused by :: v3.0 mongod is incompatible with v2.6 mongos, a v2.6 mongos may be running in the v3.0 cluster at 192.168.151.28", 
     "code" : 15907, 
     "shard" : "mtk-uat-rs-eu0" 
} : 
[email protected]/mongo/shell/utils.js:25:13 
[email protected]/mongo/shell/query.js:297:1 
[email protected]/mongo/shell/db.js:743:27 
[email protected]/mongo/shell/db.js:789:16 
[email protected]/mongo/shell/db.js:796:16 
[email protected]/mongo/shell/utils.js:753:9 
[email protected]/mongo/shell/utils.js:650:15 
@(shellhelp2):1:1 

mongos> show tables 
2016-10-17T14:20:24.223+0100 E QUERY [thread1] Error: error: { 
     "$err" : "could not initialize sharding on connection mtk-uat-rs-eu0/mongod.mtkdb413.motortrak.com:28100,mongod.mtkdb413.motortrak.com:28101 :: caused by :: v3.0 mongod is incompatible with v2.6 mongos, a v2.6 mongos may be running in the v3.0 cluster at 192.168.151.28", 
     "code" : 15907, 
     "shard" : "mtk-uat-rs-eu0" 
} : 
[email protected]/mongo/shell/utils.js:25:13 
[email protected]/mongo/shell/query.js:297:1 
[email protected]/mongo/shell/db.js:743:27 
[email protected]/mongo/shell/db.js:789:16 
[email protected]/mongo/shell/db.js:796:16 
[email protected]/mongo/shell/utils.js:753:9 
[email protected]/mongo/shell/utils.js:650:15 
@(shellhelp2):1:1 
Verwandte Themen