Cleanup of bounds-handling cases

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.9.0
    • Affects Version/s: 1.7.4
    • Component/s: Geo, Index Maintenance
    • None
    • Environment:
      Linux 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 02:41:37 UTC 2010 x86_64 GNU/Linux
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Adding locations on the boundaries of a geo-indexed collection causes no problems on max values, but min values throw ugly assertation errors. Should probably be either allowed or checked with a more useful exception thrown.

      Fri Jan 21 11:11:28 [conn3] test.borders Assertion failure in > 0 db/geo/2d.cpp 199
      0x508113 0x513521 0x6e028a 0x6e2110 0x6e2fdb 0x584570 0x69a3c9 0x69e6b8 0x69f99a 0x68019c 0x6857c2 0x7693ef 0x7f9572e03230 0x7f957351e971 0x7f9571b0092d
      /opt/mongo/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xb3) [0x508113]
      /opt/mongo/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0xc1) [0x513521]
      /opt/mongo/bin/mongod(_ZNK5mongo9Geo2dType4hashEdd+0x7a) [0x6e028a]
      /opt/mongo/bin/mongod(_ZNK5mongo9Geo2dType5_hashERKNS_7BSONObjE+0x1a0) [0x6e2110]
      /opt/mongo/bin/mongod(_ZNK5mongo9Geo2dType7getKeysERKNS_7BSONObjERSt3setIS1_NS_22BSONObjCmpDefaultOrderESaIS1_EE+0xeb) [0x6e2fdb]
      /opt/mongo/bin/mongod(_ZNK5mongo9IndexSpec7getKeysERKNS_7BSONObjERSt3setIS1_NS_22BSONObjCmpDefaultOrderESaIS1_EE+0x40) [0x584570]
      /opt/mongo/bin/mongod() [0x69a3c9]
      /opt/mongo/bin/mongod(_ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb+0x1828) [0x69e6b8]
      /opt/mongo/bin/mongod(_ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb+0x4a) [0x69f99a]
      /opt/mongo/bin/mongod(_ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE+0x27c) [0x68019c]
      /opt/mongo/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x13f2) [0x6857c2]
      /opt/mongo/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x2cf) [0x7693ef]
      /usr/lib/libboost_thread.so.1.42.0(thread_proxy+0x60) [0x7f9572e03230]
      /lib/libpthread.so.0(+0x7971) [0x7f957351e971]
      /lib/libc.so.6(clone+0x6d) [0x7f9571b0092d]
      Fri Jan 21 11:11:28 [conn3] test.borders Assertion failure in > 0 db/geo/2d.cpp 199
      0x508113 0x513521 0x6e028a 0x6e2110 0x6e2fdb 0x584570 0x699a50 0x69f7db 0x69f99a 0x68019c 0x6857c2 0x7693ef 0x7f9572e03230 0x7f957351e971 0x7f9571b0092d
      /opt/mongo/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xb3) [0x508113]
      /opt/mongo/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0xc1) [0x513521]
      /opt/mongo/bin/mongod(_ZNK5mongo9Geo2dType4hashEdd+0x7a) [0x6e028a]
      /opt/mongo/bin/mongod(_ZNK5mongo9Geo2dType5_hashERKNS_7BSONObjE+0x1a0) [0x6e2110]
      /opt/mongo/bin/mongod(_ZNK5mongo9Geo2dType7getKeysERKNS_7BSONObjERSt3setIS1_NS_22BSONObjCmpDefaultOrderESaIS1_EE+0xeb) [0x6e2fdb]
      /opt/mongo/bin/mongod(_ZNK5mongo9IndexSpec7getKeysERKNS_7BSONObjERSt3setIS1_NS_22BSONObjCmpDefaultOrderESaIS1_EE+0x40) [0x584570]
      /opt/mongo/bin/mongod() [0x699a50]
      /opt/mongo/bin/mongod(_ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb+0x294b) [0x69f7db]
      /opt/mongo/bin/mongod(_ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb+0x4a) [0x69f99a]
      /opt/mongo/bin/mongod(_ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE+0x27c) [0x68019c]
      /opt/mongo/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x13f2) [0x6857c2]
      /opt/mongo/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x2cf) [0x7693ef]
      /usr/lib/libboost_thread.so.1.42.0(thread_proxy+0x60) [0x7f9572e03230]
      /lib/libpthread.so.0(+0x7971) [0x7f957351e971]
      /lib/libc.so.6(clone+0x6d) [0x7f9571b0092d]
      Fri Jan 21 11:11:28 [conn3] insert test.borders exception 0 assertion db/geo/2d.cpp:199 10ms
      in > 0

            Assignee:
            Greg Studer (Inactive)
            Reporter:
            Greg Studer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: