Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82CBD18E93 for ; Thu, 25 Feb 2016 21:52:18 +0000 (UTC) Received: (qmail 78968 invoked by uid 500); 25 Feb 2016 21:52:18 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 78857 invoked by uid 500); 25 Feb 2016 21:52:18 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 78775 invoked by uid 99); 25 Feb 2016 21:52:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2016 21:52:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 19F432C14F8 for ; Thu, 25 Feb 2016 21:52:18 +0000 (UTC) Date: Thu, 25 Feb 2016 21:52:18 +0000 (UTC) From: "Keith Turner (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-4152) Create command to dump stack for FATE operation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)