Nonstop Database, HiRDB Version 9 System Operation Guide
This section explains the method of checking the transaction completion type when an error occurs during commit processing.
When an error occurs during transaction execution, HiRDB performs commit or rollback processing for each server. When this processing is completed, HiRDB sets information about each transaction and the transaction completion type in a KFPS00990-I message that it outputs to the transaction's server. If an error occurred that caused a transaction to roll back on its own, HiRDB sets the transaction information and transaction completion type in a KFPS00973-I message that it outputs to the server in which updating branching occurred.
The following figure shows how to check the transaction completion type when an error has occurred. You use this procedure also when a commit error is returned for a UAP.
Figure 20-10 Checking the transaction completion type when an error has occurred
The following table shows the transaction completion types when an error occurs during commit processing. Note that the transaction completion types in the table apply only in cases in which the front-end server or back-end server unit did not terminate abnormally.
Table 20-25 Transaction completion types when an error occurred during commit processing
Item | Error timing | Front-end server | Back-end or dictionary server | Transaction completion type | ||
---|---|---|---|---|---|---|
KFPS00973-I or KPFS00990-I message | Completion type that is output in message | KFPS00973-I or KPFS00990-I message | Completion type that is output in message | |||
1 | During commit processing | Yes | Commit | Yes | Commit | Commit |
2 | Rollback | Rollback | ||||
3 | No | -- | Commit | |||
4 | Rollback | Yes | Commit | Commit | ||
5 | Rollback | Rollback | ||||
6 | No | -- | Rollback | |||
7 | No | -- | Yes | Commit | Commit | |
8 | Rollback | Rollback | ||||
9 | No | -- | Commit | |||
10 | Before transaction completion | Yes | Rollback | Yes | Rollback | Rollback |
11 | No | -- | Rollback | |||
12 | No | Yes | Rollback | Rollback | ||
13 | No | -- | -- |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.