OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

Appendix B. Output Format of Deadlock Information

Assume that a deadlock occurs between two or more UAPs. In this case, if lck_deadlock_info = Y is defined in the OpenTP1 lock service definition, deadlock information is output to the directory in the node of the lock service. This information is output in the following cases:

Organization of this section
(1) Names of directory and file to which deadlock information is output
(2) Output format of deadlock information
(3) Output format of timeout information
(4) Output format used with TP1/FS/Table Access

(1) Names of directory and file to which deadlock information is output

Deadlock information is output as follows.

Example

Oct. 3, 7 h. 41 m. 00 s. : Oct3074100
Oct. 10, 15 h. 5 m. 27 s. : Oct10150527

This file name is displayed in the message log which indicates that a deadlock occurred. Delete files which are no longer necessary.

(2) Output format of deadlock information

Figure B-1 shows the output format of deadlock information displayed when a deadlock is detected. Figure B-2 gives an output example.

Figure B-1 Output format of deadlock information

[Figure]

Explanation:

(1) Time at which the deadlock was detected

(2) Server name and process ID of the access requester

(3) Transaction global identifier of the access requester

(4) Transaction branch identifier of the access requester

(5) Information on the server acquiring the resources
  • Name of the server requesting lock
  • Lock mode (PR or EX)
  • Name of the occupied resource
  • MIGRATE/BRANCH request type

(6) Information on the server waiting for resource unlocking
  • Name of the server requesting lock
  • Lock mode (PR or EX)
  • Name of the resource to be unlocked
  • MIGRATE/BRANCH request type

(7) Time at which resource unlock wait occurred

Note
Items (2) to (7) are output for each UAP (server process) involved in the deadlock.

Figure B-2 Output example of deadlock information

[Figure]

#
When there is no occupied resource, this field is displayed as blank.

(3) Output format of timeout information

Figure B-3 shows the output format of timeout information displayed when a timeout is detected. Figure B-4 gives an output example.

Figure B-3 Output format of timeout information

[Figure]

Explanation:

(1) Time at which the timeout was detected

(2) Server name and process ID related to the timeout

(3) Transaction global identifier related to the timeout

(4) Transaction branch identifier related to the timeout

(5) Information that was exclusively used by the server having caused the timeout. This information is output for all resources that were occupied by the server having caused the timeout.
  • Name of the server requesting lock
  • Lock mode (PR or EX)
  • Name of the occupied resource
  • MIGRATE/BRANCH request type

(6) Wait information on the server having caused the timeout
  • Name of the server requesting lock
  • Lock mode (PR or EX)
  • Name of the resource to be unlocked
  • MIGRATE/BRANCH request type

(7) Name and process ID of the server constituting the factors of the timeout

(8) Transaction global identifier constituting the factors of the timeout

(9) Transaction branch identifier constituting the factors of the timeout

(10) Information that was exclusively used by the server constituting the factors of the timeout. This information is output for all servers constituting the factors of the timeout.
  • Name of the server requesting lock
  • Lock mode (PR or EX)
  • Name of the occupied resource
  • MIGRATE/BRANCH request type

Note
Items (7) to (10) (concerning a server waiting for resource acquisition or unlocking) are output for each resource which was about to be occupied by the server having caused the timeout when the timeout occurred.

Figure B-4 Output example of timeout information

[Figure]

#
When there are no occupied resources, this information is not output.

(4) Output format used with TP1/FS/Table Access

If the TP1/FS/Table Access is in use and use of its resource encounters deadlock time-out, the output information will contain the table name, key values, among others.

The figure below shows the format of information which will be output when a deadlock is detected.

Figure B-5 Output format of TAM resource deadlock information

[Figure]

Explanation:

(1) TAM table name indicated by the resource name
If the resource name begins with T, the TAM table indicated by (1) is the resource; lines (2) and (3) are not output.
If the resource name begins with R, the TAM record is the resource; it is on the TAM table indicated by (1). In this case, lines (2) and (3) are output.

(2) Key length of the TAM record indicated by the resource name

(3) Key value of the TAM record indicated by the resource name
The key value is given in [ ] in hexadecimal.
If the key value is printable, the printable characters are output to the right of [ ]; if it is not, '.' is output to the right of [ ]. If the key value is less than a multiple of 16, the remaining area is padded with 00s.