Transaction Error Handler Rule Function Reference
This table contains reference for the Transaction Error Handler rule function.
Argument | Notes |
---|---|
Object txns | You can turn this argument into an
Object[] within the rule function, for example:
Object[] array = txns; The resulting array can be used to obtain useful data:
|
int errorType | Value can be one of:
|
int errCode | The error code, which is dependent on
errorType :
|
String errMsg | The associated exception message. |
long retryCount | The number of times this transaction has been retried before the present call to the callback.
Handling Post-RTC action errors: When Post-RTC actions fail, such as acknowledging or sending a message, action handlers try only 10 times with500 milliseconds sleep. The following parameter scan be configured:
Handling Post-RTC database transaction errors: In case of database exception, the number of tries and waits between each tries are handled by the following configuration parameters:
After the number of tries are exhausted, the transaction is aborted. You can also perform additional actions by registering an error handler rule function as before: See
Note: When the number of tries are exhausted and the transactions are aborted, it is likely that the cache and database will be in an inconsistent state. Practice care when setting a limit to the number of retries. Logs should be also monitored for database related exceptions and immediate action should take as soon as possible. It is also advised to disable parallel operations if a limit is set to the number of retries. In this case, multiple transactions are committed to the database together and a single database failure can affect multiple of them.
|