<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:25 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-2941] Use wire version instead of server version to detect wire protocol changes</title>
                <link>https://jira.mongodb.org/browse/JAVA-2941</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When using sessions like they are used in &lt;a href=&quot;https://github.com/louiswilliams/YCSB/blob/caee9757c07148288d4725604a8cd110b41f7514/ycsb-mongodb/mongodb/src/main/java/com/yahoo/ycsb/db/MongoDbClient.java#L204&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this code&lt;/a&gt;, if the server&apos;s &lt;tt&gt;buildInfo&lt;/tt&gt; indicates it does not support sessions, in my case 0.0.0 in a development build, the driver will silently fail. As a consequence, the driver accepted my configuration for sessions with causal consistency, but did not provide me causally consistent reads.&lt;/p&gt;

&lt;p&gt;Using &lt;tt&gt;buildInfo&lt;/tt&gt; to check for features appears to contradict the specification for &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/sessions/driver-sessions.rst#how-to-check-whether-a-deployment-supports-sessions&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;How to Check Whether a Deployment Supports Sessions&lt;/a&gt;. The driver should either report an error in this case or not depend on &lt;tt&gt;buildInfo&lt;/tt&gt; for feature support.&lt;/p&gt;</description>
                <environment></environment>
        <key id="593317">JAVA-2941</key>
            <summary>Use wire version instead of server version to detect wire protocol changes</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="louis.williams@mongodb.com">Louis Williams</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Aug 2018 13:48:35 +0000</created>
                <updated>Sat, 28 Oct 2023 11:22:44 +0000</updated>
                            <resolved>Tue, 4 Dec 2018 00:49:31 +0000</resolved>
                                    <version>3.8.1</version>
                                    <fixVersion>3.10.0</fixVersion>
                                    <component>Wire Protocol</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2113561" author="xgen-internal-githook" created="Mon, 14 Jan 2019 01:17:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;}
&lt;p&gt;Message: Fix a few remaining unit tests&lt;/p&gt;

&lt;p&gt;These are unit tests hiding in a functional test spec that only runs&lt;br/&gt;
on server versions &amp;gt;= 3.6.  Fix them to use getMaxWireVersion instead&lt;br/&gt;
of getServerVersion in ConnectionDescription mocks&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2941&quot; title=&quot;Use wire version instead of server version to detect wire protocol changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2941&quot;&gt;&lt;del&gt;JAVA-2941&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.10.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/675c7419e6972e36b1b8854a45a01b2aaa1c08fb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/675c7419e6972e36b1b8854a45a01b2aaa1c08fb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2113555" author="xgen-internal-githook" created="Mon, 14 Jan 2019 01:17:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;jyemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;}
&lt;p&gt;Message: Add maxWireVersion property to ConnectionDescription&lt;/p&gt;

&lt;p&gt;The maxWireVersion becomes a ConnectionDescription property, which is now&lt;br/&gt;
used by the driver instead of serverVersion to determine what wire protocol&lt;br/&gt;
to use in all situations.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2941&quot; title=&quot;Use wire version instead of server version to detect wire protocol changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2941&quot;&gt;&lt;del&gt;JAVA-2941&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.10.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/a60c0cd9f7754ee16325d28c3ee75dd89f3c61eb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/a60c0cd9f7754ee16325d28c3ee75dd89f3c61eb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2080316" author="xgen-internal-githook" created="Tue, 4 Dec 2018 20:01:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: Fix a few remaining unit tests&lt;/p&gt;

&lt;p&gt;These are unit tests hiding in a functional test spec that only runs&lt;br/&gt;
on server versions &amp;gt;= 3.6.  Fix them to use getMaxWireVersion instead&lt;br/&gt;
of getServerVersion in ConnectionDescription mocks&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2941&quot; title=&quot;Use wire version instead of server version to detect wire protocol changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2941&quot;&gt;&lt;del&gt;JAVA-2941&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e9e8326eec287ff547575ac75d26042494cd868e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e9e8326eec287ff547575ac75d26042494cd868e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2079413" author="xgen-internal-githook" created="Tue, 4 Dec 2018 00:49:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: Add maxWireVersion property to ConnectionDescription&lt;/p&gt;

&lt;p&gt;The maxWireVersion becomes a ConnectionDescription property, which is now&lt;br/&gt;
used by the driver instead of serverVersion to determine what wire protocol&lt;br/&gt;
to use in all situations.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2941&quot; title=&quot;Use wire version instead of server version to detect wire protocol changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2941&quot;&gt;&lt;del&gt;JAVA-2941&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2bed66f3f86fa32ac5464bbf22d5fb304a0e5d27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2bed66f3f86fa32ac5464bbf22d5fb304a0e5d27&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hu3qvj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>