Menu

#3106 dtm: flush the logtrace asap when the logtrace owner is terminated

5.23.03
fixed
None
enhancement
dtm
-
major
False
2023-02-21
2019-10-24
No

This ticket will add a machanism in logtrace server, so that it can detect the logtrace owner terminated and does the flush right away to avoid losing traces from trace files.

Related

Wiki: ChangeLog-5.23.03
Wiki: NEWS-5.23.03

Discussion

  • Vu Minh Nguyen

    Vu Minh Nguyen - 2019-10-24
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,6 +2,6 @@
     1) The size of trace buffer is big enough
     2) It is over 15second from last flush
    
    -So, there is a possibility of losing traces from trace files when the logtrace owner process is terminated, and short time later the node is rebooted; and the reboot happens before the logtrace server does the flush.
    +So, there is a possibility of losing traces from trace files when the logtrace owner process is terminated, and short time later the node is rebooted before the logtrace server does the flush.
    
     This ticket adds a machanism in logtrace server, so that it can detect the logtrace owner terminated and do the flush right away to avoid losing traces.
    
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2019-10-24
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1 @@
    -Logtrace server flushes traces from its own buffers into trace files in two cases:
    -1) The size of trace buffer is big enough
    -2) It is over 15second from last flush
    -
    -So, there is a possibility of losing traces from trace files when the logtrace owner process is terminated, and short time later the node is rebooted before the logtrace server does the flush.
    -
    -This ticket adds a machanism in logtrace server, so that it can detect the logtrace owner terminated and do the flush right away to avoid losing traces.
    +This ticket will add a machanism in logtrace server, so that it can detect the logtrace owner terminated and does the flush right away to avoid losing traces from trace files.
    
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2019-10-25
    • status: assigned --> review
     
  • Gary Lee

    Gary Lee - 2020-02-15
    • Milestone: 5.20.02 --> 5.20.05
     
  • Gary Lee

    Gary Lee - 2020-05-30
    • Milestone: 5.20.05 --> 5.20.08
     
  • Gary Lee

    Gary Lee - 2020-08-31
    • Milestone: 5.20.08 --> 5.20.11
     
  • Gary Lee

    Gary Lee - 2020-12-01
    • Milestone: 5.20.11 --> 5.21.03
     
  • Gary Lee

    Gary Lee - 2021-03-01
    • Milestone: 5.21.03 --> 5.21.06
     
  • Gary Lee

    Gary Lee - 2021-06-01
    • Milestone: 5.21.06 --> 5.21.10
     
  • Gary Lee

    Gary Lee - 2021-09-14
    • Milestone: 5.21.09 --> future
     
  • Thien Minh Huynh

    • assigned_to: Vu Minh Nguyen --> Thien Minh Huynh
     
  • Thien Minh Huynh

    • status: review --> fixed
    • Milestone: future --> 5.23.03
     
  • Thien Minh Huynh

    commit 9c34b746228c65f96bb894082c910ac59cc951ef (HEAD -> develop, origin/develop, ticket-3106)
    Author: thien.m.huynh thien.m.huynh@dektech.com.au
    Date: Fri Oct 25 15:18:06 2019 +0700

    dtm: flush logtrace asap when logtrace owner is terminated [#3106]
    
    To avoid the risk of losing traces, logtrace server should flush traces
    as soon as possible when logtrace owner is terminated.
    
    This patch also refactors LogServer::Run().
    
     

Log in to post a comment.