hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-15849) Shell Cleanup: Simplify handling of commands' runtime
Date Thu, 09 Nov 2017 01:03:00 GMT

     [ https://issues.apache.org/jira/browse/HBASE-15849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Purtell updated HBASE-15849:
-----------------------------------
    Fix Version/s: 1.4.0

> Shell Cleanup: Simplify handling of commands' runtime
> -----------------------------------------------------
>
>                 Key: HBASE-15849
>                 URL: https://issues.apache.org/jira/browse/HBASE-15849
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Appy
>            Assignee: Appy
>            Priority: Minor
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: HBASE-15849.master.001.patch
>
>
> Functions format_simple_command and format_and_return_simple_command are used to print
runtimes right now. They are called from within every single command and use Ruby's 'yield'
magic.  Instead, we can simplify it using 'command_safe' function. Since command_safe wraps
all commands, we can simply time before and after we call individual command.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message