[SERVER-53659] Javascript library to take a lock via sleep command and then kill it with killOp Created: 08/Jan/21 Updated: 24/May/21 Resolved: 24/May/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Dianna Hohensee (Inactive) | Assignee: | Dianna Hohensee (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | techdebt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Sprint: | Execution Team 2021-05-17, Execution Team 2021-06-14 |
| Participants: |
| Description |
|
In several JS tests we use the sleep cmd with an hour+ time limit, and then run killOp to terminate the lock. We should formalize this into a library and consolidate the code uses. |
| Comments |
| Comment by Dianna Hohensee (Inactive) [ 24/May/21 ] |
|
I don't think there is a simple way of doing this, what with the async JS thread use, and consequently no longer believe it is worth doing since it would result in a complicated utility. If anyone encounters this redundancy again, and wishes for a library, it would be good to build it on the spot so any useful code notion is fresh, if one can be found. |