Unlock instant, AI-driven research and patent intelligence for your innovation.

Log playback method, device and equipment and computer readable storage medium

A technology of logs and serial numbers, which is applied in the direction of data error detection and instrumentation for redundancy in calculations and operations, and can solve problems such as finding logs and log playback failures

Pending Publication Date: 2020-10-30
GUANGDONG INSPUR BIG DATA RES CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, during the log playback process, the log sequence number in the OSD file system may be at least one smaller than the log sequence number in the log system. Therefore, when performing log playback on the distributed storage system, it is impossible to find the file to be played back in the log system. The situation of the log, causing the log playback to fail

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log playback method, device and equipment and computer readable storage medium
  • Log playback method, device and equipment and computer readable storage medium
  • Log playback method, device and equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0056] In a distributed file system, the main function of an OSD (Object-based Storage Device, object storage device) is to store data, copy data, balance data, restore data, and so on. Generally, one hard disk corresponds to one OSD, and the OSD manages the hard disk storage. When writing data into the OSD, the data needs to be written into the log system first, and then written into the OSD local file system by the log system. The system and the OSD local file system are asynchro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a log playback method, device and equipment, and a computer readable storage medium, which are applied to a distributed file system, and the method includes obtaining a first serial number of a first valid log in a log system; obtaining a second serial number of the written log in the OSD local file system; judging whether the difference between the first serial number andthe second serial number is greater than 1 or not; if so, taking a log serial number which is one greater than the second serial number as a third serial number; judging whether a log corresponding tothe third serial number exists in a log system or not; and if the log corresponding to the third serial number exists in the log system, performing log playback on the OSD local file system from thelog corresponding to the third serial number. According to the invention, under the condition that the difference value between the first serial number and the second serial number is larger than 1, the log serial number larger than the second serial number serves as the third serial number, the log corresponding to the third serial number is searched for in the log system through the third serialnumber, and therefore the success rate of log playback can be guaranteed.

Description

technical field [0001] The present application relates to the technical field of distributed storage, and more specifically, relates to a log playback method, system, device, and computer-readable storage medium. Background technique [0002] In a distributed file system, the main function of an OSD (Object-based Storage Device, object storage device) is to store data, copy data, balance data, restore data, and so on. Generally, one hard disk corresponds to one OSD, and the OSD manages the hard disk storage. When writing data into the OSD, the data needs to be written into the log system first, and then written into the OSD local file system by the log system. The system and the OSD local file system are asynchronously processed, that is, they are processed by two different threads, so the progress of the log serial number written to the file system and the serial number already written to the OSD local file system is different. In order to distinguish between the two seri...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/18G06F16/182G06F11/14
CPCG06F16/1815G06F16/182G06F11/1435G06F11/1438
Inventor 王庆海孟祥瑞
Owner GUANGDONG INSPUR BIG DATA RES CO LTD