You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I’ve encountered an intermittent issue with log collection loss during log rotation when using the [hpcloud/tail v1.0.0] library, tail is not stop or kill.
I’ve reviewed previous issues, namely issue 94[https://github.com/hpcloud/tail/issues/94] and issue 97[https://github.com/hpcloud/tail/issues/97], and after analyzing the source code of tail, I’m unable to consistently reproduce the problem. I don’t understand how the ‘deleted’ signal could be getting lost.
The configuration for tail is as follows, using the polling mechanism:
tailFile, err := tail.TailFile(logPath, tail.Config{
ReOpen: true,
Follow: true,
Location: &tail.SeekInfo{Offset: 0, Whence: 2},
MustExist: false,
Poll: true,
})
Expected behaviour
I’m wondering if the nxadm/tail has addressed this issue, and I would appreciate it if the experts could help explain the above-mentioned problem.
The text was updated successfully, but these errors were encountered:
Describe the bug
I’ve encountered an intermittent issue with log collection loss during log rotation when using the [hpcloud/tail v1.0.0] library, tail is not stop or kill.
I’ve reviewed previous issues, namely issue 94[https://github.com/hpcloud/tail/issues/94] and issue 97[https://github.com/hpcloud/tail/issues/97], and after analyzing the source code of tail, I’m unable to consistently reproduce the problem. I don’t understand how the ‘deleted’ signal could be getting lost.
The configuration for tail is as follows, using the polling mechanism:
tailFile, err := tail.TailFile(logPath, tail.Config{
ReOpen: true,
Follow: true,
Location: &tail.SeekInfo{Offset: 0, Whence: 2},
MustExist: false,
Poll: true,
})
Expected behaviour
I’m wondering if the nxadm/tail has addressed this issue, and I would appreciate it if the experts could help explain the above-mentioned problem.
The text was updated successfully, but these errors were encountered: