-
Notifications
You must be signed in to change notification settings - Fork 72
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
Change fifo Io to PIPE in shim , just do like go shim. Resovled the raw fd case problem. #276
Comments
I found another two problem, when use fifo directly.
This is a method to get this error.
test.sh is blow this:
docker build get this image. friendly ping , @fuweid @mxpv @Burning1020 . Looking forward to your reply. |
tokio 1.40 pipe can resolve pipe problem perfect. friendly ping , @fuweid @mxpv @Burning1020 |
Hi @jokemanfire , would you please file pull request to fix this? thanks |
Hi @jokemanfire can you give more detail about why "tokio 1.40 pipe can resolve pipe problem perfect" ? I have also encountered similar problem as you found: "when containerd service is stop , all rshim io will broken, but not go shim.", and I found another problem: the stdout stream of container process which comes from rust-shim is not flush at real time, flush one page in one time then delay a long time, not line-by-line, I don't know if this related to that use FIFO as process stdout directly I am following up on this issue, please give some updates, Thanks ! |
This problem ,I didn't meet. Is there some method to get this problem? Use FIFO directly , will cause some problems , and the problem can learn from https://fuweid.com/post/2022-embedshim-kernel-is-my-sidecar/ . Thanks @fuweid . There 's some describe like |
I didn't do any special thing before i encounter this problem, I have a program with high frequency log out, and when I follow logs via Simple diagram: Go shim: |fifo reader| <-- fifo --> |io copier| <-- pipe --> |container process| The fifo and fifo reader are from containerd-cri and have no difference, i guess problem comes from second half |
I think maybe I've found the cause. I'll try to file a PR about it later. |
Related
I have told this question to containerd . But looks like containerd will not change. So I will take a pr to change fifo to pipe.
I have complete this code , after some ci test ,I will submit this pr.
The text was updated successfully, but these errors were encountered: