You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Rakov (JIRA)" <ji...@apache.org> on 2019/04/15 00:27:00 UTC
[jira] [Commented] (IGNITE-11142) Control.sh should print detailed
information about transaction.
[ https://issues.apache.org/jira/browse/IGNITE-11142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16817488#comment-16817488 ]
Ivan Rakov commented on IGNITE-11142:
-------------------------------------
Output example:
{code:java}
Control utility [ver. 2.7.0-SNAPSHOT#20190415-sha1:DEV]
2019 Copyright(C) Apache Software Foundation
User: Glukos
Time: 2019-04-15T03:20:50.847
--------------------------------------------------------------------------------
Resolved transaction near XID version: GridCacheVersion [topVer=166767641, order=1555287642239, nodeOrder=6]
Transaction detailed info:
Near XID version: GridCacheVersion [topVer=166767641, order=1555287642239, nodeOrder=6]
Near XID version (UUID): f701e5e1a61-00000000-09f0-ac19-0000-000000000006
Isolation: READ_COMMITTED
Concurrency: OPTIMISTIC
Timeout: 0
Initiator node: c41bdf7e-e013-4d5b-aec1-4b271b3b7567
Initiator node (consistent ID): client
Label: null
Topology version: AffinityTopologyVersion [topVer=6, minorTopVer=1]
Used caches (ID to name): {1544803905=default}
Used cache groups (ID to name): {1544803905=default}
States across the cluster: [PREPARED, PREPARING]
Transaction topology:
TcpDiscoveryNode [id=c5d87622-3e49-4a57-8e17-3fd37e100000, addrs=[127.0.0.1], order=1, ver=2.7.0#20190415-sha1:00000000, isClient=false, consistentId=bltTest0]:
Mapping [type=REMOTE]:
State: PREPARED
Primary node: e6063215-61e7-488f-b199-a972a3900004
Primary node (consistent ID): bltTest4
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=107, val=107, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: a2040911-b900-4ddc-96bb-a3f769800002
Primary node (consistent ID): bltTest2
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=100, val=100, hasValBytes=true], cacheId=1544803905]
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=101, val=101, hasValBytes=true], cacheId=1544803905]
Mapping [type=DHT]:
State: PREPARING
Mapped keys:
Write [lock=AWAITS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=0, val=0, hasValBytes=true], cacheId=1544803905]
Lock owner: GridCacheVersion [topVer=166767641, order=1555287636297, nodeOrder=1]
TcpDiscoveryNode [id=e6063215-61e7-488f-b199-a972a3900004, addrs=[127.0.0.1], order=2, ver=2.7.0#20190415-sha1:00000000, isClient=false, consistentId=bltTest4]:
Mapping [type=REMOTE]:
State: PREPARED
Primary node: ec7953bf-0b32-4dad-94cc-79202bf00003
Primary node (consistent ID): bltTest3
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=103, val=103, hasValBytes=true], cacheId=1544803905]
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=105, val=105, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: ecc99fe2-26e4-48ad-8611-3b5080d00001
Primary node (consistent ID): bltTest1
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=102, val=102, hasValBytes=true], cacheId=1544803905]
Mapping [type=DHT]:
State: PREPARED
Mapped keys:
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=107, val=107, hasValBytes=true], cacheId=1544803905]
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=108, val=108, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: a2040911-b900-4ddc-96bb-a3f769800002
Primary node (consistent ID): bltTest2
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=100, val=100, hasValBytes=true], cacheId=1544803905]
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=104, val=104, hasValBytes=true], cacheId=1544803905]
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=109, val=109, hasValBytes=true], cacheId=1544803905]
TcpDiscoveryNode [id=a2040911-b900-4ddc-96bb-a3f769800002, addrs=[127.0.0.1], order=3, ver=2.7.0#20190415-sha1:00000000, isClient=false, consistentId=bltTest2]:
Mapping [type=DHT]:
State: PREPARED
Mapped keys:
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=100, val=100, hasValBytes=true], cacheId=1544803905]
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=101, val=101, hasValBytes=true], cacheId=1544803905]
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=104, val=104, hasValBytes=true], cacheId=1544803905]
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=109, val=109, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: ecc99fe2-26e4-48ad-8611-3b5080d00001
Primary node (consistent ID): bltTest1
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=102, val=102, hasValBytes=true], cacheId=1544803905]
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=106, val=106, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: e6063215-61e7-488f-b199-a972a3900004
Primary node (consistent ID): bltTest4
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=108, val=108, hasValBytes=true], cacheId=1544803905]
TcpDiscoveryNode [id=ecc99fe2-26e4-48ad-8611-3b5080d00001, addrs=[127.0.0.1], order=4, ver=2.7.0#20190415-sha1:00000000, isClient=false, consistentId=bltTest1]:
Mapping [type=DHT]:
State: PREPARED
Mapped keys:
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=102, val=102, hasValBytes=true], cacheId=1544803905]
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=106, val=106, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: ec7953bf-0b32-4dad-94cc-79202bf00003
Primary node (consistent ID): bltTest3
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=103, val=103, hasValBytes=true], cacheId=1544803905]
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=105, val=105, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: e6063215-61e7-488f-b199-a972a3900004
Primary node (consistent ID): bltTest4
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=107, val=107, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: a2040911-b900-4ddc-96bb-a3f769800002
Primary node (consistent ID): bltTest2
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=104, val=104, hasValBytes=true], cacheId=1544803905]
TcpDiscoveryNode [id=ec7953bf-0b32-4dad-94cc-79202bf00003, addrs=[127.0.0.1], order=5, ver=2.7.0#20190415-sha1:00000000, isClient=false, consistentId=bltTest3]:
Mapping [type=DHT]:
State: PREPARED
Mapped keys:
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=103, val=103, hasValBytes=true], cacheId=1544803905]
Write [lock=OWNS_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=105, val=105, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: ecc99fe2-26e4-48ad-8611-3b5080d00001
Primary node (consistent ID): bltTest1
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=106, val=106, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: e6063215-61e7-488f-b199-a972a3900004
Primary node (consistent ID): bltTest4
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=108, val=108, hasValBytes=true], cacheId=1544803905]
Mapping [type=REMOTE]:
State: PREPARED
Primary node: a2040911-b900-4ddc-96bb-a3f769800002
Primary node (consistent ID): bltTest2
Mapped keys:
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=101, val=101, hasValBytes=true], cacheId=1544803905]
Write [lock=NO_LOCK]: IgniteTxKey [key=KeyCacheObjectImpl [part=109, val=109, hasValBytes=true], cacheId=1544803905]
TcpDiscoveryNode [id=c41bdf7e-e013-4d5b-aec1-4b271b3b7567, addrs=[127.0.0.1], order=6, ver=2.7.0#20190415-sha1:00000000, isClient=true, consistentId=client]:
Mapping [type=NEAR]:
State: PREPARING
{code}
> Control.sh should print detailed information about transaction.
> ---------------------------------------------------------------
>
> Key: IGNITE-11142
> URL: https://issues.apache.org/jira/browse/IGNITE-11142
> Project: Ignite
> Issue Type: Improvement
> Reporter: Sergey Antonov
> Assignee: Ivan Rakov
> Priority: Major
> Fix For: 2.8
>
>
> We should be able to get detailed information about transactions. Approximate info per node:
> * Initiator node
> * Transaction state
> * Used caches
> * Used entry keys
> * Locked keys
>
> Possible command: {{control.sh --tx-info --ids txid1[txid2,...txidN]}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)