IP Library Granted Patent US 11,636,071
Granted Patent B2
US 11,636,071 · App. 16/739,729 · Granted Apr 25, 2023

Database replication error recovery based on supervised learning

Inventors: Swaroop Jayanthi (Hyderabad, IN); Janakirama Raju Mantena (Hyderabad, IN)
Assignee: salesforce.com, inc.
G06F16/1844G06F11/0772G06F11/1464G06F11/3034G06F16/1734G06F16/2264G06F16/2291G06K9/6264G06N20/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,636,071
App. No.
16/739,729
Granted
Apr 25, 2023
Kind
B2
Abstract

System and methods are described for automated recovery from errors occurring during replication of a database. The method includes getting text from one or more log files generated during database replication processing in a cloud computing environment, transforming the text into a structured language form represented by vectors, and identifying patterns in the vectors. The method further includes classifying one or more errors based on the identified patterns using supervised learning as either a recoverable error or an unrecoverable error, analyzing the one or more errors to determine one or more recovery jobs associated with database replication processing in the cloud computing environment for each of the recoverable errors, and invoking the one or more recovery jobs.

Claims (105)

1. A system, comprising:

a database system implemented using a server system, the database system configurable to cause:

training a predictive model using a set of training data;

performing database replication processing in a cloud computing environment such that one or more log files are generated, the one or more log files including text generated during the database replication processing;

obtaining the text from the one or more log files;

transforming the text into a plurality of vectors, each vector representing an instance of an error that occurred during database replication processing, wherein transforming the text includes:

segmenting the text into sentences;

segmenting the sentences into tokens such that segmented sentences are generated;

tagging the tokens of the segmented sentences as parts of speech such that tagged sentences are generated;

detecting entities in the tagged sentences;

detecting relations among the entities; and

converting the relations into vectors;

classifying, using the predictive model, one or more errors based on the vectors as a recoverable error such that one or more recoverable errors are identified;

determining, for the one or more recoverable errors based, at least in part, on corresponding error sub-types, one or more recovery jobs associated with database replication processing in the cloud computing environment; and

automatically invoking the one or more recovery jobs, the one or more recovery jobs including re-executing at least a portion of the database replication processing.

2. The system of claim 1 , the database system further configurable to cause:

classifying, using the predictive model, at least a second error as an unrecoverable error based on at least one of the vectors;

notifying a user that the unrecoverable error has occurred.

3. The system of claim 1 , wherein transforming the text into a plurality of vectors comprises:

segmenting the text into sentences;

segmenting the sentences into tokens such that segmented sentences are generated;

tagging the tokens of the segmented sentences as parts of speech such that tagged sentences are generated;

detecting entities in the tagged sentences;

detecting relations among the entities; and

converting the relations into vectors.

4. The system of claim 1 , wherein classifying the errors based on vectors comprises applying the predictive model to the vectors.

5. The system of claim 4 , the database system further configurable to cause:

splitting the vectors into training data and testing data;

training the predictive model with the training data;

testing the predictive model with the testing data;

evaluating metrics obtained from the training and testing; and

tuning error classification predictive model parameters of the predictive model based, at least in part, on the evaluated metrics.

6. The system of claim 5 , wherein the predictive model performs binary classification on the vectors.

7. The system of claim 1 , wherein classifying the errors includes classifying the errors into sub-types of errors; and

determining at least one recovery job for each sub-type of the recoverable errors.

8. A computer-implemented method comprising:

training a predictive model using a set of training data;

performing database replication processing in a cloud computing environment such that one or more log files are generated, the one or more log files including text generated during the database replication processing;

obtaining the text from the one or more log files;

transforming the text into a plurality of vectors, each vector representing an instance of an error that occurred during database replication processing, wherein transforming the text includes:

segmenting the text into sentences;

segmenting the sentences into tokens such that segmented sentences are generated;

tagging the tokens of the segmented sentences as parts of speech such that tagged sentences are generated;

detecting entities in the tagged sentences;

detecting relations among the entities; and

converting the relations into vectors;

classifying, using the predictive model, one or more errors based on the vectors as a recoverable error such that one or more recoverable errors are identified;

determining, for the one or more recoverable errors based, at least in part, on corresponding error sub-types, one or more recovery jobs associated with database replication processing in the cloud computing environment; and

automatically invoking the one or more recovery jobs, the one or more recovery jobs including re-executing at least a portion of the database replication processing.

9. The computer-implemented method of claim 8 , further comprising

classifying, using the predictive model, at least a second error as an unrecoverable error based on at least one of the vectors;

notifying a user that the unrecoverable error has occurred.

10. The computer-implemented method of claim 8 , wherein transforming the text into a plurality of vectors comprises:

segmenting the text into sentences;

segmenting the sentences into tokens;

tagging the tokens of the segmented sentences as parts of speech such that tagged sentences are generated;

detecting entities in the tagged sentences;

detecting relations among the entities; and

converting the relations into vectors.

11. The computer-implemented method of claim 8 , wherein classifying one or more errors based on the vectors comprises applying the predictive model to the vectors.

12. The computer-implemented method of claim 11 , further comprising:

splitting the vectors into training data and testing data;

training the predictive model with the training data;

testing the predictive model with the testing data;

evaluating metrics obtained from the training and testing; and

tuning error classification predictive model parameters of the predictive model based, at least in part, on the evaluated metrics.

13. The computer-implemented method of claim 8 , wherein the predictive model performs binary classification on the vectors.

14. The computer-implemented method of claim 8 , further comprising:

classifying the errors into sub-types of errors; and

for each sub-type of the recoverable errors, determine at least one recovery job.

15. A tangible, non-transitory computer-readable storage medium having instructions stored thereon which, when executed by a processing device, cause the processing device to:

train a predictive model using a set of training data;

perform database replication processing in a cloud computing environment such that one or more log files are generated, the one or more log files including text generated during the database replication processing;

obtain the text from the one or more log files;

transform the text into a plurality of vectors, each vector representing an instance of an error that occurred during database replication processing, wherein transforming the text includes:

segmenting the text into sentences;

segmenting the sentences into tokens such that segmented sentences are generated;

tagging the tokens of the segmented sentences as parts of speech such that tagged sentences are generated;

detecting entities in the tagged sentences;

detecting relations among the entities; and

converting the relations into vectors;

classify, using the predictive model, one or more errors based on the vectors as a recoverable error such that one or more recoverable errors are identified;

determine, for the one or more recoverable errors based, at least in part, on corresponding error sub-types, one or more recovery jobs associated with database replication processing in the cloud computing environment; and

automatically invoke the one or more recovery jobs, the one or more recovery jobs including re-executing at least a portion of the database replication processing.

16. The tangible, non-transitory computer-readable storage medium of claim 15 , having instructions stored thereon which, when executed by the processing device, cause the processing device to:

classify, using the predictive model, at least a second error as an unrecoverable error based on at least one of the vectors;

notify a user that the unrecoverable error has occurred.

17. The tangible, non-transitory computer-readable storage medium of claim 15 , wherein instructions to transform the text comprise instructions stored thereon that, in response to execution by the processing device, cause the processing device to:

segment the text into sentences;

segment the sentences into tokens such that tokenized sentences are generated;

tag the tokens of the tokenized sentences as parts of speech such that tagged sentences are generated;

detect entities in the tagged sentences;

detect relations among the entities; and

convert the relations into vectors.

18. The tangible, non-transitory computer-readable storage medium of claim 15 , wherein instructions to classify one or more errors apply the predictive model to the vectors.

19. The tangible, non-transitory computer-readable storage medium of claim 18 , further comprising instructions stored thereon that, in response to execution by the processing device, cause the processing device to:

split the vectors into training data and testing data;

train the predictive model with the training data;

test the predictive model with the testing data;

evaluate metrics obtained from the training and testing; and

tune predictive model parameters of the predictive model based, at least in part, on the evaluated metrics.

20. The tangible, non-transitory computer-readable storage medium of claim 19 , wherein the predictive model performs binary classification on the vectors.

21. The tangible, non-transitory computer-readable storage medium of claim 15 , further comprising instructions stored thereon that, in response to execution by the processing device, cause the processing device to:

classify the errors into sub-types of errors; and

determine, for each sub-type of the recoverable errors, at least one recovery job.

Assignments (2)
CHANGE OF NAME Recorded Dec 18, 2024
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 069717/0470 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 6, 2020
From: JAYANTHI, SWAROOP; MANTENA, JANAKIRAMA RAJU
To: SALESFORCE.COM, INC.
Reel/Frame 051746/0553 →
Continuity (1)
Related Publication 20210216509A1 · Jul 15, 2021
Cited By (1)
US 12,450,294