[SERVER-13812] Catch exception thrown by getShardsForQuery for geo query Created: 01/May/14  Updated: 11/Jul/16  Resolved: 02/May/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.6.2, 2.7.0

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:
Linked BF Score: 0

 Description   

getShardsForQuery may throw exception with uassert, but write command should not throw. Add try catch around the call.



 Comments   
Comment by Daniel Pasette (Inactive) [ 16/May/14 ]

I only backported the code change as the test code change depends on the test migration that happened in 2.7.0 and which will not be backported.

Comment by Githook User [ 16/May/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-13812 Catch exception thrown by getShardsForQuery for geo query
(cherry picked from commit 16169267c6ece79e25f2722a50a3f915728fdb09)
Branch: v2.6
https://github.com/mongodb/mongo/commit/ef0072b437a26083d9c930cccab44042f716b8a5

Comment by Githook User [ 06/May/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-13812 Add test case of GLE for unsupported
Branch: master
https://github.com/mongodb/mongo/commit/688b0585cb2cc0cdeffb019f88643b2340c55d17

Comment by Matt Kangas [ 02/May/14 ]

Note, there is a test improvement that we need to backport which makes this bug visible. Siyuan - please add info?

Comment by Githook User [ 02/May/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-13812 Catch exception thrown by getShardsForQuery for geo query
Branch: master
https://github.com/mongodb/mongo/commit/16169267c6ece79e25f2722a50a3f915728fdb09

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