You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Michael Chai (JIRA)" <ji...@apache.org> on 2016/07/01 06:20:10 UTC

[jira] [Commented] (TS-4626) LogFile::close_file should not delete m_log handle

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

Michael Chai commented on TS-4626:
----------------------------------

     } else if (m_log) {
        m_log->close_file();
        Debug("log-file", "LogFile %s is closed", m_log->get_name());
 -      delete m_log;
 -      m_log = NULL;
      } else {
        Warning("LogFile %s is open but was not closed", m_name);
      }

> LogFile::close_file should not delete m_log handle
> --------------------------------------------------
>
>                 Key: TS-4626
>                 URL: https://issues.apache.org/jira/browse/TS-4626
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Michael Chai
>
> When log file was deleted on the disk, LogFile::check_fd will close file handle and reopen again.delete m_log at this point will cause LogFile::open_file return "LOG_FILE_COULD_NOT_OPEN_FILE" .  otherwise, will cause trafficserver crash at LogFile::preproc_and_try_delete



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