WO2020020170A1 - Data deleting method and device - Google Patents
Data deleting method and device Download PDFInfo
- Publication number
- WO2020020170A1 WO2020020170A1 PCT/CN2019/097320 CN2019097320W WO2020020170A1 WO 2020020170 A1 WO2020020170 A1 WO 2020020170A1 CN 2019097320 W CN2019097320 W CN 2019097320W WO 2020020170 A1 WO2020020170 A1 WO 2020020170A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- logical data
- data block
- logical
- time
- data
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Definitions
- the present application relates to the field of data storage, and in particular, to a method and a device for deleting data.
- the present application provides a data deletion method and device to improve the efficiency of deleting invalid data and reduce the risk of misoperation.
- a data deletion method is provided.
- the method is applied to a storage system, and a plurality of logical data blocks are divided in the storage system.
- the method includes:
- a data deletion device is provided.
- the device is applied to a storage system, and the storage system is divided into a plurality of logical data blocks.
- the device has a function of implementing the method provided by the first aspect.
- the functions may be implemented by hardware, and may also be implemented by hardware executing corresponding software.
- the hardware or software includes one or more modules or units corresponding to the functions described above.
- the apparatus may include:
- An overdue detection module is used to traverse the multiple logical data blocks that have been divided, and detect whether the logical data block has expired according to a preset time period label and a time validity period for each logical data block; each logical data block corresponds to The original data stored in the storage space satisfies: the timestamp of the original data falls within the time period identified by the time period label of the logical data block, and the time validity period of each logical data block is used to indicate the survival time of the logical data block ;
- the data deletion module is configured to delete the overdue logical data block and the original data stored in the storage space corresponding to the overdue logical data block for the overdue logical data block detected.
- the apparatus may include a processor, a memory, and a bus, and the processor and the memory are connected to each other through a bus; the memory stores machine-readable instructions, and the processor calls The machine-readable instructions execute the method provided by the first aspect of the embodiments of the present application.
- the logical data block is divided, a time period label and a time validity period are set for the logical data block, and then the original data is saved to the corresponding logical data according to the matching between the time stamp of the original data and the time period label of the logical data block.
- the purpose of judging whether the original data stored in the corresponding storage space of the logical data block is expired can be achieved by judging whether the logical data block is expired, thereby reducing the time consumed for detecting whether the data expires.
- the time consumed by the embodiments of the present application for detection does not increase with the increase of data.
- the validity period of the data needs to be modified, it can be conveniently implemented by modifying the time validity period of the logical data block where the data is located.
- FIG. 1 is an operation flowchart of a data deletion method according to an embodiment of the present application
- FIG. 2 is a schematic diagram of a logical data block provided by an embodiment of the present application.
- FIG. 3 is a flowchart of a method for deleting expired data according to an embodiment of the present application.
- FIG. 4 is a flowchart of a method for deleting overcapacity data according to an embodiment of the present application
- FIG. 5 is a block diagram of a device module according to an embodiment of the present application.
- the invalid data can be filtered manually and the filtered invalid data can be deleted.
- the efficiency is relatively low and there is a risk of misoperation.
- the embodiment of the present application provides a data deletion scheme.
- the data deletion solution provided in the embodiments of the present application can be applied to storage systems, including centralized storage systems and distributed storage systems.
- the centralized storage system refers to a system that stores data on a single device, such as a personal computer (PC);
- the distributed storage system refers to a system that stores data on multiple independent devices, such as HDFS (Hadoop Distributed File System (Hadoop distributed file system).
- HDFS Hadoop Distributed File System
- With the increase of data distributed storage systems featuring high performance and high capacity will gradually become mainstream storage systems.
- the overall operation flow of the data deletion method may include the following steps:
- Step 101 The storage system divides a plurality of logical data blocks locally.
- dividing the logical data block is to allocate corresponding storage space for the created logical data block.
- the logical data block is a data storage unit in the storage system, and each logical data block corresponds to a segment of real storage space with continuous or discontinuous addresses. Different logical data blocks do not share the same storage space.
- Step 102 The storage system sets a time period label and a data content label for the divided logical data blocks.
- the time period label of the logical data block may be used to indicate to which logical data block the storage space corresponding to the logical data block is stored by the storage system.
- the so-called raw data refers to the data imported into the storage system for the first time.
- the original data stored in the storage space corresponding to each logical data block satisfies: the timestamp of the original data falls within the time period identified by the time period label of the logical data block.
- the embodiment of the present application does not limit the interval length of the time period identified by the time period label.
- the time period label can be set to 2017-2018, January 2018-June 2018, and January 1, 2018. 00:00 to 23:59 on January 1, 2018.
- the data content label can also be used to indicate to which logical data block the storage space corresponding to the storage system stores the received data.
- the original data stored in the storage space corresponding to each logical data block also satisfies: the data content of the original data is consistent with the data content label of the logical data block.
- the data content label can be set in advance according to the content of the data that the storage system will receive. For example, the storage system will receive the camera information of the four communities A, B, C, and D. You can set the corresponding logical data block in advance as follows Data content tags: A cell camera information, B cell camera information, C cell camera information, and D cell camera information.
- FIG. 2 is a schematic diagram of the logical data blocks divided in the storage system. It can be seen from the figure that the data content labels of logical data blocks with the same time period label are different from each other, and the time periods of the logical data blocks with the same data content label The labels are different from each other.
- Step 103 The storage system sets a time validity period for each of the divided logical data blocks, and sets a storage capacity limit for each group of logical data blocks having the same content label.
- the time validity period of each logical data block is used to indicate the survival time of the logical data block, and is a basis for judging whether the original data has expired.
- the storage capacity limit of each group of logical data blocks is used to limit the size of the original data that the corresponding storage space of the group of logical data blocks can hold, and is the basis for judging whether the original data is overcapacity.
- Step 104 The storage system sets associated location information for each of the divided logical data blocks.
- analysis data or other derived data related to the original data will be obtained.
- These analysis data or derived data are collectively referred to as the associated data of the original data. For example, when a certain raw data is the consumption record of a company in January 2018, the consumption quota of each department of the company obtained in January 2018 by analyzing the consumption record is the related data of the original data.
- the related location information is used to indicate the storage location of the related data related to the original data.
- the related location information may be a pointer to a storage location of the related data, a directory name of a directory where the related data is located, or a file name of a file where the related data is located.
- the division and setting of the logical data block can be completed.
- the storage system can save the received original data to the corresponding logical data block in the following ways: When the original data is received, according to the timestamp and data content of the received original data, the divided logical data block Search for a matching logical data block; the timestamp of the received original data falls within the time period identified by the time period label of the matching logical data block, and the data content of the received original data and the data of the matching logical data block The content tags are consistent; finally, the received original data is saved to the corresponding storage space of the found matching logical data block.
- the storage system stores the received original data on the one hand, and on the other hand deletes a part of the old original data to release the storage capacity.
- Step 105 The storage system detects whether the original data stored in the corresponding storage space of the logical data block exceeds the time validity period or exceeds the storage capacity limit; if yes, execute step 106; if not, execute step 107.
- the storage system may trigger the detection of the original data according to a fixed frequency, and / or may also immediately trigger the detection of the original data according to a detection instruction input externally.
- the storage system can start two tasks, one task is used to detect whether the original data exceeds the time validity period, and one task is used to detect whether the original data exceeds the storage capacity limit.
- the two tasks do not interfere with each other.
- the detection frequency of these two tasks may be the same or different. As for how to detect whether the original data is overdue and overcapacity will be described below, it will not be described in detail here.
- Step 106 The storage system performs deletion processing on the original data that exceeds the time validity period or exceeds the storage capacity limit, and proceeds to step 107.
- Step 107 The storage system detects whether the time validity period and the storage capacity limit set for the logical data block are deleted; if it is, the process ends; if not, the process returns to step 105.
- Step 301 The storage system traverses the divided logical data blocks, and detects whether the logical data block has expired according to a time period label and a time validity period preset for each logical data block.
- the storage system stores the original data in the storage space of the corresponding logical data block according to the timestamp of the original data.
- the original data stored in the storage space corresponding to each logical data block satisfies the following: Timestamp falls within the time period identified by the time period label of the logical data block. For example, when the time period label of a logical data block is 2018.1-2018.6, it means that the original data stored in the corresponding storage space of the logical data block was generated between January 2018 and June 2018. Therefore, the storage system can determine whether the logical data block has expired to achieve the purpose of determining whether the original data stored in the corresponding storage space of the logical data block has expired.
- the following steps can be used to detect whether a logical data block has expired: For each logical data block, according to a time period label preset for the logical data block, determine the maximum time of the time period identified by the time period label; Calculate the time interval between the current system time and the maximum time; determine whether the time interval is greater than the time validity period preset for the logical data block; if yes, determine that the logical data block has expired; if not, determine that the logical data block has not expired Expired.
- the time period label of a logical data block is 2017.1-2018.1
- the maximum time of the time period identified by the time period label is January 2018
- the current system time is July 2018, it is the logical data block in advance.
- the set time validity period is one year. Because the current system time differs from the maximum time by six months and less than one year, it can be considered that the logical data block has not expired.
- Step 302 The storage system deletes the expired logical data block and the original data stored in the storage space corresponding to the expired logical data block for the detected expired logical data block.
- deleting the overdue logical data block will release the storage space allocated to the overdue logical data block, so that the storage space can be reallocated to other logical data blocks for use.
- the storage space corresponding to the overdue logical data block can be found. Associated data related to the saved raw data and deleted. This can remove relatively useless or stale data from the storage system as much as possible.
- the storage system may first notify the administrator of the detected out-of-date logical data block through an email alert, etc.
- the administrator may choose to extend the validity period of the out-of-date logical data block, for example, by extending the time The validity period is extended from 1 year to 2 years. You can also choose not to extend the validity period of the expired logical data block. If the storage system does not receive an instruction to extend the time validity period of the overdue logical data block within the set time, the overdue logical data block, the original data stored in the corresponding storage space of the overdue logical data block, and related associations are deleted. data.
- the storage system traverses the divided logical data blocks and performs the following operations on each group of logical data blocks with the same data content label:
- Step 401 The storage system counts the total size of the original data stored in the storage space corresponding to the set of logical data blocks.
- each group of logical data blocks is composed of at least one logical data block having the same data content label.
- the data content label of a certain group of logical data blocks is the consumption record of company A
- the storage space of the group of logical data blocks can store the consumption records of company A in each month.
- Step 402 The storage system judges whether the total size of the original data obtained by the statistics is greater than a preset storage capacity limit for the group of logical data blocks; if yes, step 403 is performed to execute the deletion process; if not, no deletion process is performed.
- Step 403 When the size of the obtained raw data is larger than the preset storage capacity limit for the set of logical data blocks, the storage system filters out N logical data blocks from the set of logical data blocks, deletes the N logical data blocks and The N logical data blocks correspond to the original data stored in the storage space, so that after the deletion is completed, the total size of the original data stored in the corresponding logical space of the group of logical data blocks is less than the preset storage capacity limit for the group of logical data blocks.
- N logical data blocks with the minimum time ranking in the first N bits can be filtered according to the minimum time of the time period identified by the time period label of each logical data block in the set of logical data blocks.
- the time period label of logical data block 1 is January 2017-April 2017, and the time period label of logical data block 2 is May 2017-2017.
- the time period label of logical data block 3 is September 2017 to December 2017; then the minimum time of the time period identified by the time period label of logical data block 1 is January 2017, and logical data block 2 is In May 2017, logical data block 3 was September 2017.
- the storage system can first delete the logical data block 1 which is ranked first in the minimum time and the original data generated from January 2017 to April 2017, and then determine whether the size of the original data corresponding to the set of logical data blocks is low.
- the corresponding corresponding to the oversized logical data block may be found according to the associated position information set for the oversized logical data block in step 104 in advance. Associated data related to the original data stored in the storage space and deleted. This can remove relatively useless or stale data from the storage system as much as possible.
- the storage system may notify the administrator of the overcapacity logical data block by performing an email alert before performing step 403.
- the administrator may choose to perform the storage capacity limit of the overcapacity logical data block. Increase, for example, increase the storage capacity limit from 1G to 2G, or you can choose not to extend the storage capacity limit of the overcapacity logical data block. If the storage system does not receive an instruction to increase the storage capacity limit of the over-capacity logical data block within the set time, then delete the over-capacity logical data block and the original stored in the corresponding storage space of the over-capacity logical data block. Data and related associated data.
- the embodiment of the present application divides the logical data block, sets a time period label and a time validity period for the logical data block, and then matches the original data time stamp and the logical data block time period label to match the original data.
- the data is stored in the storage space of the corresponding logical data block; in this way, the purpose of judging whether the original data stored in the corresponding storage space of the logical data block is expired can be achieved by judging whether the logical data block is expired, which reduces the detection of whether the data expires Elapsed time.
- the time consumed by the embodiments of the present application for detection does not increase with the increase of data.
- the validity period of the data needs to be modified, it can be conveniently implemented by modifying the time validity period of the logical data block where the data is located.
- the embodiment of the present application also sets one for each group of logical data blocks with the same data content label.
- a common storage capacity limit When the original data in the set of logical data blocks exceeds the storage capacity limit, the old data within the earliest time range is deleted to free up storage space.
- embodiments of the present application also support deleting related data related to the original data while deleting the original data.
- FIG. 5 is a functional module diagram of a data deletion device provided by an embodiment of the present application.
- the device can be applied to a storage system, where a plurality of logical data blocks are divided. As shown in Figure 5, the device includes:
- An overdue detection module 501 is configured to traverse the multiple logical data blocks that have been divided, and detect whether the logical data block has expired according to a preset time period label and a time validity period for each logical data block; each logical data block corresponds to The original data stored in the storage space of the memory satisfies: the time stamp of the original data falls within the time period identified by the time period label of the logical data block, and the time validity period of each logical data block is used to indicate the survival of the logical data block duration;
- the data deletion module 502 is configured to delete the overdue logical data block and the original data stored in the storage space corresponding to the overdue logical data block for the overdue logical data block detected.
- the overdue detection module 501 is configured to determine, for each logical data block, a maximum time of a time period identified by the time period label according to a time period label preset for the logical data block. Calculate the time interval between the current system time and the maximum time; determine whether the time interval is greater than the time validity period preset for the logical data block; if yes, determine that the logical data block has expired; if not, determine the logical data block Not expired.
- each logical data block is further preset with a data content tag; the device may further include:
- a data saving module configured to find a matching logical data block among the divided logical data blocks according to the time stamp and data content of the received original data; the time stamp of the received original data falls on the matching logical data block In the time period identified by the time period label, and the data content of the received original data is consistent with the data content label of the matching logical data block; the received original data is stored in the corresponding storage space of the found matching logical data block .
- the device may further include an overcapacity detection module
- the overcapacity detection module is configured to traverse the plurality of logical data blocks that have been divided, and perform the following operations on each group of logical data blocks with the same data content label: Count the number of logical data blocks stored in the corresponding storage space. The sum of the size of the original data; judging whether the sum of the size of the raw data obtained by the statistics is greater than the preset storage capacity limit for the set of logical data blocks; if so, filtering out N logical data blocks from the set of logical data blocks;
- the data deletion module 502 is further configured to delete the N logical data blocks and the original data stored in the storage space corresponding to the N logical data blocks, so that after the deletion is completed, the corresponding logical data blocks are stored in the corresponding storage space.
- the total size of the original data is less than the preset storage capacity limit for this set of logical data blocks.
- the overcapacity detection module is configured to filter out the smallest moment in the top N based on the smallest moment of the time period identified by the time period label of each logical data block in the set of logical data blocks. N logical blocks of bits.
- the data deletion module 502 is further configured to, for the detected overdue logical data block, find corresponding storage corresponding to the overdue logical data block according to the associated position information set for the overdue logical data block in advance.
- the associated data related to the original data stored in the space is deleted, and the associated location information is used to indicate a storage location of the associated data.
- the division of the modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
- the functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module.
- the above integrated modules may be implemented in the form of hardware or software functional modules.
- An embodiment of the present application further provides a data deletion device, which is applied to a storage system and includes a processor, a memory, and a bus.
- the processor and the memory are connected to each other through a bus.
- the memory stores machine-readable instructions.
- the processor calls the machine-readable instructions to implement the methods shown in FIG. 1, FIG. 3, and FIG. 4.
- an embodiment of the present application further provides a machine-readable storage medium that stores machine-readable instructions.
- the machine may Executing instructions causes the processor to implement the methods shown in FIG. 1, FIG. 2, and FIG.
Abstract
Description
Claims (16)
- 一种数据删除方法,所述方法应用于存储系统,所述存储系统中划分出多个逻辑数据块,所述方法包括:A data deletion method. The method is applied to a storage system, and a plurality of logical data blocks are divided in the storage system. The method includes:遍历已划分出的所述多个逻辑数据块,Traversing the divided logical data blocks,根据为每个逻辑数据块预先设置的时间段标签和时间有效期检测该逻辑数据块是否超期;每个逻辑数据块对应的存储空间内保存的原始数据满足:该原始数据的时间戳落在该逻辑数据块的时间段标签所标识的时间段内,每个逻辑数据块的时间有效期用于指示该逻辑数据块的存活时长;Detect whether the logical data block has expired according to the preset time period label and time validity period for each logical data block; the original data stored in the storage space corresponding to each logical data block satisfies: the time stamp of the original data falls in the logic Within the time period identified by the time period label of the data block, the time validity period of each logical data block is used to indicate the survival time of the logical data block;针对检测出的超期逻辑数据块,删除该超期逻辑数据块和该超期逻辑数据块对应存储空间内保存的原始数据。For the detected overdue logical data block, delete the overdue logical data block and the original data stored in the storage space corresponding to the overdue logical data block.
- 如权利要求1所述的方法,其特征在于,所述根据为每个逻辑数据块预先设置的时间段标签和时间有效期检测该逻辑数据块是否超期,包括:The method according to claim 1, wherein the detecting whether the logical data block has expired according to a time period label and a time validity period preset for each logical data block comprises:针对每个逻辑数据块,根据为该逻辑数据块预先设置的时间段标签,确定该时间段标签所标识的时间段的最大时刻;For each logical data block, determine the maximum time of the time period identified by the time period label according to the time period label preset for the logical data block;计算当前系统时刻与该最大时刻的时间间隔;Calculate the time interval between the current system time and the maximum time;判断该时间间隔是否大于为该逻辑数据块预先设置的时间有效期;Judging whether the time interval is greater than the time validity period preset for the logical data block;如果所述时间间隔大于为所述时间有效期,则确定该逻辑数据块超期;If the time interval is greater than the time validity period, determining that the logical data block has expired;如果所述时间间隔小于或等于所述时间有效期,则确定该逻辑数据块未超期。If the time interval is less than or equal to the time validity period, it is determined that the logical data block has not expired.
- 如权利要求1所述的方法,其特征在于,每个逻辑数据块还预先设置有数据内容标签;所述方法还包括:The method according to claim 1, wherein each logical data block is further preset with a data content label; the method further comprises:接收原始数据;Receive raw data;根据接收到的原始数据的时间戳和数据内容,在已划分出的逻辑数据块中查找匹配逻辑数据块;该接收到的原始数据的时间戳落在匹配逻辑数据块的时间段标签所标识的时间段内,且该接收到的原始数据的数据内容与匹配逻辑数据块的数据内容标签一致;According to the timestamp and data content of the received original data, find the matching logical data block in the divided logical data blocks; the timestamp of the received original data falls on the time period label identified by the matching logical data block Within the time period, and the data content of the received original data is consistent with the data content label of the matching logical data block;将接收到的原始数据保存至找到的匹配逻辑数据块的对应存储空间内。The received original data is stored in the corresponding storage space of the found matching logical data block.
- 如权利要求3所述的方法,其特征在于,所述方法还包括:遍历已划分出的所述多个逻辑数据块,针对具有相同数据内容标签的每组逻辑数据块执行以下操作:The method of claim 3, further comprising: traversing the plurality of logical data blocks that have been divided, and performing the following operations on each group of logical data blocks having the same data content label:统计该组逻辑数据块对应存储空间内保存的原始数据大小总和;Count the total size of the original data stored in the corresponding storage space of the group of logical data blocks;判断统计得到的原始数据大小总和是否大于为该组逻辑数据块预先设置的存储容量限额;Judging whether the total size of the raw data obtained by the statistics is greater than the preset storage capacity limit for the set of logical data blocks;如果所述原始数据大小总和大于该存储容量限额,则If the sum of the size of the original data is greater than the storage capacity limit, then从该组逻辑数据块中筛选出N个逻辑数据块,删除该N个逻辑数据块和该N个逻辑数据块对应存储空间内保存的原始数据,使得完成删除之后该组逻辑数据块对应存储空间内保存的原始数据大小总和小于为该组逻辑数据块预先设置的存储容量限额。N logical data blocks are selected from the group of logical data blocks, and the original data stored in the storage space corresponding to the N logical data blocks and the N logical data blocks is deleted, so that after the deletion is completed, the corresponding logical data block corresponds to the storage space. The total size of the original data stored in the internal data block is less than the storage capacity limit set for the logical data block set in advance.
- 如权利要求4所述的方法,其特征在于,从该组逻辑数据块中筛选出N个逻辑数据块,包括:The method according to claim 4, wherein filtering N logical data blocks from the set of logical data blocks comprises:根据该组逻辑数据块中每个逻辑数据块的时间段标签所标识的时间段的最小时刻,筛选出最小时刻排在前N位的N个逻辑数据块。According to the minimum time of the time period identified by the time period label of each logical data block in the set of logical data blocks, N logical data blocks whose minimum time is ranked in the first N bits are filtered out.
- 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:针对检测出的超期逻辑数据块,根据预先为该超期逻辑数据块设置的关联位置信息,找到与该超期逻辑数据块对应存储空间内保存的原始数据相关的关联数据并删除;所述关联位置信息用于指示关联数据的存储位置。For the detected out-of-date logical data block, according to the associated location information set for the out-of-date logical data block in advance, find and delete the associated data related to the original data stored in the storage space corresponding to the out-of-date logical data block; the associated position information Used to indicate where the associated data is stored.
- 如权利要求4所述的方法,还包括:The method of claim 4, further comprising:针对所述N个逻辑数据块中的每个逻辑数据块,根据预先为所述逻辑数据块设置的关联位置信息,找到与所述逻辑数据块对应存储空间内保存的原始数据相关的关联数据并删除;其中,所述关联位置信息用于指示关联数据的存储位置。For each logical data block of the N logical data blocks, according to the associated position information set in advance for the logical data block, find related data related to the original data stored in the corresponding storage space of the logical data block and Delete; wherein the associated location information is used to indicate a storage location of the associated data.
- 一种数据删除装置,所述装置应用于存储系统,所述存储系统中划分出多个逻辑数据块,所述装置包括:A data deleting device is applied to a storage system, and a plurality of logical data blocks are divided in the storage system. The device includes:超期检测模块,用于遍历已划分出的所述多个逻辑数据块,根据为每个逻辑数据块预先设置的时间段标签和时间有效期检测该逻辑数据块是否超期;每个逻辑数据块对应的存储空间内保存的原始数据满足:该原始数据的时间戳落在该逻辑数据块的时间段标签所标识的时间段内,每个逻辑数据块的时间有效期用于指示该逻辑数据块的存活时长;An overdue detection module is used to traverse the multiple logical data blocks that have been divided, and detect whether the logical data block has expired according to a preset time period label and a time validity period for each logical data block; each logical data block corresponds to The original data stored in the storage space satisfies: the timestamp of the original data falls within the time period identified by the time period label of the logical data block, and the time validity period of each logical data block is used to indicate the survival time of the logical data block ;数据删除模块,用于针对检测出的超期逻辑数据块,删除该超期逻辑数据块和该超期逻辑数据块对应存储空间内保存的原始数据。The data deletion module is configured to delete the overdue logical data block and the original data stored in the storage space corresponding to the overdue logical data block for the overdue logical data block detected.
- 如权利要求8所述的装置,其特征在于,The apparatus according to claim 8, wherein:所述超期检测模块,用于针对每个逻辑数据块,根据为该逻辑数据块预先设置的时间段标签,确定该时间段标签所标识的时间段的最大时刻;计算当前系统时刻与该最大时刻的时间间隔;判断该时间间隔是否大于为该逻辑数据块预先设置的时间有效期;如果所述时间间隔大于为所述时间有效期,则确定该逻辑数据块超期;如果所述时间间隔小于或等于所述时间有效期,则确定该逻辑数据块未超期。The overdue detection module is configured to determine, for each logical data block, a maximum time of the time period identified by the time period label according to a time period label preset for the logical data block; and calculate the current system time and the maximum time. Time interval; determine whether the time interval is greater than the time validity period preset for the logical data block; if the time interval is greater than the time validity period, determine that the logical data block has expired; if the time interval is less than or equal to the If the time is valid, it is determined that the logical data block has not expired.
- 如权利要求8所述的装置,其特征在于,每个逻辑数据块还预先设置有数据内容标签;所述装置还包括:The device according to claim 8, wherein each logical data block is further provided with a data content label in advance; the device further comprises:接收模块,用于接收原始数据;A receiving module for receiving raw data;数据保存模块,用于根据接收到的原始数据的时间戳和数据内容,在已划分出的逻辑数据块中查找匹配逻辑数据块;该接收到的原始数据的时间戳落在匹配逻辑数据块的时间段标签所标识的时间段内,且该接收到的原始数据的数据内容与匹配逻辑数据块的数据内容标签一致;将接收到的原始数据保存至找到的匹配逻辑数据块的对应存储空间内。A data saving module, configured to find a matching logical data block among the divided logical data blocks according to the time stamp and data content of the received original data; the time stamp of the received original data falls on the matching logical data block In the time period identified by the time period label, and the data content of the received original data is consistent with the data content label of the matching logical data block; the received original data is stored in the corresponding storage space of the found matching logical data block .
- 如权利要求10所述的装置,其特征在于,所述装置还包括超容检测模块;The device according to claim 10, wherein the device further comprises an overcapacity detection module;所述超容检测模块,用于遍历已划分出的所述多个逻辑数据块,针对具有相同数据内容标签的每组逻辑数据块执行以下操作:统计该组逻辑数据块对应存储空间内保存的原始数据大小总和;判断统计得到的原始数据大小总和是否大于为该组逻辑数据块预先设置的存储容量限额;如果所述原始数据大小总和大于该存储容量限额,则从该组逻辑数据块中筛选出N个逻辑数据块;The overcapacity detection module is configured to traverse the plurality of logical data blocks that have been divided, and perform the following operations on each group of logical data blocks with the same data content label: Count the number of logical data blocks stored in the corresponding storage space. The sum of the size of the original data; judging whether the sum of the size of the raw data obtained by the statistics is greater than the preset storage capacity limit for the set of logical data blocks; if the sum of the size of the original data is greater than the storage capacity limit, filtering from the set of logical data blocks Output N logical data blocks;所述数据删除模块,还用于删除该N个逻辑数据块和该N个逻辑数据块对应存储空间内保存的原始数据,使得完成删除之后该组逻辑数据块对应存储空间内保存的原始数据大小总和小于为该组逻辑数据块预先设置的存储容量限额。The data deletion module is further configured to delete the N logical data blocks and the original data stored in the storage space corresponding to the N logical data blocks, so that the size of the original data stored in the storage space corresponding to the set of logical data blocks after the deletion is completed The sum is less than the preset storage capacity limit for this set of logical data blocks.
- 如权利要求11所述的装置,其特征在于,The device according to claim 11, wherein:所述超容检测模块,用于根据该组逻辑数据块中每个逻辑数据块的时间段标签所标识的时间段的最小时刻,筛选出最小时刻排在前N位的N个逻辑数据块。The overcapacity detection module is configured to filter out N logical data blocks whose minimum time is in the top N bits according to the minimum time of the time period identified by the time period label of each logical data block in the set of logical data blocks.
- 如权利要求8所述的装置,其特征在于,The apparatus according to claim 8, wherein:所述数据删除模块,还用于针对检测出的超期逻辑数据块,根据预先为该超期逻辑数据块设置的关联位置信息,找到与该超期逻辑数据块对应存储空间内保存的原始数据相关的关联数据并删除;所述关联位置信息用于指示关联数据的存储位置。The data deletion module is further configured to find an association with the original data stored in the storage space corresponding to the expired logical data block according to the associated position information set for the expired logical data block in advance for the detected expired logical data block. Data and delete; the associated location information is used to indicate the storage location of the associated data.
- 如权利要求11所述的装置,其特征在于,The device according to claim 11, wherein:所述数据删除模块,还用于针对所述N个逻辑数据块中的每个逻辑数据块,根据预先为所述逻辑数据块设置的关联位置信息,找到与所述逻辑数据块对应存储空间内保存的原始数据相关的关联数据并删除;其中,所述关联位置信息用于指示所述关联数据的存储位置。The data deletion module is further configured to find, for each logical data block of the N logical data blocks, a storage space corresponding to the logical data block according to the associated position information set in advance for the logical data block. The associated original data related to the saved original data is deleted, and the associated location information is used to indicate a storage location of the associated data.
- 一种数据删除装置,其特征在于,应用于存储系统,包括处理器、存储器和总线,其中,处理器、存储器通过总线相互连接;A data deletion device, which is characterized in that it is applied to a storage system and includes a processor, a memory, and a bus, wherein the processor and the memory are connected to each other through the bus;所述存储器中存储机器可读指令,所述处理器通过调用所述机器可读指令执行如权利要求1至7任一项所述的方法。Machine-readable instructions are stored in the memory, and the processor executes the method according to any one of claims 1 to 7 by calling the machine-readable instructions.
- 一种机器可读存储介质,其特征在于,所述机器可读存储介质存储有机器可读指令,所述机器可读指令在被处理器调用和执行时,所述机器可读指令促使所述处理器实现权利要求1至7任一项所述的方法。A machine-readable storage medium, characterized in that the machine-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by a processor, the machine-readable instructions cause the machine-readable instructions to The processor implements the method according to any one of claims 1 to 7.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810837643.XA CN110765081A (en) | 2018-07-26 | 2018-07-26 | Data deleting method and device |
CN201810837643.X | 2018-07-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020020170A1 true WO2020020170A1 (en) | 2020-01-30 |
Family
ID=69180359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/097320 WO2020020170A1 (en) | 2018-07-26 | 2019-07-23 | Data deleting method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110765081A (en) |
WO (1) | WO2020020170A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112214503A (en) * | 2020-10-10 | 2021-01-12 | 深圳壹账通智能科技有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112860679A (en) * | 2021-03-16 | 2021-05-28 | 世纪龙信息网络有限责任公司 | Equipment information management method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216821A (en) * | 2007-01-05 | 2008-07-09 | 中兴通讯股份有限公司 | Data acquisition system storage management method |
CN101556589A (en) * | 2008-04-09 | 2009-10-14 | 北京闻言科技有限公司 | Method for Oracle regularly deleting stale data in database |
CN106991179A (en) * | 2017-04-07 | 2017-07-28 | 广东欧珀移动通信有限公司 | Data-erasure method, device and mobile terminal |
US9888143B1 (en) * | 2016-11-15 | 2018-02-06 | International Business Machines Corporation | Timed image deletion from a personal electronic device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150317403A1 (en) * | 2014-05-04 | 2015-11-05 | Reduxio Systems Ltd. | System and method for management of data based bookmarks |
CN104866242B (en) * | 2015-05-29 | 2018-12-04 | 上海京东到家元信信息技术有限公司 | A kind of data deletion system, method and data delete center |
CN105512332A (en) * | 2015-12-25 | 2016-04-20 | 北京奇虎科技有限公司 | Method for linking and adjusting data between databases, device and system |
-
2018
- 2018-07-26 CN CN201810837643.XA patent/CN110765081A/en active Pending
-
2019
- 2019-07-23 WO PCT/CN2019/097320 patent/WO2020020170A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216821A (en) * | 2007-01-05 | 2008-07-09 | 中兴通讯股份有限公司 | Data acquisition system storage management method |
CN101556589A (en) * | 2008-04-09 | 2009-10-14 | 北京闻言科技有限公司 | Method for Oracle regularly deleting stale data in database |
US9888143B1 (en) * | 2016-11-15 | 2018-02-06 | International Business Machines Corporation | Timed image deletion from a personal electronic device |
CN106991179A (en) * | 2017-04-07 | 2017-07-28 | 广东欧珀移动通信有限公司 | Data-erasure method, device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN110765081A (en) | 2020-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9002777B1 (en) | Systems and methods for handling data | |
WO2019019621A1 (en) | Service processing method, device, server and storage medium | |
JPH05173873A (en) | Data processor and storage management method | |
CN109271435A (en) | A kind of data pick-up method and system for supporting breakpoint transmission | |
EP3788505B1 (en) | Storing data items and identifying stored data items | |
CN102725752A (en) | Method and device for processing dirty data | |
WO2020020170A1 (en) | Data deleting method and device | |
WO2020224236A1 (en) | Apparatus, method and system for blockchain data processing, and storage medium | |
CN107783881B (en) | Website dynamic performance monitoring method and system based on memory queue | |
CN109885642B (en) | Hierarchical storage method and device for full-text retrieval | |
CN110321364B (en) | Transaction data query method, device and terminal of credit card management system | |
CN111125171A (en) | Monitoring data access method, device, equipment and readable storage medium | |
KR101666440B1 (en) | Data processing method in In-memory Database System based on Circle-Queue | |
CN110764711B (en) | IO data classification deleting method and device and computer readable storage medium | |
WO2018019310A1 (en) | Big data system data backup and recovery methods and devices, and computer storage medium | |
CN109426563B (en) | Process management method and device | |
CN107846327A (en) | A kind of processing method and processing device of network management performance data | |
CN111447145B (en) | Flow table management method, device, system and storage medium of multi-core system | |
CN111061719B (en) | Data collection method, device, equipment and storage medium | |
CN112597112A (en) | Data processing method and device, electronic equipment and storage medium | |
CN114385551A (en) | Log time-sharing management method, device, equipment and storage medium | |
CN113760176A (en) | Data storage method and device | |
CN113779426A (en) | Data storage method and device, terminal equipment and storage medium | |
KR100516929B1 (en) | Apparatus and method for analyzing task management, and storage media having program thereof | |
JP2734088B2 (en) | Logging file processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19840125 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19840125 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19840125 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 10/08/2021) |