[
https://issues.apache.org/jira/browse/TRAFODION-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oliver Bucaojit updated TRAFODION-2449:
---------------------------------------
Attachment: TRAFODION-2449.v2.patch
Uploading v2 patch.
Worked around single region issue by instead passing one long string with all
the region information and delimiting with a '|'. The RegionInfo string is
then parsed in dtmci.
Fixed a few bugs in existing code to get this working:
- Changed transid type to long
- Different data structure in HashMapArray -- HashMap<Long, String> vs
ArrayList<HashMap<String, String>>();
- Keeps track of transid from C++ to Java in order to correlate transid with
regions
- Fixed iteration over the TransactionRegionLocation in HBaseTxClient
Current version prints the full region name, hostname:port, and
startkey/endkeys in hex format.
Example:
$ dtmci
DTM Command line interface. v 3.1.0, Nov 26, 2014
DTMCI > status regions
Transid Status
-----------------------------------------------------------------------------------------------------
(0,870006) ACTIVE
-----------
RegionInfo:
TRAFODION.SEABASE.T3,,1490241001029.eeab0e2c354d08e7b76e75127c116644.
Hostname: localhost.localdomain:38315
Start/End Key: INFINITE INFINITE
-----------
RegionInfo:
TRAFODION.SEABASE.T2,,1490142236860.ee2abe2b1b0d7538c7c67e9df7c6ad02.
Hostname: localhost.localdomain:38315
Start/End Key: INFINITE INFINITE
-----------
RegionInfo:
TRAFODION.SEABASE.T1,0a9sdfasfijk,1490152155663.66fea8756cc70b95d664db2f058480cd.
Hostname: localhost.localdomain:38315
Start/End Key: 306139736466617366696a6b INFINITE
-----------------------------------------------------------------------------------------------------
(0,870008) ACTIVE
-----------
RegionInfo:
TRAFODION.SEABASE.T2,,1490142236860.ee2abe2b1b0d7538c7c67e9df7c6ad02.
Hostname: localhost.localdomain:38315
Start/End Key: INFINITE INFINITE
DTMCI >
> dtmci - Enhance to include HBase-related info for status
> ---------------------------------------------------------
>
> Key: TRAFODION-2449
> URL: https://issues.apache.org/jira/browse/TRAFODION-2449
> Project: Apache Trafodion
> Issue Type: Improvement
> Components: dtm
> Affects Versions: 2.2-incubating
> Reporter: Oliver Bucaojit
> Priority: Minor
> Attachments: TRAFODION-2449.v1.patch, TRAFODION-2449.v2.patch
>
>
> Request for enhancement
> dtmci 'status trans' does not show information regarding table name,
> regionserver, or region. It would be beneficial for troubleshooting and
> understanding the path taken by a transaction to include HBase related
> information.
> Initial idea would be to add a 'detailed' option to specifying the trans id.
> DTMCI > status trans <transid>, detailed
> Looking at the code, this work would require adding JNI calls from the tm
> process to the HBaseTxClient class to gather this information.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)