<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:28 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-3802] I got an error &apos;Query failed with error code -5 and error message Cursor&apos;. This error make our server load up to 100%,</title>
                <link>https://jira.mongodb.org/browse/JAVA-3802</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I got an error &apos;Query failed with error code -5 and error message Cursor&apos;. This error make our server load up to 100%.&lt;/p&gt;

&lt;p&gt;The java driver throw a no cursor found exception like this:&lt;/p&gt;

&lt;p&gt;org.springframework.dao.DataAccessResourceFailureException: Query failed with error code -5 and error message &apos;Cursor 3180947591717134009 not found on server 10.105.21&lt;br/&gt;
.185:27117&apos; on server 10.105.21.185:27117; nested exception is com.mongodb.MongoCursorNotFoundException: Query failed with error code -5 and error message &apos;Cursor 3180&lt;br/&gt;
947591717134009 not found on server 10.105.21.185:27117&apos; on server 10.105.21.185:27117&lt;br/&gt;
 at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:90)&lt;br/&gt;
 at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:2756)&lt;br/&gt;
 at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:2666)&lt;br/&gt;
 at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:2386)&lt;br/&gt;
 at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:2369)&lt;br/&gt;
 at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:820)&lt;br/&gt;
 at com.tmxbase.processserver.dal.dao.TranslationSegmentDAO.loadByDocumentId(TranslationSegmentDAO.java:198)&lt;br/&gt;
 at com.tmxbase.processserver.dal.dao.TranslationSegmentDAO$$FastClassBySpringCGLIB$$ea3b06ee.invoke(&amp;lt;generated&amp;gt;)&lt;br/&gt;
 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)&lt;br/&gt;
 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)&lt;br/&gt;
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)&lt;br/&gt;
 at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)&lt;br/&gt;
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)&lt;br/&gt;
 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)&lt;br/&gt;
 at com.tmxbase.processserver.dal.dao.TranslationSegmentDAO$$EnhancerBySpringCGLIB$$cd2b90ac.loadByDocumentId(&amp;lt;generated&amp;gt;)&lt;br/&gt;
 at com.tmxbase.processserver.service.YiCATCountProcess.calculateRepeat(YiCATCountProcess.java:111)&lt;br/&gt;
 at com.tmxbase.processserver.mq.consumer.QueenConsumer.receiveCalculateRepeat(QueenConsumer.java:281)&lt;br/&gt;
 at sun.reflect.GeneratedMethodAccessor381.invoke(Unknown Source)&lt;br/&gt;
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
 at java.lang.reflect.Method.invoke(Method.java:498)&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I got the cursor id in mongos.log.&#160; like this:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;2020-07-31T10:46:27.153+0800 I COMMAND &lt;span class=&quot;error&quot;&gt;&amp;#91;conn288126&amp;#93;&lt;/span&gt; command tmxbase.TranslationSegmentCollection_50 command: find { find: &quot;TranslationSegmentCollection_50&quot;, filter: &lt;/p&gt;
{ documentId: &quot;2020072309573638910900167092931_zh-CN&quot; }
&lt;p&gt;, sort: { seqNum: 1 }, $db: &quot;tmxbase&quot;, $clusterTime: { clusterTime: Timestamp(1596163425, 4), signature: &lt;/p&gt;
{ hash:BinData(0, 2FC1FA509A43BC53338067B27B62EDA5A7E73EA7), keyId: 6828170725514280961 }
&lt;p&gt; }, lsid: { id: UUID(&quot;337b7651-68a0-4771-b2a5-d6ea9a683820&quot;) } } nShards:2 cursorid:3180947591717134009 numYields:0 nreturned:101 reslen:242627 protocol:op_msg 161686ms&lt;br/&gt;
2020-07-31T10:54:12.537+0800 I COMMAND &lt;span class=&quot;error&quot;&gt;&amp;#91;conn288126&amp;#93;&lt;/span&gt; command tmxbase.TranslationSegmentCollection_50 command: getMore { getMore: 3180947591717134009, collection: &quot;TranslationSegmentCollection_50&quot;, $db: &quot;tmxbase&quot;, $clusterTime: { clusterTime: Timestamp(1596163587, 2), signature: &lt;/p&gt;
{ hash: BinData(0, 36E0558D9FFF999917224010F85A8EBBEF3DDC22), keyId: 6828170725514280961 }
&lt;p&gt; }, lsid: { id: UUID(&quot;337b7651-68a0-4771-b2a5-d6ea9a683820&quot;) } } originatingCommand: { find: &quot;TranslationSegmentCollection_50&quot;, filter: &lt;/p&gt;
{ documentId: &quot;2020072309573638910900167092931_zh-CN&quot; }
&lt;p&gt;, sort: { seqNum: 1 }, $db: &quot;tmxbase&quot;, $clusterTime: { clusterTime: Timestamp(1596163425, 4), signature: &lt;/p&gt;
{ hash: BinData(0, 2FC1FA509A43BC53338067B27B62EDA5A7E73EA7), keyId: 6828170725514280961 }
&lt;p&gt; }, lsid: { id: UUID(&quot;337b7651-68a0-4771-b2a5-d6ea9a683820&quot;) } } nShards:2 cursorid:3180947591717134009 numYields:0 ok:0 errMsg:&quot;cursor id 8226761856981 not found&quot; errName:CursorNotFound errCode:43 reslen:248 protocol:op_msg 465374ms&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;To get the curor, the mongodb consume a lot time and failed.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I try to modify the mongodb driver&apos;s maxWaiting time to 15s, but this didn&apos;t work.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Anyone have the same problem?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1425240">JAVA-3802</key>
            <summary>I got an error &apos;Query failed with error code -5 and error message Cursor&apos;. This error make our server load up to 100%,</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="chenjian@tmxmall.com">Chen Jian</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Jul 2020 03:46:06 +0000</created>
                <updated>Mon, 3 Aug 2020 14:10:36 +0000</updated>
                            <resolved>Mon, 3 Aug 2020 14:10:36 +0000</resolved>
                                    <version>4.0.0</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3317523" author="esha.bhargava" created="Mon, 3 Aug 2020 14:10:28 +0000"  >&lt;p&gt;Hi there, thank you for reaching out. As this sounds like a support issue, 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;br/&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>
                    </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|hr6ten:</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>