<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:09 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>[CSHARP-2652] C# API timeout on logical cache refresh</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2652</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In Mongo logs there are intermittent entries below. During same time it is observed that the C# APIs accessing data from MongoDB timeout with 504 error. Please suggest the root cause of this problem and probable solution. Sharing sample log lines below:&lt;/p&gt;

&lt;p&gt;I WRITE&#160;&#160;&#160; &lt;span class=&quot;error&quot;&gt;&amp;#91;LogicalSessionCacheRefresh&amp;#93;&lt;/span&gt; update config.system.sessions command: { q: { _id: &lt;/p&gt;
{ id: UUID(&quot;0c9936f3-8cbd-4518-ab7e-93a4c68138c7&quot;), uid: BinData(0, 3B408CB48548B5037822C10EB0976B3CBF2CEE3BF9C708796BF03941FBECD80F) }
&lt;p&gt; }, u: { $currentDate: &lt;/p&gt;
{ lastUse: true }
&lt;p&gt;, $setOnInsert: { user: &lt;/p&gt;
{ name: &quot;admin@admin&quot; }
&lt;p&gt; } }, multi: false, upsert: true } planSummary: IDHACK keysExamined:0 docsExamined:0 nMatched:0 nModified:0 upsert:1 keysInserted:2 numYields:1 locks:{ Global: { acquireCount: &lt;/p&gt;
{ r: 2, w: 2 }
&lt;p&gt; }, Database: { acquireCount: &lt;/p&gt;
{ w: 2 }
&lt;p&gt; }, Collection: { acquireCount: &lt;/p&gt;
{ w: 2 }
&lt;p&gt; } } 10497ms&lt;/p&gt;


&lt;p&gt;I COMMAND&#160; &lt;span class=&quot;error&quot;&gt;&amp;#91;LogicalSessionCacheRefresh&amp;#93;&lt;/span&gt; command config.$cmd command: update { update: &quot;system.sessions&quot;, ordered: false, allowImplicitCollectionCreation: false, writeConcern: &lt;/p&gt;
{ w: &quot;majority&quot;, wtimeout: 15000 }
&lt;p&gt;, $db: &quot;config&quot; } numYields:0 reslen:97965 locks:{ Global: { acquireCount: &lt;/p&gt;
{ r: 1002, w: 1002 }
&lt;p&gt; }, Database: { acquireCount: &lt;/p&gt;
{ w: 1002 }
&lt;p&gt; }, Collection: { acquireCount: &lt;/p&gt;
{ w: 1002 }
&lt;p&gt; } } protocol:op_msg 10576ms&lt;/p&gt;</description>
                <environment></environment>
        <key id="815250">CSHARP-2652</key>
            <summary>C# API timeout on logical cache refresh</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="krati">Krati Singh</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Jun 2019 14:53:23 +0000</created>
                <updated>Thu, 2 Jul 2020 18:09:49 +0000</updated>
                            <resolved>Thu, 2 Jul 2020 18:09:49 +0000</resolved>
                                    <version>2.5</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3268886" author="esha.bhargava" created="Thu, 2 Jul 2020 18:09:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=krati&quot; class=&quot;user-hover&quot; rel=&quot;krati&quot;&gt;krati&lt;/a&gt; Apologies for the delay in responding to this request. This sounds like a support issue, so I wanted to give you some resources to get this questioned answered more quickly:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;our MongoDB support portal, located at &lt;a href=&quot;https://support.mongodb.com/welcome&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;support.mongodb.com&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;our MongoDB community portal, located &lt;a href=&quot;https://developer.mongodb.com/community/forums/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;If you are an Atlas customer, there is free support offered 24/7 in the lower right hand corner of the UI.&lt;br/&gt;
Just in case you have already opened a support case and are not receiving sufficient help, please let me know and I can facilitate escalating your issue.&lt;br/&gt;
Thank you!&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="2338181" author="krati" created="Tue, 23 Jul 2019 06:29:56 +0000"  >&lt;p&gt;Hello Team,&lt;/p&gt;

&lt;p&gt;Please share if there is any update on the issue?&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;

&lt;p&gt;Krati&lt;/p&gt;</comment>
                            <comment id="2336750" author="krati" created="Mon, 22 Jul 2019 15:49:16 +0000"  >&lt;p&gt;This intermittent error in APIs is causing application UI to show error too:&#160; &#160;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 500 Error while serving the API request, please try again: &lt;span class=&quot;error&quot;&gt;&amp;#91;Title&amp;#39;&amp;#39;: &amp;#39;Exception has occurred&amp;#39;,&amp;#39;Message&amp;#39;:&amp;quot;&amp;#39;Command aggregrate failed:cannot add session into cache&amp;#39;&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="2336749" author="krati" created="Mon, 22 Jul 2019 15:48:32 +0000"  >&lt;p&gt;Sharing the responses below. Please help suggest the root cause of the problem and probable solution. Thank you!!&lt;br/&gt;
&#160;&lt;br/&gt;
&#8226;MongoDB server version &#8211; 4.0&lt;br/&gt;
&#160;&lt;br/&gt;
&#8226;MongoDB .NET/C# driver version &#8211; 2.5&lt;br/&gt;
&#160;&lt;br/&gt;
&#8226;Stack trace error of the application from the driver:&lt;br/&gt;
&quot;Exception&quot;:&quot;Command findAndModify failed: cannot add session into the cache.&quot;, &quot;StackTrace&quot;:&quot;&#160;&#160; at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.ProcessReply(ConnectionId connectionId, ReplyMessage`1 reply)\r\n&#160;&#160; at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.Execute(IConnection connection, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Servers.Server.ServerChannel.ExecuteProtocol&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWireProtocol`1 protocol, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Servers.Server.ServerChannel.Command&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(ICoreSession session, ReadPreference readPreference, DatabaseNamespace databaseNamespace, BsonDocument command, IElementNameValidator commandValidator, BsonDocument additionalOptions, Func`1 responseHandling, Boolean slaveOk, IBsonSerializer`1 resultSerializer, MessageEncoderSettings messageEncoderSettings, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelHandle channel, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Operations.CommandOperationBase`1.ExecuteProtocol(IChannelSource channelSource, ICoreSessionHandle session, ReadPreference readPreference, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Operations.WriteCommandOperation`1.Execute(IWriteBinding binding, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Operations.FindAndModifyOperationBase`1.ExecuteAttempt(RetryableWriteContext context, Int32 attempt, Nullable`1 transactionNumber, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Operations.RetryableWriteOperationExecutor.Execute&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IRetryableWriteOperation`1 operation, RetryableWriteContext context, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Operations.RetryableWriteOperationExecutor.Execute&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IRetryableWriteOperation`1 operation, IWriteBinding binding, Boolean retryRequested, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.Core.Operations.FindAndModifyOperationBase`1.Execute(IWriteBinding binding, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.OperationExecutor.ExecuteWriteOperation&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IWriteBinding binding, IWriteOperation`1 operation, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.MongoCollectionImpl`1.ExecuteWriteOperation&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(IClientSessionHandle session, IWriteOperation`1 operation, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.MongoCollectionImpl`1.FindOneAndUpdate&lt;span class=&quot;error&quot;&gt;&amp;#91;TProjection&amp;#93;&lt;/span&gt;(IClientSessionHandle session, FilterDefinition`1 filter, UpdateDefinition`1 update, FindOneAndUpdateOptions`2 options, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.MongoCollectionImpl`1.\u003c\u003ec_&lt;em&gt;DisplayClass47_0`1.\u003cFindOneAndUpdate\u003eb&lt;/em&gt;_0(IClientSessionHandle session)\r\n&#160;&#160; at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSession&lt;span class=&quot;error&quot;&gt;&amp;#91;TResult&amp;#93;&lt;/span&gt;(Func`2 func, CancellationToken cancellationToken)\r\n&#160;&#160; at MongoDB.Driver.MongoCollectionImpl`1.FindOneAndUpdate&lt;span class=&quot;error&quot;&gt;&amp;#91;TProjection&amp;#93;&lt;/span&gt;(FilterDefinition`1 filter, UpdateDefinition`1 update, FindOneAndUpdateOptions`2 options, CancellationToken cancellationToken)\r\n&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|huwdav:</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>