[SERVER-18376] Interface changes for SERVER-18099 broke C# 1.0 drivers from access to 3.1.x servers Created: 07/May/15  Updated: 05/Feb/16  Resolved: 22/Jun/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 3.1.5

Type: Bug Priority: Major - P3
Reporter: Eitan Klein Assignee: Jonathan Reams
Resolution: Done Votes: 0
Labels: 32qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-18011 Memory leak w/ insert only files to G... Closed
Duplicate
duplicates SERVER-18099 Refactor buildinfo Closed
Related
related to DOCS-5619 Update docs on buildInfo command Closed
is related to CSHARP-1278 Connect calls buildInfo in 1.x branch Closed
is related to DRIVERS-236 New stable interface for buildInfo co... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Any C# app running a 1.x version of the driver against a >= 3.1 server

Sprint: BUILD 4 06/05/15, Build 5 06/26/16
Participants:

 Description   

Env: Single mongod 3.1.3 pre

Problem: an interface change been introduced by server-18099 and broke any C# app compiled w/ C# 1.0.x driver.

This will likely to slow down the adoption of 3.2 b/c customers will need to recompile the apps and solve other issues.

see problem stack trace
see communication below with Craig Wilson

 
Unhandled Exception: MongoDB.Driver.MongoConnectionException: Unable to connect to server eitan5:27017: Element 'bits' not found.. ---> System.Collections.Generic.KeyNotFoundException: Element 'bits' not found.
   at MongoDB.Bson.BsonDocument.get_Item(String name)
   at MongoDB.Driver.MongoServerBuildInfo.FromCommandResult(CommandResult result)
   at MongoDB.Driver.MongoServerInstance.LookupServerInformation(MongoConnection connection)
   at MongoDB.Driver.MongoServerInstance.Connect()
   at MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference)
   --- End of inner exception stack trace ---
   at MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference)
   at MongoDB.Driver.Internal.DirectMongoServerProxy.ChooseServerInstance(ReadPreference readPreference)
   at MongoDB.Driver.MongoServer.RequestStart(MongoDatabase initialDatabase, ReadPreference readPreference)
   at MongoDB.Driver.GridFS.MongoGridFS.Upload(Stream stream, String remoteFileName, MongoGridFSCreateOptions createOptions)
   at MongoDB.Driver.GridFS.MongoGridFS.Upload(Stream stream, String remoteFileName)
   at Program.Program.UploadBytes(MongoGridFS handleGridFS, Byte[] dataBytes, Int32 gridId) in c:\src\MyMongoDb\Windows\GridFs\MongoPerfServer\Test.cs:line 51
   at Program.Program.Main(String[] args) in c:\src\MyMongoDb\Windows\GridFs\MongoPerfServer\Test.cs:line 34

 

Eitan
Is this change will break any C# app?
Craig
this change would break any C# app running a 1.x version of the driver against a >= 3.1 server
Eitan
what's the latest version of C# drivers we have today?
Craig
1.10.0 and 2.0.0
Eitan
OK, so 2.0 should be a workaround for me
Craig
2.0.0 is a large upgrade, so I don't expect large enterprises with large apps to have upgraded yet
it has some breaking changes, etc...



 Comments   
Comment by Jonathan Reams [ 22/Jun/15 ]

The tickets have been filed for drivers/docs changes related to this.

Comment by Githook User [ 09/Jun/15 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-18376 Re-add sysInfo field to buildInfo
Branch: master
https://github.com/mongodb/mongo/commit/6f9285ba8e37aee90acb9069cfe477db626281c2

Comment by Githook User [ 11/May/15 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-18376 Re-add bits to buildinfo
Branch: master
https://github.com/mongodb/mongo/commit/5da4be677cb2bba4cba51c5cc6bfaef6e0c592cc

Comment by Eitan Klein [ 07/May/15 ]

Jonathan and me communicated about this over email, I didn't noticed that he reopen the original bug

Comment by Eric Milkie [ 07/May/15 ]

As SERVER-18099 details, we're going to put the 'bits' field back, to avoid this problem.

Generated at Thu Feb 08 03:47:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.