You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/06/27 22:25:00 UTC

[jira] [Commented] (TRAFODION-3121) Enhance 'initialize trafodion' command to return progress status

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

ASF GitHub Bot commented on TRAFODION-3121:
-------------------------------------------

GitHub user anoopsharma00 opened a pull request:

    https://github.com/apache/trafodion/pull/1624

    TRAFODION-3121 Enhance 'initialize trafodion' to return progress status

    -- init traf will now return status during various steps.
       'Started' indication will be returned when that step starts.
       'Completed' will be returned when it completes successfully.
       'Failed' will be returned if that step fails.
       Elapsed time for each step will be shown in {ET hh:mm:ss} format.
    
    -- method CmpSeabaseDDL::initSeabaseMD is rewritten and moved from
      file CmpSeabaseDDLcommon.cpp to new file CmpSeabaseDDLinitraf.cpp.
    
    -- priv mgr tables are now always created during init traf.
    
    -- a 'no return status' option has been added if status is not to be
      returned during init traf. This is used when init traf is called
      internally, for ex, during upgrade.
      It is not an externalized option.
    
    -- Output of init traf is shown below.
       Note: output is not a printf/cout to stdout.
       It is returned as selected rows to the caller.
    
    Apache Trafodion Conversational Interface 2.3.0
    Copyright (c) 2015-2017 Apache Software Foundation
    >>initialize trafodion;
    Initialize Trafodion: Started
    
    Verify User: Started
    Verify User: Completed {ET: 00:00:00}
    
    Version Check: Started
    Version Check: Completed {ET: 00:00:00}
    
    Create Metadata Tables: Started
    Create Metadata Tables: Completed {ET: 00:00:49}
    
    Update Metadata Tables: Started
    Update Metadata Tables: Completed {ET: 00:00:06}
    
    Create Schema Objects: Started
    Create Schema Objects: Completed {ET: 00:00:20}
    
    Create Metadata Views: Started
    Create Metadata Views: Completed {ET: 00:00:05}
    
    Create Repository Tables: Started
    Create Repository Tables: Completed {ET: 00:00:16}
    
    Create PrivMgr Tables: Started
    Create PrivMgr Tables: Completed {ET: 00:00:29}
    
    Create Library Manager: Started
    Create Library Manager: Completed {ET: 00:00:51}
    
    Initialize Trafodion: Completed {ET: 00:03:09}
    
    --- SQL operation complete.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/anoopsharma00/trafodion ansharma_initraf_br

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafodion/pull/1624.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 #1624
    
----
commit 6f0f102a0365f69693828e18ee48271a41f07611
Author: Anoop Sharma <an...@...>
Date:   2018-06-27T22:21:25Z

    TRAFODION-3121 Enhance 'initialize trafodion' to return progress status
    
    -- init traf will now return status during various steps.
       'Started' indication will be returned when that step starts.
       'Completed' will be returned when it completes successfully.
       'Failed' will be returned if that step fails.
       Elapsed time for each step will be shown in {ET hh:mm:ss} format.
    
    -- method CmpSeabaseDDL::initSeabaseMD is rewritten and moved from
      file CmpSeabaseDDLcommon.cpp to new file CmpSeabaseDDLinitraf.cpp.
    
    -- priv mgr tables are now always created during init traf.
    
    -- a 'no return status' option has been added if status is not to be
      returned during init traf. This is used when init traf is called
      internally, for ex, during upgrade.
      It is not an externalized option.
    
    -- Output of init traf is shown below.
       Note: output is not a printf/cout to stdout.
       It is returned as selected rows to the caller.
    
    Apache Trafodion Conversational Interface 2.3.0
    Copyright (c) 2015-2017 Apache Software Foundation
    >>initialize trafodion;
    Initialize Trafodion: Started
    
    Verify User: Started
    Verify User: Completed {ET: 00:00:00}
    
    Version Check: Started
    Version Check: Completed {ET: 00:00:00}
    
    Create Metadata Tables: Started
    Create Metadata Tables: Completed {ET: 00:00:49}
    
    Update Metadata Tables: Started
    Update Metadata Tables: Completed {ET: 00:00:06}
    
    Create Schema Objects: Started
    Create Schema Objects: Completed {ET: 00:00:20}
    
    Create Metadata Views: Started
    Create Metadata Views: Completed {ET: 00:00:05}
    
    Create Repository Tables: Started
    Create Repository Tables: Completed {ET: 00:00:16}
    
    Create PrivMgr Tables: Started
    Create PrivMgr Tables: Completed {ET: 00:00:29}
    
    Create Library Manager: Started
    Create Library Manager: Completed {ET: 00:00:51}
    
    Initialize Trafodion: Completed {ET: 00:03:09}
    
    --- SQL operation complete.

----


> Enhance 'initialize trafodion' command to return progress status
> ----------------------------------------------------------------
>
>                 Key: TRAFODION-3121
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-3121
>             Project: Apache Trafodion
>          Issue Type: Improvement
>            Reporter: Anoop Sharma
>            Assignee: Anoop Sharma
>            Priority: Minor
>
> initialize trafodion command sets up the system environment for traf sql operations. It contains multiple steps, like creation of metadata, creation of views, privileges, etc that are done as part of that command. 
> Currently there is no indication returned on how far the init traf command has progressed or which steps are finished or how long it took for those steps.
> This Jira is an enhancement request to return progress indication during init traf command.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)