IP Library › Granted Patent US 11,281,446
Granted Patent B2
US 11,281,446 · App. 16/711,111 · Granted Mar 22, 2022

Updating method, terminal and electronic device

Inventors: Shengbo Fu (Beijing, CN); Huayong Wang (Beijing, CN); Feilong Zhou (Beijing, CN)
Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
G06F8/65G06F21/54G06F21/57G06F21/62
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,281,446
App. No.
16/711,111
Granted
Mar 22, 2022
Kind
B2
Abstract

The present disclosure provides an updating method, a terminal and an electronic device. The updating method may include: acquiring updated authority information; and transmitting a first update notification to a first data node, the first update notification comprising the updated authority information. When a control node transmits the first update notification to the first data node, such notification includes the updated authority information.

Claims (31)

1. An updating method, applied to a control node in a distributed storage system, the distributed storage system comprising the control node, a first data node, a file system, and a third party node, the control node storing authority information stored on the first data node, the method comprising:

acquiring updated authority information from a user, comprising: receiving an update request from the user, the update request comprising the updated authority information;

updating a memory of the control node according to the update request, and transmitting a second update notification to the file system in the distributed storage system for updating the file system;

in response to the control node updating the memory of the control node successfully and the file system being updated successfully, transmitting a first update notification to the first data node, the first update notification comprising the updated authority information;

in response to not receiving an update result returned by the first data node, or receiving an update result returned by the first data node and the update result being an update failure, determining whether the third party node comprises a registration message transmitted within a preset time by the first data node; and

in response to the third party node not comprising the registration message transmitted within the preset time by the first data node, acquiring the authority information stored on the first data node from the control node, storing the acquired authority information onto a second data node, and deleting the first data node.

2. An updating method, applied to a data node in a distributed storage system, the distributed storage system comprising a control node, the data node, a file system, and a third party node, the control node storing authority information stored on the data node, wherein the data node transmits a registration message to the third party node every first preset time, and the method comprises:

receiving a first update notification from the control node, the first update notification comprising updated authority information, wherein the first update notification is sent from the control node in response to the control node updating the memory of the control node successfully and the file system being updated successfully;

updating according to the first update notification, and transmitting an update result to the control node, for the control node to store the authority information stored on the data node onto a second data node in response to determining that the third party node does not comprise the registration message transmitted within the preset time by the first data node.

3. The method according to claim 2 , wherein the distributed storage system further comprises a file system, and the method further comprises:

inspecting the file system in the distributed storage system every second preset time, to confirm whether there is updated authority information; and

in response to there being updated authority information in the file system, loading the updated authority information.

4. A terminal, the terminal being a control node in a distributed storage system, the distributed storage system comprising the control node, a first data node, a file system, and a third party node, the control node storing authority information stored on the first data node, the terminal comprising:

at least one processor; and

a memory storing instructions, the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:

acquiring updated authority information from a user, comprising: receiving an update request from the user, the update request comprising the updated authority information;

updating a memory of the control node according to the update request, and transmitting a second update notification to the file system in the distributed storage system for updating the file system;

in response to the control node updating the memory of the control node successfully and the file system being updated successfully, transmitting a first update notification to the first data node, the first update notification comprising the updated authority information;

in response to not receiving an update result returned by the first data node, or receiving an update result returned by the first data node and the update result being an update failure, determining whether the third party node comprises a registration message transmitted within a preset time by the first data node; and

in response to the third party node not comprising the registration message transmitted within the preset time by the first data node, acquiring the authority information stored on the first data node from the control node, storing the acquired authority information onto a second data node, and deleting the first data node.

5. A terminal, the terminal being a data node, comprising:

at least one processor; and

a memory storing instructions, the instructions when executed by the at least one processor, cause the at least one processor to perform operations of the updating method according to claim 2 .

6. The terminal according to claim 5 , wherein after the updating according to the first update notification, the operations further comprise:

transmitting an update result to the control node; and

transmitting a registration message to a third party node every first preset time.

7. The terminal according to claim 5 , wherein the operations further comprise:

inspecting a file system every second preset time to confirm whether there is updated authority information; and

loading the updated authority information, in response to there being updated authority information in the file system.

8. A non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the updating method according to claim 1 .

9. A non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the updating method according to claim 2 .

Priority Claims (1)
CN 201910566990.8 · Jun 27, 2019 · national
Continuity (1)
Related Publication 20200409683A1 · Dec 31, 2020