System, method, and apparatus for updating data in a distributed storage system
AssigneeAlibaba Group Holding Limited
InventorsYuanyuan Dong, Li Xu, Weibin Yan, Kai Li, Puyuan Yang, Yemin Sui
Life of this patent
Estimating the term…
Abstract
A method for updating data in a distributed storage system is disclosed. The method may comprise receiving, by a sender terminal device, an update request; obtaining, by the sender terminal device, update data and control information from the update request; sending, by the sender terminal device, the update data, via a data update request, to a receiver terminal device; and sending, by the sender terminal device, the control information, via a control information update request, to the receiver terminal device.
Claims18
A method for updating stored data in a distributed storage system, the method performed by a sender terminal device and comprising:
- receiving, by the sender terminal device, a first update request to update a data block stored in a receiver terminal device with first sub-data;
- receiving a second update request to update the data block stored in the receiver terminal device with second sub-data, wherein both the first sub-data and the second sub-data belong to the data block;
- obtaining, from the first and second update requests, update data including the first sub-data and the second sub-data and first control information of the first update request and the second control information of the second update request;
- sending the update data including the first sub-data and the second sub-data, via one or more data update requests, to the receiver terminal device and
- after sending the update data via the one or more data update requests, sending the first and second control information, via a control information update request, to the receiver terminal device.
A method for updating stored data in a distributed storage system, the method performed by a receiver terminal device and comprising:
- receiving one or more data update requests from a sender terminal device, wherein the one or more data update requests include update data including a first sub-data for updating a data block and a second sub-data for updating the data block, and both the first sub-data and the second sub-data belong to the data block;
- setting corresponding relations among a data block identification, new data table identifications associated with the first and second sub-data, and new data including the first and second sub-data in a data update relation table;
- receiving a control information update request corresponding to the one or more data update requests from the sender terminal device;
- obtaining the new data corresponding to the data block identification and the new data table identifications carried by the control information update request from the data update relation table;
- and
- updating the data block based on the control information update request and the obtained new data, wherein the receiver terminal device comprises the data block.
An apparatus, implemented as a sender terminal device, for updating stored data in a distributed storage system, the apparatus comprising:
- a receiving module configured to:
- receive a first update request to update a data block stored in a receiver terminal device with first sub-data,
- receive a second update request to update the data block with second sub-data, wherein both the first sub-data and the second sub-data belong to the data block, and
- obtain, from the first and second update requests, update data including the first sub-data and the second sub-data and first control information of the first update request and second control information of the second update request;
- and
- a sending module configured to:
- send the update data, including the first sub-data and the second sub-data via one or more data update requests to the receiver terminal device, wherein the receiver terminal device comprises the data block;
- and
- send, after the update data is sent, the first and second control information, via a control information update request, to the receiver terminal device.
A non-transitory computer-readable medium storing one or more programs, the one or more programs comprising instructions which, when executed by a processor of a sender terminal device, cause the sender terminal device to perform a method for updating stored data in a distributed storage system, the method comprising:
- receiving, a first update request to update a data block stored in a receiver terminal device with first sub-data;
- receiving a second update request to update the data block stored in the receiver terminal device with second sub-data, wherein both the first sub-data and the second sub-data belong to the data block;
- obtaining, from the first and second update requests, update data including the first sub-data and the second sub-data and first control information of the first update request and second control information of the second update request;
- sending, the update data including the first sub-data and the second sub-data, via one or more data update requests, to the receiver terminal device;
- and
- after sending the update data, sending, the first and second control information, via a control information update request, to the receiver terminal device.
Dependencies are inferred from the claim text.