You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2016/02/25 22:52:18 UTC

[jira] [Commented] (ACCUMULO-4152) Create command to dump stack for FATE operation

    [ https://issues.apache.org/jira/browse/ACCUMULO-4152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15167937#comment-15167937 ] 

Keith Turner commented on ACCUMULO-4152:
----------------------------------------

I have been working on this in a [branch on github|https://github.com/keith-turner/accumulo/tree/ACCUMULO-4152].  I am getting it to a point where I am happy w/ the functionality, still need to add documentation.  Below is some output from running the new command.

Below shows starting a compaction in the shell.

{noformat}
root@instance16> compact -t test_ingest -b row_0 -e row_1
2016-02-25 16:34:56,790 [shell.Shell] INFO : Compaction of table test_ingest started for given range
{noformat}

Below shows listing the fate operations.

{noformat}
root@instance16> fate print
txid: 493dcc7b03d40262  status: IN_PROGRESS         op: CompactRange     locked: [R:+default, R:2] locking: []              top: CompactionDriver
 1 transactions
{noformat}

Below shows running the new command to dump the serialized java objects related to each fate transaction. Could have run {{fate dump 493dcc7b03d40262}} also.

{code:javascript}
root@instance16> fate dump
[
  {
    "txid": "493dcc7b03d40262",
    "stack": [
      {
        "org.apache.accumulo.master.tableOps.TraceRepo": {
          "traceId": 0,
          "parentId": 0,
          "repo": {
            "org.apache.accumulo.master.tableOps.CompactionDriver": {
              "compactId": 12,
              "tableId": "2",
              "startRow": {
                "asUtf8": "row_0",
                "asBase64": "cm93XzA"
              },
              "endRow": {
                "asUtf8": "row_1",
                "asBase64": "cm93XzE"
              }
            }
          }
        }
      },
      {
        "org.apache.accumulo.master.tableOps.TraceRepo": {
          "traceId": 0,
          "parentId": 0,
          "repo": {
            "org.apache.accumulo.master.tableOps.CompactRange": {
              "tableId": "2",
              "startRow": {
                "asUtf8": "row_0",
                "asBase64": "cm93XzA"
              },
              "endRow": {
                "asUtf8": "row_1",
                "asBase64": "cm93XzE"
              }
            }
          }
        }
      }
    ]
  }
]
{code}

> Create command to dump stack for FATE operation
> -----------------------------------------------
>
>                 Key: ACCUMULO-4152
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4152
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Keith Turner
>             Fix For: 1.8.0
>
>
> Each FATE operation has an associated stack of serialized java objects in zookeeper.  It would be nice to be able to see the contents of these objects.  One possible way to do this is to serialize each object on the stack as json and print out the json.   Using json avoids implementing a useful toString method for each type of fate object.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)