Method and system for identifying garbage data, electronic device, and storage medium
AssigneeInspur Electronic Information Industry Co., Ltd.
InventorsYu Zhao, Yonggang Hu
Life of this patent
Estimating the term…
Abstract
A method and system for identifying garbage data, an electronic device, and a storage medium. The method includes: uploading an object to a distributed object storage system; acquiring a head object identifier in an index storage pool of the distributed object storage system; querying a data storage pool for a target data group corresponding to the head object identifier; marking a tail object corresponding to a tail object identifier in the target data group as a target tail object; and marking tail objects in the data storage pool other than the target tail object as garbage data.
Claims17
A method for identifying garbage data, characterized by comprising:
- uploading an object to a distributed object storage system;
- acquiring a head object identifier in an index storage pool of the distributed object storage system;
- querying a data storage pool for a target data group corresponding to the head object identifier, wherein the target data group includes data content of a head object and a tail object identifier corresponding to the head object;
- marking a tail object corresponding to the tail object identifier in the target data group as a target tail object;
- and
- marking tail objects in the data storage pool other than the target tail object as garbage data;
- wherein the uploading an object to a distributed object storage system comprises:
- splitting the object to be uploaded into a head object to be uploaded and tail objects to be uploaded;
- allocating a head object identifier to the head object to be uploaded, and allocating tail object identifiers to the tail objects to be uploaded;
- writing data content of the tail objects to be uploaded into the data storage pool according to a splitting order;
- writing, into the data storage pool, data content of the head object to be uploaded and the tail object identifier of the tail object to be uploaded corresponding to the head object to be uploaded as the target data group;
- and
- writing the head object identifier of the head object to be uploaded into the index storage pool.
An electronic device comprising:
- a memory storing a computer program;
- and
- a processor configured to execute the computer program, and upon execution of the computer program, is configured to perform operations comprising:
- uploading an object to a distributed object storage system;
- acquiring a head object identifier in an index storage pool of the distributed object storage system;
- querying a data storage pool for a target data group corresponding to the head object identifier, wherein the target data group includes data content of a head object and a tail object identifier corresponding to the head object;
- marking a tail object corresponding to the tail object identifier in the target data group as a target tail object;
- and
- marking tail objects in the data storage pool other than the target tail object as garbage data;
- wherein the uploading an object to a distributed object storage system comprises:
- splitting the object to be uploaded into a head object to be uploaded and tail objects to be uploaded;
- allocating a head object identifier to the head object to be uploaded, and allocating tail object identifiers to the tail objects to be uploaded;
- writing data content of the tail objects to be uploaded into the data storage pool according to a splitting order;
- writing, into the data storage pool, data content of the head object to be uploaded and the tail object identifier of the tail object to be uploaded corresponding to the head object to be uploaded as the target data group;
- and
- writing the head object identifier of the head object to be uploaded into the index storage pool.
A non-transitory computer-readable storage medium storing a computer program that is executable by a processor, and upon execution by the processor, is configured to cause the processor to perform operations comprising:
- uploading an object to a distributed object storage system;
- acquiring a head object identifier in an index storage pool of the distributed object storage system;
- querying a data storage pool for a target data group corresponding to the head object identifier, wherein the target data group includes data content of a head object and a tail object identifier corresponding to the head object;
- marking a tail object corresponding to the tail object identifier in the target data group as a target tail object and
- marking tail objects in the data storage pool other than the target tail object as garbage data;
- wherein the uploading an object to a distributed object storage system comprises:
- splitting the object to be uploaded into a head object to be uploaded and tail objects to be uploaded;
- allocating a head object identifier to the head object to be uploaded, and allocating tail object identifiers to the tail objects to be uploaded;
- writing data content of the tail objects to be uploaded into the data storage pool according to a splitting order;
- writing, into the data storage pool, data content of the head object to be uploaded and the tail object identifier of the tail object to be uploaded corresponding to the head object to be uploaded as the target data group;
- and
- writing the head object identifier of the head object to be uploaded into the index storage pool.
Dependencies are inferred from the claim text.