[JAVA-2795] Add a query parameter to limit the time an operation runs Created: 27/Feb/18 Updated: 24/May/22 Resolved: 24/May/22 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Connection Management |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Naga Mayakuntla | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Add a new query parameter, similar to maxTimeMS, with the purpose of limiting how long an operation runs from driver/client point of view. It could be a different parameter which acts like maxTimeMS on the backend and which acts like socket timeout on the client side. Socket timeout is a global setting and it does not work well when different operations have different SLA's within the application. maxTimeMS also is not reliable from client point of view as it can take longer than maxTimeMS to get an error. Here is the discussion related to this with Server team : https://jira.mongodb.org/browse/SERVER-31578 |
| Comments |
| Comment by Jeffrey Yemin [ 24/May/22 ] |
|
We are going to implement this in all drivers. Please follow JAVA-3828 to track progress. |