[SERVER-8418] text indexes should imply usePowerOf2Sizes Created: 30/Jan/13  Updated: 19/Mar/13  Resolved: 21/Feb/13

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: None
Fix Version/s: 2.4.0-rc1

Type: Improvement Priority: Major - P3
Reporter: Richard Kreuter (Inactive) Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-1254 Text Indexes use powerOf2Sizes Closed
Participants:

 Description   

Filing per Eliot's and Ian's requests.

Text indexes should auto-enable usePowerOf2Sizes, to minimize document moves when possible.



 Comments   
Comment by Ian Whalen (Inactive) [ 21/Feb/13 ]

fts1.js failing under sharding_passthrough (run locally):

*******************************************
         Test : jstests/fts1.js ...
 m30000| Thu Feb 21 14:17:01.687 [initandlisten] connection accepted from 127.0.0.1:63891 #109 (59 connections now open)
 m30001| Thu Feb 21 14:17:01.690 [initandlisten] connection accepted from 127.0.0.1:63892 #117 (51 connections now open)
 m30999| Thu Feb 21 14:17:01.690 [conn1] DROP: test.text1
 m30001| Thu Feb 21 14:17:01.690 [conn86] CMD: drop test.text1
 m30001| Thu Feb 21 14:17:01.692 [conn86] build index test.text1 { _id: 1 }
 m30001| Thu Feb 21 14:17:01.693 [conn86] build index done.  scanned 0 total records. 0 secs
 m30001| Thu Feb 21 14:17:01.696 [conn86] build index test.text1 { _fts: "text", _ftsx: 1 }
 m30001| Thu Feb 21 14:17:01.704 [conn86] build index done.  scanned 4 total records. 0.008 secs
assert: [0] != [1] are not equal : Creating a text index on a collection should change the allocation strategy to power-of-2.
Error: Printing Stack Trace
    at printStackTrace (src/mongo/shell/utils.js:37:7)
    at doassert (src/mongo/shell/assert.js:6:1)
    at Function.assert.eq (src/mongo/shell/assert.js:32:1)
    at jstests/fts1.js:15:8
    at /Users/ianwhalen/code/mongodb/mongo/jstests/slowNightly/sharding_passthrough.js:140:13
    at Function.Date.timeFunc (src/mongo/shell/types.js:27:9)
    at /Users/ianwhalen/code/mongodb/mongo/jstests/slowNightly/sharding_passthrough.js:139:14
    at Array.forEach (native)
    at /Users/ianwhalen/code/mongodb/mongo/jstests/slowNightly/sharding_passthrough.js:9:7
Thu Feb 21 14:17:01.707 JavaScript execution failed: [0] != [1] are not equal : Creating a text index on a collection should change the allocation strategy to power-of-2. at src/mongo/shell/assert.js:L7
Thu Feb 21 14:17:01.707 JavaScript execution failed: Error: error loading js file: jstests/fts1.js at /Users/ianwhalen/code/mongodb/mongo/jstests/slowNightly/sharding_passthrough.js:L140
failed to load: /Users/ianwhalen/code/mongodb/mongo/jstests/slowNightly/sharding_passthrough.js

Comment by auto [ 21/Feb/13 ]

Author:

{u'date': u'2013-02-20T22:42:56Z', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-8418 Enable usePowerOf2Sizes on collection upon text index creation.

Second take. Fixes original problem, when indexes had a NULL type.
Branch: master
https://github.com/mongodb/mongo/commit/eb61bc9a8c04f11b76c280a7e7fe76d9aa1547a5

Comment by Andy Schwerin [ 20/Feb/13 ]

Segfaults in tests on buildbots.

Comment by auto [ 20/Feb/13 ]

Author:

{u'date': u'2013-02-20T22:26:55Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: Revert "SERVER-8418 Enable usePowerOf2Sizes on collection upon text index creation."

This reverts commit 6ddad8c0d34bdd0e1c08a85cf35b1fd0f0f235e2.
Breaking slowNightly/32bit.js
Branch: master
https://github.com/mongodb/mongo/commit/1e1ee889c2bc36b315b1e92a50db0c996e90d5b9

Comment by auto [ 20/Feb/13 ]

Author:

{u'date': u'2013-02-20T15:34:19Z', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-8418 Enable usePowerOf2Sizes on collection upon text index creation.

Signed-off-by: Andy Schwerin <schwerin@10gen.com>
Branch: master
https://github.com/mongodb/mongo/commit/6ddad8c0d34bdd0e1c08a85cf35b1fd0f0f235e2

Generated at Thu Feb 08 03:17:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.