IP Library › Granted Patent US 11,381,496
Granted Patent B1
US 11,381,496 · App. 17/327,997 · Granted Jul 5, 2022

Testing a two-phase commit protocol conformance of a cloud based online transaction processing platform

Inventors: Madhu B Ananthapadmanabh (Bangalore, IN); Kishor Kulkarni (Gadag, IN); Reshmi George (Bangalore, IN)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
H04L43/50H04L43/04
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,381,496
App. No.
17/327,997
Granted
Jul 5, 2022
Kind
B1
Abstract

Embodiments include methods, systems and computer program products for performing a two-phase commit conformance test for a cloud based online transaction processing system (OLTP). Aspects include receiving, by a test case manager of the OLTP from a transaction manager of the OLTP, a transaction event including metadata regarding a transaction and determining a state of the transaction. Aspects also include identifying a test case based on the metadata and the state of the transaction and issuing state events to the transaction manager, wherein the state events are determined based on the test case. Aspects further include obtaining log information from the transaction manager and determining compliance by the transaction manager with the two-phase commit conformance test based at least in part on the log information.

Claims (42)

1. A method for performing a two-phase commit conformance test for a cloud based online transaction processing system (OLTP), the method comprising:

receiving, by a test case manager of the OLTP from a transaction manager of the OLTP, a transaction event including metadata regarding a transaction, wherein the transaction event is configured to initiate the two-phase commit conformance;

determining, by the test case manager, a state of the transaction;

identifying, by the test case manager, a test case based on the metadata and the state of the transaction;

issuing, by a test controller of the test case, state events to the transaction manager, wherein the state events are determined based on the test case;

obtaining, by a log analyzer of the test case manager, log information from the transaction manager; and

determining, by the test case manager, compliance by the transaction manager with the two-phase commit conformance test based on the log information,

wherein the transaction manager is configured to create the transaction events in a random manner that has a frequency that is configurable by a user.

2. The method of claim 1 , wherein the test case manager receives the transaction event from the transaction manager via a publish/subscribe server.

3. The method of claim 1 , wherein the metadata includes a type of a resource manager, a type of the transaction, a number of participants in the transaction and an identification of the participants.

4. The method of claim 1 , wherein the state events are transaction events that are configured to prompt a desired response by the transaction manager.

5. The method of claim 4 , wherein determining compliance by the transaction manager with the two-phase commit conformance test includes determining, based on the log information from the transaction manager, whether the transaction manager performed the desired response.

6. The method of claim 1 , wherein the state of the transaction is determining by accessing a state machine maintained by a test controller of the test case manager.

7. A computer program product, comprising:

a storage device; and

program code stored in the storage device, wherein the program code, when executed by a controller that controls a non-volatile memory array of a data storage system, causes the controller to:

receive, by a test case manager of the online transaction processing system (OLTP) from a transaction manager of the OLTP, a transaction event including metadata regarding a transaction, wherein the transaction event is configured to initiate the two-phase commit conformance;

determine, by the test case manager, a state of the transaction;

identify, by the test case manager, a test case based on the metadata and the state of the transaction;

issuing, by a test controller of the test case, state events to the transaction manager, wherein the state events are determined based on the test case;

obtain, by a log analyzer of the test case manager, log information from the transaction manager; and

determine, by the test case manager, compliance by the transaction manager with the two-phase commit conformance test based on the log information,

wherein the transaction manager is configured to create the transaction events in a random manner that has a frequency that is configurable by a user.

8. The computer program product of claim 7 , wherein the test case manager receives the transaction event from the transaction manager via a publish/subscribe server.

9. The computer program product of claim 7 , wherein the metadata includes a type of a resource manager, a type of the transaction, a number of participants in the transaction and an identification of the participants.

10. The computer program product of claim 7 , wherein the state events are transaction events that are configured to prompt a desired response by the transaction manager.

11. The computer program product of claim 10 , wherein determining compliance by the transaction manager with the two-phase commit conformance test includes determining, based on the log information from the transaction manager, whether the transaction manager performed the desired response.

12. The computer program product of claim 7 , wherein the state of the transaction is determining by accessing a state machine maintained by a test controller of the test case manager.

13. A system for testing a two-phase commit protocol conformance of a cloud based online transaction processing system (OLTP) platform, the system comprising:

a controller configured to be coupled to a non-volatile memory array, wherein the controller is configured to:

receive, by a test case manager of the OLTP from a transaction manager of the OLTP, a transaction event including metadata regarding a transaction, wherein the transaction event is configured to initiate the two-phase commit conformance;

determine, by the test case manager, a state of the transaction;

identify, by the test case manager, a test case based on the metadata and the state of the transaction;

issuing, by a test controller of the test case, state events to the transaction manager, wherein the state events are determined based on the test case;

obtain, by a log analyzer of the test case manager, log information from the transaction manager; and

determine, by the test case manager, compliance by the transaction manager with the two-phase commit conformance test based on the log information,

wherein the transaction manager is configured to create the transaction events in a random manner that has a frequency that is configurable by a user.

14. The system of claim 13 , wherein the test case manager receives the transaction event from the transaction manager via a publish/subscribe server.

15. The system of claim 13 , wherein the metadata includes a type of a resource manager, a type of the transaction, a number of participants in the transaction and an identification of the participants.

16. The system of claim 13 , wherein the state events are transaction events that are configured to prompt a desired response by the transaction manager.

17. The system of claim 16 , wherein determining compliance by the transaction manager with the two-phase commit conformance test includes determining, based on the log information from the transaction manager, whether the transaction manager performed the desired response.

18. The method of claim 1 , wherein determining compliance by the transaction manager with the two-phase commit conformance test includes determining, based on the log information from the transaction manager, whether the transaction manager performed the desired response.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 24, 2021
From: ANANTHAPADMANABH, MADHU B; KULKARNI, KISHOR; GEORGE, RESHMI
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 056330/0679 →
Cited By (1)
US 12,393,605