<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:26:33 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>[SERVER-51824] Unable to query for recent data</title>
                <link>https://jira.mongodb.org/browse/SERVER-51824</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have two micro services where one write to DB and another read from DB.&lt;/p&gt;

&lt;p&gt;The first micro service is written in C++ while the other is written in NodeJS.&lt;/p&gt;

&lt;p&gt;When querying for data say for a IP the MongoDB return older data or no data at all (In case if the client is new) but If I query like say after 5 min it returns the recent data.&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;await Sessions.find({ ip: ip}).sort({ receive_time: -&lt;/span&gt;&lt;span style=&quot;color: #009900; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; }).lean().limit(&lt;/span&gt;&lt;span style=&quot;color: #009900; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;).exec();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Every record on DB has a field called&#160;receive_time which I used to store 64 bit timestamp&#160;&lt;/p&gt;

&lt;p&gt;I don&apos;t think this has to do with concurrency at all because C++ is performant enough to write to DB faster&lt;/p&gt;

&lt;p&gt;Worth noting, The database is in a separate server.&lt;/p&gt;

&lt;p&gt;If it possible to disable cache, please tell me how, I&apos;d disable it completely.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1524146">SERVER-51824</key>
            <summary>Unable to query for recent data</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="arathrelfall135@gmail.com">Ara Threlfall</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Oct 2020 19:14:44 +0000</created>
                <updated>Mon, 30 Nov 2020 18:00:15 +0000</updated>
                            <resolved>Tue, 17 Nov 2020 17:46:58 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3508809" author="thomas.schubert" created="Mon, 30 Nov 2020 18:00:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=arathrelfall135%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;arathrelfall135@gmail.com&quot;&gt;arathrelfall135@gmail.com&lt;/a&gt;, I&#8217;ve removed your last two comments as they violate our &lt;a href=&quot;https://www.mongodb.com/community-code-of-conduct&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Code of Conduct&lt;/a&gt;. Reviewing the threads on this ticket and on the community forums, there is no evidence of a MongoDB Server issue as Stennie explained in &lt;a href=&quot;https://developer.mongodb.com/community/forums/t/unable-to-query-for-recent-data/10943/26&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;his comment&lt;/a&gt;. I recognize your frustration, but, unfortunately, it is not feasible for us to investigate and diagnose issues outside of MongoDB that require a deep understanding of the application layer on this jira project.&lt;/p&gt;</comment>
                            <comment id="3494103" author="eric.sedor" created="Tue, 17 Nov 2020 17:46:33 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=arathrelfall135%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;arathrelfall135@gmail.com&quot;&gt;arathrelfall135@gmail.com&lt;/a&gt;, I understand your frustration but encourage staying engaged on the&#160;&lt;a href=&quot;https://community.mongodb.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;community forums&lt;/a&gt;&#160;and working towards example code that clearly demonstrates the behavior outside of the app, if possible, or highlights what the app is doing that&apos;s leading to this. Again, the SERVER project is for issues with the MongoDB core server, so we need a clearer starting point that implicates server behavior. I&apos;m going to close this ticket but we can re-open it given additional information.&lt;/p&gt;

&lt;p&gt;Sincerely,&lt;br/&gt;
Eric&lt;/p&gt;</comment>
                            <comment id="3483553" author="JIRAUSER1257379" created="Tue, 10 Nov 2020 16:11:16 +0000"  >&lt;p&gt;Any update?&lt;/p&gt;</comment>
                            <comment id="3473108" author="JIRAUSER1257379" created="Tue, 3 Nov 2020 07:07:44 +0000"  >&lt;p&gt;I did like you said but received no further responses after providing everything they have asked.&lt;/p&gt;

&lt;p&gt;Here is the thread&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://developer.mongodb.com/community/forums/t/unable-to-query-for-recent-data/10943&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://developer.mongodb.com/community/forums/t/unable-to-query-for-recent-data/10943&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3463855" author="eric.sedor" created="Mon, 26 Oct 2020 20:55:13 +0000"  >&lt;p&gt;I&apos;m sorry to hear that &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=arathrelfall135%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;arathrelfall135@gmail.com&quot;&gt;arathrelfall135@gmail.com&lt;/a&gt; and understand that would be frustrating. It is indeed possible a bug is involved, but to investigate that here we would need to see the problem narrowed down. That no data is returned by a new client does suggest some kind of race condition even if it is not an issue of the performance of concurrent operations.&lt;/p&gt;

&lt;p&gt;Unless you are able to reproduce the issue on a specific set of documents outside of the use of await and lean, we really do think the best next step is to post on the &lt;a href=&quot;https://community.mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Developer Community Forums&lt;/a&gt;. MongoDB team members and community champions are active in the community forums and may be able to assist you there. When you post there, it would be helpful to share more details about your environment such as your versions of Node.js, MongoDB Node.js driver, and MongoDB server; the type of deployment (standalone, replica set, or sharded cluster); and the indexes on the collection.&lt;/p&gt;</comment>
                            <comment id="3463630" author="JIRAUSER1257379" created="Mon, 26 Oct 2020 18:53:57 +0000"  >&lt;p&gt;Eric,&lt;/p&gt;

&lt;p&gt;I&apos;ve asked on many communities including Stackoverflow and even waited a year to get an answer so I assume this is a bug that no one can find answer for.&#160;&lt;/p&gt;</comment>
                            <comment id="3463284" author="eric.sedor" created="Mon, 26 Oct 2020 15:58:45 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=arathrelfall135%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;arathrelfall135@gmail.com&quot;&gt;arathrelfall135@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The SERVER project is for bugs and feature suggestions for the MongoDB server. For this issue we&apos;d like to encourage you to start by asking our community for help by posting on the &lt;a href=&quot;https://community.mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Developer Community Forums&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If the discussion there leads you to suspect a bug in the MongoDB server, then we&apos;d want to discuss here in the SERVER project. Does this make sense?&lt;/p&gt;

&lt;p&gt;Sincerely,&lt;br/&gt;
Eric&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 26 Oct 2020 15:58:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 10 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 10 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>arathrelfall135@gmail.com</customfieldvalue>
            <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyecbb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hy0jef:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[eric.sedor@mongodb.com]]></customfieldvalue>
        <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hydykn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>