Closed Nikratio closed 2 years ago
I don't think s3backer is generating those messages.
The strings "write reply" and "NBD_CMD_WRITE" don't appear anywhere in s3backer.
Also s3backer doesn't (itself) originate any EPIPE
errors.
That doesn't mean it's not an s3backer bug of course.
You're right of course about the origin of the messages. I mixed this up with the other bug (assertion failure).
What is happening here (I think) is that s3backers pwrite handler sometimes return EPIPE errors, which causes nbdkit to write these messages.
On the other hand, it seems that should not happen either?
I'll try to instrument the code to check (if I find some free time)
Seems the instrumentation is already present in the newest branch. I'll report back when this happens with the most recent code.
Looking at https://gitlab.com/nbdkit/nbdkit/-/blob/master/server/protocol.c#L382, it looks as if this could be errors when sending something to the NBD client. I've asked on the nbdkit mailing list for advice.
That error makes sense in the scenario where the client has disconnected abruptly for some reason. Maybe something in your testing was causing that to occur sometimes?
Having looked into it, it seems this problem is with the kernel's NBD client. Followed up on https://lists.debian.org/nbd/2022/05/msg00003.html.
Great - thanks.
Hi,
I've been experimenting with NBD mode, and I'm at times getting errors like these:
I think they're not related to the NBD code itself, but issues in the code that are triggered by the way that NBD requests are coming in.
What do you think?