<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:44 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-3317] Regular expression or query on large column (more than 800 characters) which has an Index results in inconsistent records</title>
                <link>https://jira.mongodb.org/browse/SERVER-3317</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have inserted a record with a value greater than 850 characters. &lt;/p&gt;

&lt;p&gt;&amp;gt; db.testcol.insert({_id:&quot;len850&quot;,v:&quot;http://frame.allposters.com/frameimagehandler/universal/frameimage.jpg?frame=[FAP:0+PRT:[PAP=3945180|PRW=24|PRH=36|PIP=%5c28%5c2810%5cZQIOD00Z.jpg|LFN=GBGN0439.jpg|LFL=|PWL=300|PHL=450|PWO=2397|PHO=3596]+MLD:&lt;span class=&quot;error&quot;&gt;&amp;#91;MID=1153331|MIP=|MDW=1|MDH=0.5625&amp;#93;&lt;/span&gt;+GLS:0+NMM:0+MT1:&lt;span class=&quot;error&quot;&gt;&amp;#91;MTD=0|MTP=|MTC=|MTL=0|MTT=0|MTR=0|MTB=0|MDP=0.2|MBV=0.08&amp;#93;&lt;/span&gt;+MT2:&lt;span class=&quot;error&quot;&gt;&amp;#91;MTD=0|MTP=|MTC=|MTL=0|MTT=0|MTR=0|MTB=0|MDP=0.2|MBV=0.08&amp;#93;&lt;/span&gt;+MT3:&lt;span class=&quot;error&quot;&gt;&amp;#91;MTD=0|MTP=|MTC=|MTL=0|MTT=0|MTR=0|MTB=0|MDP=0.2|MBV=0.08&amp;#93;&lt;/span&gt;+CRP:&lt;span class=&quot;error&quot;&gt;&amp;#91;CID=0|CRX=0|CRY=0|CRW=0|CRH=0&amp;#93;&lt;/span&gt;+LIN:&lt;span class=&quot;error&quot;&gt;&amp;#91;LID=0|LFN=|LNW=0|LND=0&amp;#93;&lt;/span&gt;+CAN:&lt;span class=&quot;error&quot;&gt;&amp;#91;CVD=0|CVC=|CVF=|CVS=0|ECR=|ECB=|BKC=|EDW=0|CTX=1|GWP=0&amp;#93;&lt;/span&gt;+MLF:&lt;span class=&quot;error&quot;&gt;&amp;#91;FLD=0|FLW=0|FFP=&amp;#93;&lt;/span&gt;+LNF:&lt;span class=&quot;error&quot;&gt;&amp;#91;FLD=0|FLW=0|FFP=&amp;#93;&lt;/span&gt;+TMF:&lt;span class=&quot;error&quot;&gt;&amp;#91;FLD=0|FLW=0|FFP=&amp;#93;&lt;/span&gt;+MMF:&lt;span class=&quot;error&quot;&gt;&amp;#91;FLD=0|FLW=0|FFP=&amp;#93;&lt;/span&gt;+BMF:&lt;span class=&quot;error&quot;&gt;&amp;#91;FLD=0|FLW=0|FFP=&amp;#93;&lt;/span&gt;+FDP:0+MXD:1000+MXW:1244+MXH:492+SHI:5+WMT:APC+QLT:85+OVH:&lt;span class=&quot;error&quot;&gt;&amp;#91;TOH=0.25|ROH=0.25|BOH=0.25|LOH=0.25&amp;#93;&lt;/span&gt;+CRZ:&lt;span class=&quot;error&quot;&gt;&amp;#91;CZT=0|CRI=4|LPC=0|TPC=0|WPC=0|HPC=0|CMD=0&amp;#93;&lt;/span&gt;+RTP:[RID=0|RFC=FFFFFF&quot; });&lt;/p&gt;

&lt;p&gt;After that I have used a regular expression to see if the record exists and it returns the record&lt;br/&gt;
&amp;gt; db.testcol.find(&lt;/p&gt;
{v:/frame/i}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;I have added an index on the column with the following command&lt;/p&gt;

&lt;p&gt;&amp;gt; db.testcol.ensureIndex(&lt;/p&gt;
{v:1}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;I reissued the same regular expression and returns no records. If I remove the index, the results are returned. &lt;br/&gt;
&amp;gt; db.testcol.find(&lt;/p&gt;
{v:/frame/i}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;This issue happens for any value greater than 800+. I am not exactly sure what exact character length the index causes the regular expression to fail.&lt;/p&gt;
</description>
                <environment>Windows x64</environment>
        <key id="18596">SERVER-3317</key>
            <summary>Regular expression or query on large column (more than 800 characters) which has an Index results in inconsistent records</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="petmani">Manikandan Ehambaram</reporter>
                        <labels>
                            <label>indexing</label>
                            <label>query</label>
                    </labels>
                <created>Thu, 23 Jun 2011 07:41:34 +0000</created>
                <updated>Fri, 30 Mar 2012 14:24:34 +0000</updated>
                            <resolved>Fri, 2 Sep 2011 05:09:13 +0000</resolved>
                                    <version>1.8.0</version>
                                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="52138" author="eliot" created="Fri, 2 Sep 2011 05:09:13 +0000"  >&lt;p&gt;Fix is &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3372&quot; title=&quot;Allow indexing fields of arbitrary length&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3372&quot;&gt;&lt;del&gt;SERVER-3372&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="39372" author="petmani" created="Mon, 27 Jun 2011 17:28:10 +0000"  >&lt;p&gt;Yes I see a log entry in the Mongod console. &lt;/p&gt;

&lt;p&gt;test.system.indexes Btree::insert: key too large to index, skipping test.testcol.$v_1 862 { : &quot;..&quot; }&lt;/p&gt;

&lt;p&gt;So the solution is, not to index a text field more than 800 bytes or split the column into multiple 800 byte fields. &lt;/p&gt;</comment>
                            <comment id="39207" author="eliot" created="Sat, 25 Jun 2011 05:04:28 +0000"  >&lt;p&gt;The largest field allowed in an index is 800 bytes.&lt;br/&gt;
Larger than that, and the document isn&apos;t indexed.&lt;br/&gt;
You should see an error in the logs or on getLastError after inserting or creating index&lt;/p&gt;</comment>
                            <comment id="39006" author="petmani" created="Fri, 24 Jun 2011 02:08:28 +0000"  >&lt;p&gt;Verified it in the latest production release 1.8.2 and the issue is reproducible. &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>Sat, 25 Jun 2011 05:04:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 24 weeks, 5 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 24 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </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>eliot</customfieldvalue>
            <customfieldvalue>petmani</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrox47:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgilr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9957</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>
                                

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

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