CN103488549B - Roll-back processing system and roll-back processing method for multi-mirror-image data - Google Patents

Roll-back processing system and roll-back processing method for multi-mirror-image data Download PDF

Info

Publication number
CN103488549B
CN103488549B CN201310460975.8A CN201310460975A CN103488549B CN 103488549 B CN103488549 B CN 103488549B CN 201310460975 A CN201310460975 A CN 201310460975A CN 103488549 B CN103488549 B CN 103488549B
Authority
CN
China
Prior art keywords
mirror image
data
rollback
virtual
roll
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310460975.8A
Other languages
Chinese (zh)
Other versions
CN103488549A (en
Inventor
李登高
包敬斌
张应才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Medical Information Technology Co ltd
Original Assignee
Medical Information Technology Co Ltd Of Beijing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Medical Information Technology Co Ltd Of Beijing University filed Critical Medical Information Technology Co Ltd Of Beijing University
Priority to CN201310460975.8A priority Critical patent/CN103488549B/en
Publication of CN103488549A publication Critical patent/CN103488549A/en
Application granted granted Critical
Publication of CN103488549B publication Critical patent/CN103488549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a roll-back processing system for multi-mirror-image data. The roll-back processing system comprises a virtual processing unit, a state comparing unit and an instruction execution unit, wherein the virtual processing unit is used for executing virtual roll-back corresponding to data roll-back instructions when a mirror image managing server receives the data roll-back instructions, the state comparing unit is used for recording virtual roll-back states after the virtual roll-back and comparing the virtual roll-back states with mirror image service mark points corresponding to the data roll-back instructions, and the instruction execution unit is used for controlling the mirror image managing server to execute the data roll-back instructions under the circumstance that the virtual roll-back states are matched with the mirror image service mark points, and controlling the mirror image managing server not to execute the data roll-back instructions if not. The invention further provides a roll-back processing method for the multi-mirror-image data. According to the technical scheme, whether the roll-back instructions are executed correctly can be judged through the virtual roll-back, and therefore correct execution of data roll-back operation is ensured.

Description

The rollback processing system of many mirror image datas and rollback processing method
Technical field
The present invention relates to technical field of data processing, in particular to a kind of rollback processing system of many mirror image datas With a kind of rollback processing method of many mirror image datas.
Background technology
In data processing, often through the Backup Data preserving multiple time points for data, thus work as that number occurs During according to mistake, can be processed by rollback, recover the state during time point to before certain, reduce loss as much as possible.
However, when directly executing rolling back action, being still likely to occur mistake, such as rollback process error itself, or choosing Select rollback time point of mistake etc. and all may lead to rollback mistake.
Accordingly, it would be desirable to a kind of new rollback treatment technology, can judge whether to be appropriately carried out time by virtual rollback Rolling instruction it is ensured that data rewind operation correct execution.
Content of the invention
The present invention is based on the problems referred to above it is proposed that a kind of new rollback treatment technology, can be sentenced by virtual rollback Disconnected whether it has been appropriately carried out rollback instruction it is ensured that the correct execution of data rewind operation.
In view of this, the present invention proposes a kind of rollback processing system of many mirror image datas, comprising: Virtual Processing Unit, For in mirror image management server, when receiving data rewind instruction, execution is corresponding to virtual time of the instruction of described data rewind Rolling;Epidemic situation comparison unit, for recording the virtual rollback state after described virtual rollback, and refers to corresponding to described data rewind The data mode of the mirror transaction labelling point of order is compared;Instruction execution unit, in described virtual rollback state and institute State in the case that mirror transaction labelling point matches, control the described data rewind instruction of described mirror image management server execution, no Then do not execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that also including in technique scheme: service-creation unit, for creating in mirror image management server Build the service for record traffic mirror image;Wherein, described Virtual Processing Unit utilizes virtual rollback described in described service execution.
In this technical scheme, virtual rolling back action can be executed by the service creating for record traffic mirror image.
It is preferable that also including in technique scheme: flag data acquiring unit, for from connection to described mirror image Described mirror transaction labelling point is obtained in the mirror image server of management server.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that also including in technique scheme: merging treatment unit, for controlling described mirror image management service The implementing result that device instructs according to described data rewind, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: data record unit, for obtaining after described merging treatment Data result record in the historical data of described mirror image server.In this technical scheme, by record in historical record In, inquired about after being easy to.
According to another aspect of the invention it is also proposed that a kind of rollback processing method of many mirror image datas, comprising: step 202, when receiving data rewind instruction, execution is corresponding to virtual time of the instruction of described data rewind for mirror image management server Rolling;Step 204, records the virtual rollback state after described virtual rollback, and with the mirror image instructing corresponding to described data rewind The data mode of transaction tag point is compared;Step 206, if described virtual rollback state and described mirror transaction labelling point phase Mate, then described mirror image management server executes described data rewind instruction, does not otherwise execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that before described step 202, also including in technique scheme: create in mirror image management server Service for record traffic mirror image;Wherein, in described step 204, using rollback virtual described in described service execution.
It is preferable that described step 204 also includes in technique scheme: from connection to described mirror image management server Mirror image server in obtain described mirror transaction labelling point.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that described step 206 also includes in technique scheme: described mirror image management server is according to described The implementing result of data rewind instruction, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: by the data result record obtaining after described merging treatment in institute State in the historical data of mirror image server.In this technical scheme, by record in historical record, looked into after being easy to Ask.
By above technical scheme, can judge whether to be appropriately carried out rollback instruction it is ensured that counting by virtual rollback Correct execution according to rolling back action.
Brief description
Fig. 1 shows the block diagram of the rollback processing system of many according to an embodiment of the invention mirror image datas;
The flow chart that Fig. 2 shows the rollback processing method of many according to an embodiment of the invention mirror image datas;
Fig. 3 shows the particular flow sheet that the rollback executing many mirror image datas according to an embodiment of the invention is processed;
Fig. 4 shows the structural representation of the rollback processing system of many according to an embodiment of the invention mirror image datas.
Specific embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specifically real Mode of applying is further described in detail to the present invention.It should be noted that in the case of not conflicting, the enforcement of the application Feature in example and embodiment can be mutually combined.
Elaborate a lot of details in the following description in order to fully understand the present invention, but, the present invention also may be used To be implemented different from other modes described here using other, therefore, protection scope of the present invention is not described below Specific embodiment restriction.
Fig. 1 shows the block diagram of the rollback processing system of many according to an embodiment of the invention mirror image datas.
As shown in figure 1, the rollback processing system 100 of many according to an embodiment of the invention mirror image datas, comprising: virtual place Reason unit 102, in mirror image management server, when receiving data rewind instruction, execution refers to corresponding to described data rewind The virtual rollback of order;Epidemic situation comparison unit 104, for recording the virtual rollback state after described virtual rollback, and with correspond to The data mode of the mirror transaction labelling point of described data rewind instruction is compared;Instruction execution unit 106, for described In the case that virtual rollback state and described mirror transaction labelling point match, control described mirror image management server execution described Data rewind instructs, and does not otherwise execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that also including in technique scheme: service-creation unit 108, in mirror image management server Create the service for record traffic mirror image;Wherein, described Virtual Processing Unit 102 utilizes virtual time described in described service execution Rolling.
In this technical scheme, virtual rolling back action can be executed by the service creating for record traffic mirror image.
It is preferable that also including in technique scheme: flag data acquiring unit 110, for from connection to described mirror As obtaining described mirror transaction labelling point in the mirror image server of management server.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that also including in technique scheme: merging treatment unit 112, for controlling described mirror image management clothes The implementing result that business device instructs according to described data rewind, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: data record unit 114, for obtaining after described merging treatment To data result record in the historical data of described mirror image server.In this technical scheme, by record in history note In record, inquired about after being easy to.
The flow chart that Fig. 2 shows the rollback processing method of many according to an embodiment of the invention mirror image datas.
As shown in Fig. 2 the rollback processing method of many according to an embodiment of the invention mirror image datas, comprising: step 202, , when receiving data rewind instruction, execution is corresponding to the virtual rollback of described data rewind instruction for mirror image management server;Step Rapid 204, record the virtual rollback state after described virtual rollback, and with the mirror transaction mark instructing corresponding to described data rewind The data mode of note point is compared;Step 206, if described virtual rollback state is matched with described mirror transaction labelling point, Then described mirror image management server executes described data rewind instruction, does not otherwise execute.
In this technical scheme, in advance the data occurring each time is merged and split etc. with operation, all generates corresponding number According to difference log, and daily record point is set, then the daily record point of mirror transaction labelling point as generation.Therefore, mirror transaction labelling Point actually corresponds in daily record certain fixing data mode of record, by by the data mode after virtual rollback and phase Mirror transaction labelling point is answered to be compared, thus judging whether this virtual rolling back action correctly executes.Virtual by first carrying out in advance Rolling back action, thus when an error occurs, can re-operate, it is to avoid directly cause the mistake that cannot retrieve during rollback.
It is preferable that before described step 202, also including in technique scheme: create in mirror image management server Service for record traffic mirror image;Wherein, in described step 204, using rollback virtual described in described service execution.
It is preferable that described step 204 also includes in technique scheme: from connection to described mirror image management server Mirror image server in obtain described mirror transaction labelling point.
In this technical scheme, in the mirror image server of mirror image management server, data storage difference log, mirror image thing Business labelling point certain specific daily record point as in the daily record of storage.
It is preferable that described step 206 also includes in technique scheme: described mirror image management server is according to described The implementing result of data rewind instruction, merges process to the rollback data obtaining.
Although the increase of number of operations is so that the Operation Log generating also gets more and more, on the one hand in this technical scheme Need to take more memory spaces, on the other hand may improve the difficulty of data management aspect.Therefore, by rollback data Related multiple Operation Logs collect for an Operation Log, you can realize the saving to memory space, and be favorably improved Data management efficiency, reduces risk and the probability of error.
It is preferable that also including in technique scheme: by the data result record obtaining after described merging treatment in institute State in the historical data of mirror image server.In this technical scheme, by record in historical record, looked into after being easy to Ask.
With reference to Fig. 3 and Fig. 4, technical scheme is described in detail, wherein, Fig. 3 shows according to this The particular flow sheet that the rollback of the many mirror image datas of execution of inventive embodiment is processed;Fig. 4 shows the enforcement according to the present invention The structural representation of the rollback processing system of many mirror image datas of example.
As shown in figure 3, the idiographic flow that the rollback executing many mirror image datas according to an embodiment of the invention is processed includes:
Step 302, mirror image management server 402 receives rollback instruction.
Step 304, executes virtual rollback.Specifically, service 403 can be created to execute by mirror image management server 402 The operation of virtual rollback.In the inventive solutions, directly according to the rollback instruction receiving, data is not executed back Rolling operation, but first pass through virtual rollback, to judge whether this rolling back action is correct, thus reducing the error of rollback process Probability.
Step 306, the result of virtual rollback is contrasted with the labelling point in each mirror image server 406.
Step 308, obtains comparing result, if coupling, enters step 310, does not otherwise execute real rolling back action, directly To next time receive data rewind instruction when, return again to step 302.
Step 310, executes real data rewind operation.
Step 312, the data for presentation mirror image management server that rollback is processed executes merging treatment.
Step 314, the result of merging treatment is stored in the record data to record data server 406.
Step 316, optionally, can store record data in the historical data to historic data server 408, with Inquired about for user.
Technical scheme is described in detail above in association with accompanying drawing, the invention provides a kind of many mirror image datas return Rolling processing system and a kind of rollback processing method of many mirror image datas, can judge whether to be appropriately carried out by virtual rollback Rollback instruction it is ensured that data rewind operation correct execution.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (8)

1. a kind of rollback processing system of many mirror image datas is it is characterised in that include:
Virtual Processing Unit, in mirror image management server, when receiving data rewind instruction, execution is corresponding to described number Virtual rollback according to rollback instruction;
Epidemic situation comparison unit, for recording the virtual rollback state after described virtual rollback, and with corresponding to described data rewind The data mode of the mirror transaction labelling point of instruction is compared;
Instruction execution unit, in the case of matching with described mirror transaction labelling point in described virtual rollback state, control Make the described data rewind instruction of described mirror image management server execution, otherwise do not execute;
Service-creation unit, for creating the service for record traffic mirror image in mirror image management server;
Described Virtual Processing Unit utilizes virtual rollback described in described service execution;
Wherein, in advance the data occurring each time is merged and fractured operation, all generate corresponding data difference daily record, and arrange Daily record point, then the daily record point of mirror transaction labelling point as generation.
2. the rollback processing system of many mirror image datas according to claim 1 is it is characterised in that also include:
Flag data acquiring unit, for obtaining described mirror image from connection to the mirror image server of described mirror image management server Transaction tag point.
3. the rollback processing system of many mirror image datas according to claim 2 is it is characterised in that also include:
Merging treatment unit, for the implementing result controlling described mirror image management server to be instructed according to described data rewind, right The rollback data obtaining merges process, will the multiple Operation Logs related to rollback data collect for an operation day Will.
4. the rollback processing system of many mirror image datas according to claim 3 is it is characterised in that also include:
Data record unit, for the data result record that will obtain after described merging treatment described mirror image server history In data.
5. a kind of rollback processing method of many mirror image datas is it is characterised in that include:
Step 202, when receiving data rewind instruction, execution is corresponding to the instruction of described data rewind for mirror image management server Virtual rollback;
Step 204, records the virtual rollback state after described virtual rollback, and with the mirror image instructing corresponding to described data rewind The data mode of transaction tag point is compared;
Step 206, if described virtual rollback state is matched with described mirror transaction labelling point, described mirror image management server Execute described data rewind instruction, otherwise do not execute;
Before described step 202, also include:
Service for record traffic mirror image is created on mirror image management server;
In described step 204, using rollback virtual described in described service execution;
Wherein, in advance the data occurring each time is merged and fractured operation, all generate corresponding data difference daily record, and arrange Daily record point, then the daily record point of mirror transaction labelling point as generation.
6. the rollback processing method of many mirror image datas according to claim 5 is it is characterised in that described step 204 is also wrapped Include:
Obtain described mirror transaction labelling point from connect to the mirror image server of described mirror image management server.
7. the rollback processing method of many mirror image datas according to claim 6 is it is characterised in that described step 206 is also wrapped Include:
The implementing result that described mirror image management server instructs according to described data rewind, merges to the rollback data obtaining Process, will the multiple Operation Logs related to rollback data collect for an Operation Log.
8. the rollback processing method of many mirror image datas according to claim 7 is it is characterised in that also include:
By the data result record obtaining after described merging treatment in the historical data of described mirror image server.
CN201310460975.8A 2013-09-29 2013-09-29 Roll-back processing system and roll-back processing method for multi-mirror-image data Active CN103488549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310460975.8A CN103488549B (en) 2013-09-29 2013-09-29 Roll-back processing system and roll-back processing method for multi-mirror-image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310460975.8A CN103488549B (en) 2013-09-29 2013-09-29 Roll-back processing system and roll-back processing method for multi-mirror-image data

Publications (2)

Publication Number Publication Date
CN103488549A CN103488549A (en) 2014-01-01
CN103488549B true CN103488549B (en) 2017-01-18

Family

ID=49828803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310460975.8A Active CN103488549B (en) 2013-09-29 2013-09-29 Roll-back processing system and roll-back processing method for multi-mirror-image data

Country Status (1)

Country Link
CN (1) CN103488549B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988865B (en) * 2015-03-04 2019-10-08 阿里巴巴集团控股有限公司 Rollback processing method and processing device
CN111625397B (en) * 2020-04-14 2023-09-12 北京捷通华声科技股份有限公司 Service log backup method, cluster, device, electronic equipment and storage medium
CN111638996B (en) * 2020-05-14 2023-04-11 华中科技大学 Method and system for ensuring fault atomicity in nonvolatile memory

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423192A (en) * 2001-12-05 2003-06-11 微软公司 Soft installatign on mobile computering apparatus using configuration manager rolling back and safety characteristic
CN102402623A (en) * 2011-12-28 2012-04-04 北京人大金仓信息技术股份有限公司 Embedded-database-system-oriented no journaling transaction processing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7146386B2 (en) * 2004-03-29 2006-12-05 Microsoft Corporation System and method for a snapshot query during database recovery

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423192A (en) * 2001-12-05 2003-06-11 微软公司 Soft installatign on mobile computering apparatus using configuration manager rolling back and safety characteristic
CN102402623A (en) * 2011-12-28 2012-04-04 北京人大金仓信息技术股份有限公司 Embedded-database-system-oriented no journaling transaction processing method

Also Published As

Publication number Publication date
CN103488549A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN106407356B (en) Data backup method and device
CN107220142B (en) Method and device for executing data recovery operation
US20170316046A1 (en) Importation, presentation, and persistent storage of data
CN102947804B (en) Key configuration when trace data disposal system
CN104657158B (en) The method and apparatus of business processing in a kind of operation system
CN105573859A (en) Data recovery method and device of database
EP3039534B1 (en) Generating an idempotent workflow
CN110555150B (en) Data monitoring method, device, equipment and storage medium
CN109166026B (en) Account checking method, account checking device, computer equipment and storage medium
CN107643904B (en) Method, device and medium for detecting code submission log and electronic equipment
CN103198122A (en) Method and device for restarting in-memory database
CN109445928A (en) A kind of access request processing method, device, equipment and readable storage medium storing program for executing
CN109558213A (en) The method and apparatus for managing the virtual machine snapshot of OpenStack platform
CN103488549B (en) Roll-back processing system and roll-back processing method for multi-mirror-image data
CN103020304A (en) Data processing method and equipment
CN103235811A (en) Data storage method and device
US20120316927A1 (en) Computer-implemented method and apparatus for integrating heterogeneous business processes
CN106874343B (en) Data deletion method and system for time sequence database
US20140108367A1 (en) Client apparatus and database server for resumable transaction and method thereof
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN109299116B (en) Data synchronization method, device, equipment and readable storage medium
CN106250501B (en) Report processing method and reporting system
CN102591993A (en) Asynchronous processing method and device for hotlist data update
US20140289742A1 (en) Method of sharing contents
CN111708576A (en) Cross-operating-system equipment network card adapting and managing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: PKU HEALTHCARE IT CO., LTD.

Free format text: FORMER OWNER: FOUNDER INTERNATIONAL CO., LTD.

Effective date: 20150203

Free format text: FORMER OWNER: FOUNDER INTERNATIONAL (BEIJING) CO., LTD.

Effective date: 20150203

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 215123 SUZHOU, JIANGSU PROVINCE TO: 100080 HAIDIAN, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20150203

Address after: 100080, No. 19, No. 52 West Fourth Ring Road, Beijing, Haidian District

Applicant after: Peking University Medical Information Technology Co.,Ltd.

Address before: Suzhou City, Jiangsu Province, Suzhou Industrial Park 215123 Xinghu Street No. 328 Creative Industry Park founder International Building

Applicant before: FOUNDER INTERNATIONAL Co.,Ltd.

Applicant before: Founder International Co.,Ltd. (Beijing)

C14 Grant of patent or utility model
GR01 Patent grant
PP01 Preservation of patent right

Effective date of registration: 20240202

Granted publication date: 20170118

PP01 Preservation of patent right