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

bug report: the file append experiment is unreasonable #824

Open
bernersyang opened this issue Jan 16, 2023 · 0 comments
Open

bug report: the file append experiment is unreasonable #824

bernersyang opened this issue Jan 16, 2023 · 0 comments

Comments

@bernersyang
Copy link

Issue Description

bug report: the file append experiment is unreasonable.

Describe what happened (or what feature you want)

I wanted to append “HELLO WORLD” to a text file once,but the content was appended every 1 second.
h

[root@k8s-master chaosblade-1.7.0]# ./blade create file append --filepath=/root/test.log --content="HELL WORLD"
{"code":200,"success":true,"result":"2a4445e4f9abab62"}
[root@k8s-master chaosblade-1.7.0]# tail -10f /root/test.log 
HELL WORLD
HELL WORLD
HELL WORLD
HELL WORLD
HELL WORLD
HELL WORLD

Describe what you expected to happen

I wanted to append “HELLO WORLD” to a text file once.

[root@k8s-master chaosblade-1.7.0]# cat  /root/test.log 
HELL WORLD

How to reproduce it (as minimally and precisely as possible)

  1. touch /root/test.log
  2. ./blade create file append --filepath=/root/test.log --content="HELL WORLD"
  3. tail -10f /root/test.log

Tell us your environment

Chaosblade version 1.7.0
Linux version 3.10.0-1160.80.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Tue Nov 8 15:48:59 UTC 2022

Anything else we need to know?

Nothing.

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