<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:01 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>[GODRIVER-1733] Parse and expose all four lastWrite fields</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1733</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;We&apos;re looking into writing a custom read preference/ServerSelector for our mongo proxy, based on &lt;tt&gt;lastWrite.majorityOpTime&lt;/tt&gt; (basically, we&apos;d like to treat &quot;afterClusterTime&quot; more like read preference, and only select a server if we know it can satisfy this read concern).  Currently, the driver only parses and exposes &lt;tt&gt;lastWrite.lastWriteDate&lt;/tt&gt; (as &lt;tt&gt;description.Server.LastWriteTime&lt;/tt&gt;).  It&apos;d be great if &lt;tt&gt;majorityOpTime&lt;/tt&gt; were also added to &lt;tt&gt;description.Server&lt;/tt&gt; (as e.g. &lt;tt&gt;MajorityOpTime primitive.Timestamp&lt;/tt&gt;).  And, at that point we may as well expose the other two fields (&lt;tt&gt;opTime&lt;/tt&gt; and &lt;tt&gt;majorityWriteDate&lt;/tt&gt;).&lt;/p&gt;

&lt;p&gt;Happy to provide a patch if this seems reasonable!&lt;/p&gt;</description>
                <environment></environment>
        <key id="1456888">GODRIVER-1733</key>
            <summary>Parse and expose all four lastWrite fields</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="bartle">David Bartley</reporter>
                        <labels>
                    </labels>
                <created>Sun, 30 Aug 2020 00:44:11 +0000</created>
                <updated>Wed, 30 Mar 2022 23:41:29 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="3378423" author="divjot.arora" created="Tue, 8 Sep 2020 14:20:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bartle&quot; class=&quot;user-hover&quot; rel=&quot;bartle&quot;&gt;bartle&lt;/a&gt;&#160;Just wanted to let you know that the PR has been merged. I&apos;m going to move this ticket into Open for now. If you want to open a PR for it, I can move it into code review once that&apos;s up.&lt;/p&gt;</comment>
                            <comment id="3368976" author="bartle" created="Mon, 31 Aug 2020 22:20:55 +0000"  >&lt;p&gt;Sounds good, I&apos;ll look into writing a PR once that&apos;s merged.&lt;/p&gt;</comment>
                            <comment id="3368945" author="divjot.arora" created="Mon, 31 Aug 2020 22:02:04 +0000"  >&lt;p&gt;Thanks for the quick response! Are you still open to submitting a PR for this? It&apos;s probably best to wait until&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/494&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/494&lt;/a&gt;&#160;is merged, which moves the &lt;tt&gt;description&lt;/tt&gt; package and some related packages from x to be sub-packages of &lt;tt&gt;mongo&lt;/tt&gt;. If you aren&apos;t able to submit a PR, we&apos;ll likely backlog this and get back to it once we&apos;ve completed some other work we have planned for the 1.5.0 cycle.&lt;/p&gt;</comment>
                            <comment id="3368936" author="bartle" created="Mon, 31 Aug 2020 21:57:26 +0000"  >&lt;p&gt;Yes, storing the raw doc seems reasonable.&lt;/p&gt;</comment>
                            <comment id="3368921" author="divjot.arora" created="Mon, 31 Aug 2020 21:46:10 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bartle&quot; class=&quot;user-hover&quot; rel=&quot;bartle&quot;&gt;bartle&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;d prefer to avoid adding more information to the description.Server type, especially if that information involves additional fields that aren&apos;t actually used by the driver. I understand that these fields are important for your proxy, so one proposal is to store the entire isMaster response in description.Server and add a getter for the raw BSON document. Your proxy can then directly use any fields that are already on description.Server and can parse additional fields from the response document. Does that sound reasonable?&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="397641">GODRIVER-41</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hxpgcf:</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>