IP Library Granted Patent US 11,907,102
Granted Patent B2
US 11,907,102 · App. 17/582,603 · Granted Feb 20, 2024

Dynamic debug log enabler for any protection failure jobs

Inventors: Pravin Kumar A (Bangalore, IN); Preeti Varma (Bangalore, IN); Jayashree Radha (Bangalore, IN)
Assignee: Dell Products L.P.
G06F11/3656G06F11/366G06F11/3636
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,907,102
App. No.
17/582,603
Granted
Feb 20, 2024
Kind
B2
Abstract

The present invention provides a system, computer readable code and method for dynamically performing debugging. The system, code, and method store debugging logs throughout an operation. At predetermined points the logs are stored to a cache. Older and/or unnecessary logs are periodically deleted from the cache to ensure that the cache does not grow to be larger than a predetermined size. This avoids the need to re-run a scenario after an error occurs in order to produce troubleshooting/debugging information.

Claims (46)

1. A method for dynamically producing a debug log, comprising:

detect initiation of an operation, wherein the operation is a backup operation;

produce a debug log for a predetermined portion of the operation,

wherein operation is divided into a plurality of portions,

wherein the each of the plurality of portions is identified using one of a plurality of checkpoints in code for the operation, and

wherein the predetermined portion is one of the plurality of portions;

store the debug log for the predetermined portion in a dynamic logger cache, wherein:

if the operation fails during the predetermined portion, write the debug log stored in the dynamic logger cache to a debug log file in persistent storage; or

if the operation does not fail during the predetermined portion, delete the debug log in the dynamic logger cache according to a predefined procedure,

wherein the predetermined portion is identified using a first checkpoint of the plurality of checkpoints,

wherein the predefined procedure specifies deleting the debug log when a second checkpoint of the plurality of checkpoints is reached, and

wherein the second checkpoint is reached after the first checkpoint; and

repeat the producing and storing of the debug log for each portion of the operation until either the operation ends or a portion of the operation fails.

2. The method of claim 1 , wherein the debug log is produced by a data protection manager.

3. The method of claim 1 , wherein the debug log is enabled by default.

4. A non-transitory computer readable medium comprising computer readable program code, which when executed by a computer processor enables the computer processor to perform a method, the method comprising:

detecting initiation of an operation, wherein the operation is a backup operation;

producing a debug log for a predetermined portion of the operation,

wherein operation is divided into a plurality of portions,

wherein the each of the plurality of portions is identified using one of a plurality of checkpoints in code for the operation, and

wherein the predetermined portion is one of the plurality of portions;

storing the debug log for the predetermined portion in a dynamic logger cache, wherein:

if the operation fails during the predetermined portion, write the debug log stored in the dynamic logger cache to a debug log file in persistent storage; or

if the operation does not fail during the predetermined portion, delete the debug log in the dynamic logger cache according to a predefined procedure,

wherein the predetermined portion is identified using a first checkpoint of the plurality of checkpoints,

wherein the predefined procedure specifies deleting the debug log when a second checkpoint of the plurality of checkpoints is reached, and

wherein the second checkpoint is reached after the first checkpoint; and

repeating the producing and storing of the debug log for each portion of the operation until either the operation ends or a portion of the operation fails.

5. The non-transitory computer readable medium of claim 4 , wherein the debug log is produced by a data protection manager.

6. An electronic device comprising:

a dynamic logger cache;

a persistent storage;

a processor; and

a memory having computer program instructions stored thereon, the processor executing the computer program instructions in the memory to perform a method comprising of:

detecting initiation of an operation, wherein the operation is a backup operation,

wherein operation is divided into a plurality of portions,

wherein the each of the plurality of portions is identified using one of a plurality of checkpoints in code for the operation,

wherein the predetermined portion is one of the plurality of portions;

producing a debug log for a predetermined portion of the operation;

storing the debug log for the predetermined portion in the dynamic logger cache, wherein:

if the operation fails during the predetermined portion, writing the debug log stored in the dynamic logger cache to a debug log file in the persistent storage; or

if the operation does not fail during the predetermined portion, delete the debug log in the dynamic logger cache according to a predefined procedure,

wherein the predetermined portion is identified using a first checkpoint of the plurality of checkpoints,

wherein the predefined procedure specifies deleting the debug log when a second checkpoint of the plurality of checkpoints is reached, and

wherein the second checkpoint is reached after the first checkpoint; and

repeating the producing and storing of the debug log for each portion of the operation until either the operation ends or the operation fails.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 25, 2022
From: KUMAR A, PRAVIN; VARMA, PREETI; RADHA, JAYASHREE
To: DELL PRODUCTS L.P.
Reel/Frame 058759/0665 →
Continuity (1)
Related Publication 20230236953A1 · Jul 27, 2023