METHODS AND SYSTEMS FOR PROVIDING FAULT RECOVERY TO SIDE EFFECTS OCCURRING DURING DATA PROCESSING
First Claim
1. A method for providing fault recovery to side effects occurring during data processing, the method comprising:
- detecting a fault in processing a set of rows of a database, wherein at least one of the set of rows includes at least one side effect;
rolling back each of the set of rows processed and retrying processing on a subset of the set of rows in which rows associated with faults have been removed until a subset of the set of rows in which each row of the subset of rows is able to be processed to the database without fault is determined; and
processing the subset of rows to the database and executing the at least one side effect, thereby ensuring that no side effects have occurred from executing code on behalf of any rows associated with a fault.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments may recover from faults by forming a new set of rows by removing rows associated with faulting save operations and repeating the saving and forming operations using the new set of rows until a set of rows that can be saved from the known start state without fault is determined. When the subset of successful rows is found, embodiments are able to provide assurance that no side effects (i.e., code or operations triggered by saving of a data to a particular location) have been executed on behalf of any of the failed rows (side effects from custom PL/SOQL code included) by deferring execution of triggers until an entire set of rows can be saved and committed.
-
Citations
12 Claims
-
1. A method for providing fault recovery to side effects occurring during data processing, the method comprising:
-
detecting a fault in processing a set of rows of a database, wherein at least one of the set of rows includes at least one side effect; rolling back each of the set of rows processed and retrying processing on a subset of the set of rows in which rows associated with faults have been removed until a subset of the set of rows in which each row of the subset of rows is able to be processed to the database without fault is determined; and processing the subset of rows to the database and executing the at least one side effect, thereby ensuring that no side effects have occurred from executing code on behalf of any rows associated with a fault. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A machine-readable medium carrying one or more sequences of instructions for providing fault recovery to side effects occurring during data processing, which instructions, when executed by one or more processors, cause the one or more processors to carry out the steps of:
-
detecting a fault in processing a set of rows of a database, wherein at least one of the set of rows includes at least one side effect;
rolling back each of the set of rows processed and retrying processing on a subset of the set of rows in which rows associated with faults have been removed until a subset of the set of rows in which each row of the subset of rows is able to be processed; andprocessing the subset of rows to the database and executing the at least one side effect, thereby ensuring that no side effects have occurred from executing code on behalf of any rows associated with a fault. - View Dependent Claims (7, 8, 9, 10)
-
-
11. An apparatus for providing fault recovery to side effects occurring during data processing, the apparatus comprising:
-
a processor; and one or more stored sequences of instructions which, when executed by the processor, cause the processor to carry out the steps of; detecting a fault in processing a set of rows of a database, wherein at least one of the set of rows includes at least one side effect; rolling back each of the set of rows processed and retrying processing on a subset of the set of rows in which rows associated with faults have been removed until a subset of the set of rows in which each row of the subset of rows is able to be processed; and processing the subset of rows to the database and executing the at least one side effect, thereby ensuring that no side effects have occurred from executing code on behalf of any rows associated with a fault.
-
-
12. A method for transmitting code for providing fault recovery to side effects occurring during data processing on a transmission medium, the method comprising:
-
transmitting code to detect a fault in processing a set of rows of a database, wherein at least one of the set of rows includes at least one side effect; transmitting code to roll back each of the set of rows processed and retry processing on a subset of the set of rows in which rows associated with faults have been removed until a subset of the set of rows in which each row of the subset of rows is able to be processed; and transmitting code to process the subset of rows to the database and execute the at least one side effect, thereby ensuring that no side effects have occurred from executing code on behalf of any rows associated with a fault.
-
Specification