[
https://issues.apache.org/jira/browse/TRAFODION-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15768605#comment-15768605
]
ASF GitHub Bot commented on TRAFODION-2414:
-------------------------------------------
GitHub user prashanth-vasudev opened a pull request:
https://github.com/apache/incubator-trafodion/pull/885
[TRAFODION-2414] enhance 8616 commit conflict error message to include tx
conflict details
commit conflict error detail is available in the region.
This error is raised as a commit conflict exception and carried back to
transaction manager and further back to sql client.
Careful attention is given to make sure TM behaviour does not change
by making sure to the error codes continue to be returned along with
new exception strings.
Current set of change takes are of multi region transaction.
Additional change will be checked in to support single region transactions.
Error message looks like this:
>>commit work;
*** ERROR[8616] A conflict was detected during commit processing.
Transaction has been aborted. Detail
:org.trafodion.dtm.TransactionManagerException:
org.apache.hadoop.hbase.coprocessor.transactional.CommitConflictException:
java.io.IOException: Transaction [[transactionId: 17114 regionTX: false status:
PENDING scan Size: 2 write Size: 1 startSQ: 2]] has scan which conflicts with
[[transactionId: 1554366944090715 regionTX: true status: COMMITED scan Size: 2
write Size: 1 startSQ: 2 commitedSQ:2]]: region
[TRAFODION.SCH.T116T6,,1482359816577.c4a43321f6a96035c3deeb0d85e55ccb.],
scanRange[startRow: \x80\x00\x00\x01, endRow: \x80\x00\x00\x01], inserted
row[\x80\x00\x00\x01]
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/prashanth-vasudev/incubator-trafodion tmErrMsg
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafodion/pull/885.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #885
----
commit 4a63d90d929a25940044d1a44f4e26dd6016c9cf
Author: Prashant Vasudev <[email protected]>
Date: 2016-12-21T23:50:12Z
[TRAFODION-2414] enhance 8616 commit conflict error message to include tx
conflict details.
----
> 8616 error to display transaction conflict details.
> -----------------------------------------------------
>
> Key: TRAFODION-2414
> URL: https://issues.apache.org/jira/browse/TRAFODION-2414
> Project: Apache Trafodion
> Issue Type: Improvement
> Components: dtm, sql-exe
> Affects Versions: any
> Reporter: Prashanth Vasudev
> Assignee: Prashanth Vasudev
> Fix For: 2.1-incubating
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)