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

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

Github user selvaganesang commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/488#discussion_r63747971
  
    --- Diff: core/sql/cli/Context.cpp ---
    @@ -4943,6 +4939,27 @@ Lng32 parse_statsReq(short statsReqType,char 
*statsReqStr, Lng32 statsReqStrLen,
         return -1;
       }
       return 0;
    +
    +}
    +
    +void ContextCli::killIdleMxcmp() 
    +{
    +  Int64 currentTimestamp = -1;
    +  Int32 compilerIdleTimeout;
    +  Int64 recentIpcTimestamp ;
    + 
    +  if (arkcmpArray_.entries() == 0)
    +     return;
    +  if (arkcmpArray_[0]->getServer() == NULL)
    +     return;
    +  compilerIdleTimeout = getSessionDefaults()->getCompilerIdleTimeout();
    +  if (compilerIdleTimeout == 0)
    +     return;
    +  if (currentTimestamp == -1)
    +     currentTimestamp = NA_JulianTimestamp();
    --- End diff --
    
    Will do


> timeout in tdm_arkcmp process
> -----------------------------
>
>                 Key: TRAFODION-1956
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1956
>             Project: Apache Trafodion
>          Issue Type: Improvement
>          Components: sql-cmp
>    Affects Versions: any
>            Reporter: Henry Lin
>            Assignee: Selvaganesan Govindarajan
>              Labels: patch
>
> The tdm_arkcmp is spawned for extra sql compilation as needed, but the 
> tdm_arkcmp process will never stop and become an orphan process. It would be 
> better to introduce a mechanism to let tdm_arkcmp stop, e.g. timeout for an 
> idle tdm_arkcmp.   



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

Reply via email to