Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lost logs when append data quickly after truncate #145

Open
HeChuanXUPT opened this issue Jul 20, 2018 · 0 comments
Open

lost logs when append data quickly after truncate #145

HeChuanXUPT opened this issue Jul 20, 2018 · 0 comments

Comments

@HeChuanXUPT
Copy link

config

tail.Config{
	Follow:    true,
	Poll:      true,
	ReOpen:    false,
	MustExist: true,
	Location: &tail.SeekInfo{0, os.SEEK_END}})

case 1, OK

$ echo "test log 1" >> test.log
$ >test.log
$ echo "test log 2" >> test.log

can get 2 lines

case 2, MISS

$ echo "test log 1" >> test.log
$ >test.log && echo "test log 2" >> test.log

will miss the second log

env

system:windows 7 64bit
branch: master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant