Data processing
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorsYang XIANG, Yuanzhi QI, Jie YAN, Bin ZHANG, Qi WU, Ming Chen, Qingxiao NI
Life of this patent
Estimating the term…
Abstract
Provided are a data processing method and an apparatus thereof. The method includes: when data writing is to be performed for a target Trunk Group (TKG), determining whether the target TKG is available (S100); when the target TKG is available, performing data writing for the target TKG (S110); and, when the target TKG is unavailable, repairing the target TKG, and performing data writing for the repaired target TKG (S120).
Claims14
A data processing method, comprising:
- when data writing is to be performed for a target Trunk Group (TKG), determining whether the target TKG is available, wherein in an initial state, one TKG comprises N Trunks for storing raw data and M Trunks for storing check data, any M Trunks in the N+M Trunks belong to at least K storage nodes, where N≥M, N>1, and 0≤K≤M;
- when the target TKG is available, performing data writing for the target TKG;
- and
- when the target TKG is unavailable, repairing the target TKG, and performing data writing for the repaired target TKG.
7-12. (canceled)
A data processing apparatus, comprising:
- a processor and
- a machine readable storage medium, for storing machine executable instructions executable on the processor to perform operations comprising:
- determining whether a target Trunk Group (TKG) is available when data writing is to be performed for the target TKG, wherein in an initial state, one TKG comprises N Trunks for storing raw data and M Trunks for storing check data, any M Trunks in the N+M Trunks belong to at least K storage nodes, where N≥M, N>1, and 0≤K≤M;
- performing data writing for the target TKG when the target TKG is available;
- and
- repairing the target TKG and perform data writing for the repaired target TKG when the target TKG is unavailable.
A non-transitory machine readable storage medium storing machine executable instructions, wherein when being invoked and executed by a processor, the machine executable instructions cause the processor to:
- determine whether a target Trunk Group (TKG) is available when data writing is to be performed for the target TKG, wherein in an initial state, one TKG comprises N Trunks for storing raw data and M Trunks for storing check data, any M Trunks in the N+M Trunks belong to at least K storage nodes, where N≥M, N>1, and 0≤K≤M;
- perform data writing for the target TKG when the target TKG is available;
- and
- repair the target TKG and perform data writing for the repaired target TKG when the target TKG is unavailable.
Dependencies are inferred from the claim text.