Skip to content

Commit b3ef860

Browse files
author
rstam
committed
Release notes for 1.8.1.
1 parent 05b35a0 commit b3ef860

5 files changed

+162
-3
lines changed

CSharpDriver-2010.sln

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Release Notes", "Release No
3636
Release Notes\Change Log v1.7-Driver.txt = Release Notes\Change Log v1.7-Driver.txt
3737
Release Notes\Change Log v1.8-Bson.txt = Release Notes\Change Log v1.8-Bson.txt
3838
Release Notes\Change Log v1.8-Driver.txt = Release Notes\Change Log v1.8-Driver.txt
39+
Release Notes\Change Log v1.8.1-Bson.txt = Release Notes\Change Log v1.8.1-Bson.txt
40+
Release Notes\Change Log v1.8.1-Driver.txt = Release Notes\Change Log v1.8.1-Driver.txt
3941
Release Notes\Release Notes v0.11.txt = Release Notes\Release Notes v0.11.txt
4042
Release Notes\Release Notes v0.7.txt = Release Notes\Release Notes v0.7.txt
4143
Release Notes\Release Notes v0.9.txt = Release Notes\Release Notes v0.9.txt
@@ -51,6 +53,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Release Notes", "Release No
5153
Release Notes\Release Notes v1.6.1.md = Release Notes\Release Notes v1.6.1.md
5254
Release Notes\Release Notes v1.6.md = Release Notes\Release Notes v1.6.md
5355
Release Notes\Release Notes v1.7.md = Release Notes\Release Notes v1.7.md
56+
Release Notes\Release Notes v1.8.1.md = Release Notes\Release Notes v1.8.1.md
5457
Release Notes\Release Notes v1.8.md = Release Notes\Release Notes v1.8.md
5558
EndProjectSection
5659
EndProject

Release Notes/Change Log v1.8-Driver.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
C#/.NET driver changes from 1.8 to 1.8
1+
C#/.NET driver changes from 1.7 to 1.8
22

33
DeprecatedQueryBuilder.cs
44
removed deprecated class
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSON library changes from 1.8 to 1.8.1
2+
3+
ByteArrayBuffer.cs
4+
LoadFrom now checks for end of stream
5+
6+
ByteArrayBuffer.cs
7+
LoadFrom now checks for end of stream
8+
9+
MultiChunkBuffer.cs
10+
LoadFrom now checks for end of stream
11+
12+
AscendingGuidGenerator.cs
13+
new Guid generator that generates Guids that are ascending according to MongoDB
14+
(the Guids will only be ascending if stored using GuidRepresentation.Standard)
15+
16+
CombGuidGenerator.cs
17+
this class is not deprecated, but the Guids it generates are only ascending if compared the weird way SQL Server compares Guids
18+
timestamp portion now uses SQL server timer resolution (1/300th of a second per tick)
19+
20+
InterfaceSerializer.cs
21+
new serializer that can be used with any interface
22+
Deserialize uses a discriminator convention to figure out the actual type and calls Deserialize on the actual type's serializer
23+
Serialize looks up the serializer of the actual type and calls Serialize on the actual type's serializer
24+
25+
BsonClassMap.cs
26+
renamed private method ResolveExplicitProperty to FindPropertyImplementation and made it more robust
27+
28+
BsonDefaultSerializationProvider.cs
29+
GetSerializer now returns an InterfaceSerializer if the type is an interface
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
C#/.NET driver changes from 1.8 to 1.8.1
2+
3+
AggregateResult.cs
4+
CollectionStatusResult.cs
5+
DatabaseStatsResult.cs
6+
FindAndModifyResult.cs
7+
GeoHaystackSearchResult.cs
8+
GeoNearResult.cs
9+
GetLastErrorResult.cs
10+
GetProfilingLevelResult.cs
11+
IsMasterResult.cs
12+
MapReduceResult.cs
13+
SafeModeResult.cs
14+
ValidateCollectionResult.cs
15+
WriteConcernResult.cs
16+
now deserialized using standard deserialization mechanisms
17+
18+
CommandResult.cs
19+
now deserialized using standard deserialization mechanisms
20+
removed Initialize method (deserialization handles setting response, Command is now set via the property)
21+
22+
CommandResultSerializer.cs
23+
new serializer for CommandResult and most of its subclasses
24+
some CommandResults have their own serializer (e.g. DistinctCommandResult)
25+
26+
DistinctCommandResult.cs
27+
new subclass of CommandResult for the distinct command
28+
29+
DistinctCommandResultSerializer.cs
30+
new serializer for DistinctCommandResult
31+
32+
MongoInsertMessage.cs
33+
fixed bug in ResetBatch that was affecting InsertBatch with multiple sub-batches
34+
35+
MongoReplyMessage.cs
36+
the serializer to use for the returned documents is now passed in to the constructor
37+
38+
MongoConnection.cs
39+
internal method RunCommand was renamed RunCommandAs<TCommandResult> and now returns a TCommandResult
40+
internal method ReceiveMessage has new serializer parameter so it can pass it along to the MongoReplyMessage constructor
41+
internal method SendMessage now uses standard serialization mechanisms to deserialize the WriteConcernResult
42+
43+
MongoCollection.cs
44+
new Distinct<TValue> method that returns the distinct values as TValue(s) instead of BsonValue(s)
45+
FindAs is now responsible for looking up the serializer for the result documents
46+
RunCommandAs now uses standard serialization mechanisms to deserialize the command result
47+
48+
MongoCursor.cs
49+
now receives the serializer and serialization options to use for the result document in the constructor
50+
added new Serializer property
51+
static Create method now has additional serializer and serialization options parameters
52+
53+
MongoCursorEnumerator.cs
54+
GetReply now uses the serializer and serialization options specified by the cursor
55+
56+
MongoDatabase.cs
57+
fixed bug in Eval that was preventing args being sent to the server when there was exactly one arg

Release Notes/Release Notes v1.8.1.md

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,72 @@
1-
C# Driver Version 1.8.1 Release Notes
2-
=====================================
1+
C#/.NET Driver Version 1.8.1 Release Notes
2+
==========================================
3+
4+
This is a minor release. It should be considered a mandatory upgrade from 1.8. The
5+
issues fixed were minor changes but their impact is not minor. In particular, if
6+
you are using replica sets or are using InsertBatch with very large batches you
7+
should consider 1.8.1 a mandatory upgrade.
8+
9+
An online version of these release notes is available at:
10+
11+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v1.8.1.md
12+
13+
File by file change logs are available at:
14+
15+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.8.1-Bson.txt
16+
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Change%20Log%20v1.8.1-Driver.txt
17+
18+
The full list of JIRA issues resolved in this release is available at:
19+
20+
https://jira.mongodb.org/secure/IssueNavigator.jspa?mode=hide&requestId=13252
21+
22+
Documentation on the C#/.NET driver can be found at:
23+
24+
http://www.mongodb.org/display/DOCS/CSharp+Language+Center
25+
http://api.mongodb.org/csharp/current/
26+
27+
BSON Library Changes
28+
====================
29+
30+
Handling of closed sockets
31+
--------------------------
32+
33+
There was an unfortunate regression in 1.8 with respect to sockets closed by the
34+
server which causes the driver to hang waiting for data that is never going to
35+
arrive.
36+
37+
This was discovered by a user who called Shutdown (which of course resulted in
38+
all sockets being closed), but you could also encounter this issue if
39+
you are connecting to replica sets and the primary closes all sockets when it
40+
steps down (either due to an explicit step down or a re-election).
41+
42+
AscendingGuidGenerator
43+
----------------------
44+
45+
If you are using Guids as your _ids and you want the values to be ascending so
46+
that they are always inserted at the right hand side of the index you can use
47+
this IdGenerator. Note that for the server to see the Guids as ascending you
48+
have to make sure to store them in the right representation, which is
49+
GuidRepresentation.Standard.
50+
51+
We used to recommend CombGuidGenerator for this use case, but we have since
52+
realized that the Guids generated by the CombGuid are only considered ascending
53+
when Guids are compared using SQL Server's method of comparing Guids.
54+
55+
Driver Changes
56+
==============
57+
58+
MongoCollection
59+
---------------
60+
61+
There is a new overload of Distinct which returns the values as TValue(s)
62+
instead of as BsonValue(s).
63+
64+
There was a bug in InsertBatch that resulted in a high probability of
65+
InsertBatch failing if the batch was big enough to have to be split into
66+
multiple sub-batches.
67+
68+
MongoDatabase
69+
-------------
70+
71+
RunCommandAs now uses the standard serialization mechanisms to deserialize
72+
all command results returned from the server.

0 commit comments

Comments
 (0)