[SERVER-60588] $multiply incorrectly throws an error in some cases in the classic engine Created: 09/Oct/21 Updated: 29/Oct/23 Resolved: 20/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.11, 4.2.18, 4.0.28, 5.0.4, 5.1.0-rc2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Drew Paroski | Assignee: | Jennifer Peshansky (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Completed: | |||||||||||||||||||||
| Backport Requested: |
v5.1, v5.0, v4.4, v4.2, v4.0
|
||||||||||||||||||||
| Sprint: | QE 2021-10-18, QE 2021-11-01 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Linked BF Score: | 149 | ||||||||||||||||||||
| Description |
|
I came across a simple case in the classic engine where $multiply throws an error when it shouldn't. Here is the repro: > db.adminCommand({setParameter: 1, internalQueryForceClassicEngine: true}); When I run the commands above in the classic engine, I get the following error: "Executor error during find command :: caused by :: Can't coerce out of range value -9.8696e+34 to long" The example above is simply multiplying the double 1.0 by the double 1.0e+35. There is no reason that this operation should fail. The goal of this task is to investigate why the failure described above is occurring, and to implement the appropriate fix. As part of this work, once the issue is solved, $multiply should be marked as sbe-compatible again (undoing |
| Comments |
| Comment by Githook User [ 03/Nov/21 ] |
|
Author: {'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}Message: (cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62) |
| Comment by Githook User [ 03/Nov/21 ] |
|
Author: {'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}Message: (cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62) |
| Comment by Githook User [ 03/Nov/21 ] |
|
Author: {'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}Message: (cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62) |
| Comment by Githook User [ 20/Oct/21 ] |
|
Author: {'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}Message: (cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62) |
| Comment by Githook User [ 20/Oct/21 ] |
|
Author: {'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}Message: (cherry picked from commit d0a023d1cba8782c761890c20752ecf494d22a62) |
| Comment by Githook User [ 20/Oct/21 ] |
|
Author: {'name': 'Jennifer Peshansky', 'email': 'jennifer.peshansky@mongodb.com', 'username': 'jenniferpeshansky'}Message: |