David Wayne Birdsall created TRAFODION-2967:
-----------------------------------------------

             Summary: UPDATE STATISTICS sometimes cores in 
CommonLogger::buildMsgBuffer
                 Key: TRAFODION-2967
                 URL: https://issues.apache.org/jira/browse/TRAFODION-2967
             Project: Apache Trafodion
          Issue Type: Bug
          Components: sql-cmp
    Affects Versions: 2.3
            Reporter: David Wayne Birdsall
            Assignee: David Wayne Birdsall


Jira TRAFODION-2927 refactored the UPDATE STATISTICS logging logic to use the 
CommonLogger class. Unfortunately, this introduced a problem that sometimes 
causes cores in CommonLogger::buildMsgBuffer. The UPDATE STATISTICS code passes 
raw data via a "template" parameter to the logging layers. The logging layers 
interpret this template like a printf template. So, if the data happens to have 
a substring such as %d or %n in it, the logger code expects an additional 
argument to supply a substitution value for it. But none is supplied so we 
abend.

A workaround is to turn automatic logging off, e.g. by setting CQD 
USTAT_AUTOMATIC_LOGGING 'OFF' in the "_MD_".DEFAULTS table.



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

Reply via email to