Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15849

Shell Cleanup: Simplify handling of commands' runtime

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

        1. HBASE-15849.master.001.patch
          70 kB
          Apekshit Sharma

        Issue Links

          Activity

            People

            • Assignee:
              appy Apekshit Sharma
              Reporter:
              appy Apekshit Sharma

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment