[LU-5297] osp_sync_thread can't handle invalid record gracefully Created: 04/Jul/14 Updated: 22/Sep/15 Resolved: 19/Sep/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.6.0 |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Niu Yawei (Inactive) | Assignee: | Emoly Liu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 14781 | ||||||||||||
| Description |
|
osp_sync_process_queues() now assumes all records to be processed are not corrupted, it's lack of error handling code for invalid records. One solution could be regarding the invalid record as committed and skipping processing on it. |
| Comments |
| Comment by Andreas Dilger [ 04/Jul/14 ] |
|
Is this related to |
| Comment by Niu Yawei (Inactive) [ 07/Jul/14 ] |
That patch was trying to handle error for osp thread, but looks it's not complete. I think the severity isn't high, because there isn't any corrupted record in normal usage. |
| Comment by Alex Zhuravlev [ 07/Jul/14 ] |
|
Niu, could you explain in what part the patch is not complete? what specific cases it doesn't handle? |
| Comment by Niu Yawei (Inactive) [ 07/Jul/14 ] |
That patch decreases opd_syn_rpc_in_flight & opd_syn_rpc_in_progress when skipping a invalid record, that's not enough, because opd_syn_changes isn't decreased and the sync thread will break unexpectedly, and invalid record isn't deleted at the end, I'm afraid it can cause further trouble. |
| Comment by Andreas Dilger [ 09/Jul/14 ] |
|
Niu, were you planning to make a patch for this, or should this bug be moved to 2.7.0? |
| Comment by Niu Yawei (Inactive) [ 10/Jul/14 ] |
|
I don't have plan to make patch yet, probably we'd move it to 2.7. |
| Comment by Gerrit Updater [ 25/May/15 ] |
|
Emoly Liu (emoly.liu@intel.com) uploaded a new patch: http://review.whamcloud.com/14925 |
| Comment by Gerrit Updater [ 19/Sep/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14925/ |
| Comment by Peter Jones [ 19/Sep/15 ] |
|
Landed for 2.8 |