[SERVER-82781] Simulate crash test hook may leave behind part of file when copying data Created: 03/Nov/23 Updated: 16/Nov/23 Resolved: 06/Nov/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0, 7.0.5, 6.0.13 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Gregory Noma | Assignee: | Gregory Noma |
| 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 Requested: |
v7.0, v6.0
|
||||||||||||||||||||||||
| Sprint: | Execution Team 2023-11-13 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
The simulate crash test hook uses os.sendfile to simulate a crash by copying the data files while the process is stopped. However, if the file size of a table is large enough, it may fail to copy the entire thing. This is because we currently are ignoring the return value from os.sendfile which indicates how many bytes it sent. |
| Comments |
| Comment by Githook User [ 16/Nov/23 ] |
|
Author: {'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}Message: (cherry picked from commit 3dfd298c2f10c27d8ad9c8265067848a48beb333) |
| Comment by Githook User [ 16/Nov/23 ] |
|
Author: {'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}Message: (cherry picked from commit 3dfd298c2f10c27d8ad9c8265067848a48beb333) |
| Comment by Githook User [ 06/Nov/23 ] |
|
Author: {'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}Message: |