<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:27 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-2957] Prematurely reached end of stream</title>
                <link>https://jira.mongodb.org/browse/JAVA-2957</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;We are getting the error &quot;com.mongodb.MongoSocketReadException: Prematurely reached end of stream&quot; even for simple find/update queries that would normally take few milliseconds.&lt;/p&gt;

&lt;p&gt;Can you please let us know if some kind of connection config on either server or driver would resolve this ?&lt;/p&gt;

&lt;p&gt;Mongodb version: 3.6.6&lt;br/&gt;
Mongodb java driver version: 3.6.4&lt;/p&gt;
</description>
                <environment></environment>
        <key id="598776">JAVA-2957</key>
            <summary>Prematurely reached end of stream</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="13202">Works as Designed</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="yogeshvr">Yogesh VR</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Sep 2018 14:16:12 +0000</created>
                <updated>Fri, 27 Oct 2023 13:21:06 +0000</updated>
                            <resolved>Fri, 7 Sep 2018 19:23:03 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3973469" author="JIRAUSER1261393" created="Fri, 30 Jul 2021 18:53:58 +0000"  >&lt;p&gt;Ross Lawley,&lt;/p&gt;


&lt;p&gt;Could you please elaborate on the fix for this issue here? (com.mongodb.MongoSocketReadException: Prematurely reached end of stream)&lt;/p&gt;</comment>
                            <comment id="1996734" author="yogeshvr" created="Fri, 7 Sep 2018 19:16:14 +0000"  >&lt;p&gt;Hi Ross Lawley,&lt;/p&gt;

&lt;p&gt;Thanks, we had a deployment at the error timestamp, I think this confirms your hypothesis. &lt;/p&gt;

&lt;p&gt;Yogesh VR&lt;/p&gt;</comment>
                            <comment id="1996177" author="ross@10gen.com" created="Fri, 7 Sep 2018 11:30:21 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yogeshvr&quot; class=&quot;user-hover&quot; rel=&quot;yogeshvr&quot;&gt;yogeshvr&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Looking at the logs, my hypothesis is the server was shutdown and as the Mongo Java Driver was reading from the server at the time, it couldn&apos;t read the expected data and threw the &lt;tt&gt;Prematurely reached end of stream&lt;/tt&gt; error.&lt;/p&gt;

&lt;p&gt;I hope that helps,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1991881" author="yogeshvr" created="Mon, 3 Sep 2018 15:57:51 +0000"  >&lt;p&gt;Hi Ross Lawley, &lt;br/&gt;
Please find the attached server log and stacktrace.&lt;br/&gt;
 &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/195242/195242_server-log.txt&quot; title=&quot;server-log.txt attached to JAVA-2957&quot;&gt;server-log.txt&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;  &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/195243/195243_stacktrace.txt&quot; title=&quot;stacktrace.txt attached to JAVA-2957&quot;&gt;stacktrace.txt&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;</comment>
                            <comment id="1991839" author="ross@10gen.com" created="Mon, 3 Sep 2018 14:23:28 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yogeshvr&quot; class=&quot;user-hover&quot; rel=&quot;yogeshvr&quot;&gt;yogeshvr&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This error occurs when the driver fails to read data from the &lt;tt&gt;InputStream&lt;/tt&gt; when its expected to be there.  Providing more information either the full stacktrace or reviewing the server logs for the cause should provide more insight.&lt;/p&gt;

&lt;p&gt;Kind Regards,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="195242" name="server-log.txt" size="576" author="yogeshvr" created="Mon, 3 Sep 2018 15:56:59 +0000"/>
                            <attachment id="195243" name="stacktrace.txt" size="2961" author="yogeshvr" created="Mon, 3 Sep 2018 15:56:58 +0000"/>
                    </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|htxilb:</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>