[ https://issues.apache.org/jira/browse/TRAFODION-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15783067#comment-15783067 ]
ASF GitHub Bot commented on TRAFODION-2420: ------------------------------------------- GitHub user selvaganesang opened a pull request: https://github.com/apache/incubator-trafodion/pull/898 [TRAFODION-2420] RMS enhancements Introduced a feature in RMS offender to list queries blocked in storage engine. This lists queries which are blocked in the storage engine APIs for more than given number of seconds. The BLOCKED_FOR_SECS denotes how long the storage engine API is blocked. The SQL commands to list SE_BLOCKED queries are available at: $TRAF_HOME/export/limited-support-tools/LSO/se_blocked.sql Example output is below: cd $TRAF_HOME/export/limited-support-tools/LSO ./offender -s se_blocked CURRENT_TIMESTAMP NO_OF_PROCESSES BLOCKED_FOR_SECS QUERY_ID TABLE_NAME -------------------------- --------------- ---------------- ------------------------------------------------------------ ------------------------------ 2016-12-28 10:29:43.941455 1 83 MXID11000030514212349680799580002000000000206U3333300_18_S1 TRAFODION.SCH.T022 You can merge this pull request into a Git repository by running: $ git pull https://github.com/selvaganesang/incubator-trafodion se_offender Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-trafodion/pull/898.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 #898 ---- commit ce6b44612f3fc19a18314f985853322dd39b66e4 Author: selvaganesang <selva.govindara...@esgyn.com> Date: 2016-12-28T14:57:49Z [TRAFODION-2420] RMS enhancements Introduced a feature to list queries blocked in storage engine via RMS offender. This lists queries which are blocked in the storage engine APIs for more than given number of seconds. The BLOCKED_FOR_SECS denotes how long the storage engine API is blocked. The SQL commands to list SE_BLOCKED queries are available at: $TRAF_HOME/export/limited-support-tools/LSO/se_blocked.sql Example output is below: cd $TRAF_HOME/export/limited-support-tools/LSO ./offender -s se_blocked CURRENT_TIMESTAMP NO_OF_PROCESSES BLOCKED_FOR_SECS QUERY_ID TABLE_NAME -------------------------- --------------- ---------------- ------------------------------------------------------------ ------------------------------ 2016-12-28 10:29:43.941455 1 83 MXID11000030514212349680799580002000000000206U3333300_18_S1 TRAFODION.SCH.T022 ---- > RMS enhancements > ---------------- > > Key: TRAFODION-2420 > URL: https://issues.apache.org/jira/browse/TRAFODION-2420 > Project: Apache Trafodion > Issue Type: Improvement > Components: sql-general > Affects Versions: 2.1-incubating > Reporter: Selvaganesan Govindarajan > Assignee: Selvaganesan Govindarajan > > Improve RMS to provide the following features/capabilities: > 1. Currently RMS can list queries that consumed cpu time between two time > points. However, the calls to storage engine like hbase, hdfs etc are > blocking and these blocked APIs will not allow the Trafodion SQL engine > scheduler to detect the cpu time spent during the time the call was blocked. > Introduce a feature called SE offender (storage engine offender) to list the > queries that are blocked in storage engine more than a certain duration. > 2. Remove counters that are no longer updated or needed -- This message was sent by Atlassian JIRA (v6.3.4#6332)