<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:30:22 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-32481] &quot;cleanup orphaned documents&quot; is not useful for hashed sharding cluster</title>
                <link>https://jira.mongodb.org/browse/SERVER-32481</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;we use  hashed sharding  cluster and find some orphaned document ,&lt;br/&gt;
cleanup those documents according url from :   &quot;Remove All Orphaned Documents from a Shard&quot; section, but it doesn&apos;t work.&lt;/p&gt;

&lt;p&gt;some logs from  mongodb log&#65306;&lt;/p&gt;

&lt;p&gt;2017-12-29T10:24:13.476+0800 I SHARDING &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1255226&amp;#93;&lt;/span&gt; rangeDeleter deleted 0 documents for geo.geo_position from &lt;/p&gt;
{ bssid: -8578565845206905770 }
&lt;p&gt; -&amp;gt; &lt;/p&gt;
{ bssid: -8573966000237967271 }

&lt;p&gt;&lt;b&gt;all of  these logs are deleted 0 documents.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;is it just  suitable for ranged sharding cluseter &#65311;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="476881">SERVER-32481</key>
            <summary>&quot;cleanup orphaned documents&quot; is not useful for hashed sharding cluster</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="5">Cannot Reproduce</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="shawn001">shawn</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Dec 2017 02:59:58 +0000</created>
                <updated>Sun, 4 Nov 2018 17:16:25 +0000</updated>
                            <resolved>Sun, 14 Oct 2018 04:42:00 +0000</resolved>
                                    <version>3.4.9</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="2032300" author="shawn001" created="Sun, 14 Oct 2018 03:54:33 +0000"  >&lt;p&gt;HI&lt;/p&gt;

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

&lt;p&gt;We gave up using mongodb&#160; in this case.&lt;/p&gt;

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

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="2030941" author="thomas.schubert" created="Fri, 12 Oct 2018 03:20:14 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Sorry for the delay getting back to you. Periodically, I&apos;ve been looking back at this ticket trying different approaches to repro the behavior that you&apos;re describing without much luck. Is this still an issue for you?&lt;/p&gt;

&lt;p&gt;I would expect that that in the example above, &lt;tt&gt;&quot;bsid&quot; : &quot;a6:21:00:00:2f:36&quot;&lt;/tt&gt; would be hashed to &lt;tt&gt;-8248819770576429154&lt;/tt&gt; so that&apos;s the range to pay attention to when running the cleanupOrphan command. If you&apos;re still encountering this issue, the next diagnostic steps would require access to the files in your &lt;tt&gt;$dbpath&lt;/tt&gt;, is this something that you would be able to provide if we provided a secure upload portal?&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                            <comment id="1762119" author="shawn001" created="Sun, 31 Dec 2017 13:49:59 +0000"  >&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;when i  executed clean orphaned document command , i  find a document which has knowed  from  two shard,  it still exists  in two shards.&lt;br/&gt;
bsid is the shard key.&lt;/p&gt;

&lt;p&gt;shard1:PRIMARY&amp;gt; db.table.find(&lt;/p&gt;
{&quot;bsid&quot;: &quot;a6:21:00:00:2f:36&quot;}
&lt;p&gt;)&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;5a3927bd4cd0886da42fe3e5&quot;), &quot;bsid&quot; : &quot;a6:21:00:00:2f:36&quot;, &quot;diam&quot; : -1, &quot;sid&quot; : &quot;JS-AP&quot;, &quot;calculateDate&quot; : ISODate(&quot;2017-12-22T23:59:59Z&quot;), &quot;weight&quot; : 0, &quot;imeiCount&quot; : 50, &quot;source&quot; : &quot;calculate_tracking&quot;, &quot;flag&quot; : 0&quot;,accuracy&quot; : 500 }


&lt;p&gt;shard3:PRIMARY&amp;gt; db.table.find(&lt;/p&gt;
{&quot;bsid&quot;: &quot;a6:21:00:00:2f:36&quot;}
&lt;p&gt;)&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;5a3927bd4cd0886da42fe3e5&quot;), &quot;bsid&quot; : &quot;a6:21:00:00:2f:36&quot;, &quot;diam&quot; : -1, &quot;sid&quot; : &quot;JS-AP&quot;, &quot;calculateDate&quot; : ISODate(&quot;2017-12-17T23:59:59Z&quot;), &quot;weight&quot; : 0, &quot;imeiCount&quot; : 9, &quot;source&quot; : &quot;calculate_tracking&quot;, &quot;flag&quot; : 0, &quot;accuracy&quot; : 500 }</comment>
                            <comment id="1761525" author="thomas.schubert" created="Fri, 29 Dec 2017 16:45:56 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=shawn001&quot; class=&quot;user-hover&quot; rel=&quot;shawn001&quot;&gt;shawn001&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Would you please provide a query (run directly against the mongod, not through the mongos) that shows an orphan document that is not cleaned up by the command?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Kelsey&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 29 Dec 2017 16:45:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 17 weeks, 4 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 17 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>shawn001</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htn09b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htekd3:</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[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|htmmdr:</customfieldvalue>

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