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

session pool error 'write: broken pipe' #235

Closed
zwkno1 opened this issue Nov 17, 2022 · 7 comments
Closed

session pool error 'write: broken pipe' #235

zwkno1 opened this issue Nov 17, 2022 · 7 comments
Assignees
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/trivial Severity of bug type/bug Type: something is unexpected

Comments

@zwkno1
Copy link

zwkno1 commented Nov 17, 2022

There is a lot of errors of 'write: broken pipe' when the first time invoke SessionPool.Execute after a long idle time.

nebula-go version: v3.3.0

@Aiee
Copy link
Contributor

Aiee commented Nov 18, 2022

Is the nebula service still alive?

@zwkno1
Copy link
Author

zwkno1 commented Nov 18, 2022

Is the nebula service still alive?

yes. After a lot of errors i can invoke this method normally。

@Sophie-Xie Sophie-Xie added the type/bug Type: something is unexpected label Nov 30, 2022
@HarrisChu HarrisChu added affects/none PR/issue: this bug affects none version. severity/none Severity of bug severity/trivial Severity of bug labels Dec 1, 2022
@github-actions github-actions bot removed the severity/none Severity of bug label Dec 7, 2022
@ColorfulDick
Copy link

i got the same problem

1 similar comment
@lllfx
Copy link

lllfx commented Feb 13, 2023

i got the same problem

@violin0622
Copy link

I've met same error. I found that when there'a long idle time(8 hours by default in config file), TCP connection may be recycled.

Then client try to write a request to that connection after that, causing the EPIPE error.

@Dong148
Copy link

Dong148 commented Apr 23, 2023

is this why cleaner doesn't work?

if pool.conf.idleTime > 0 && pool.cleanerChan == nil {

means If configured idleTime, cleaner will clean dead conn automaticly, but
maxCleanSize := pool.idleSessions.Len() + pool.activeSessions.Len() - pool.conf.minSize

means If all sessions eventually expire, they may not be cleaned up because the number of sessions in pool did not exceed minSize

@HarrisChu
Copy link
Contributor

after this #279, the issue should be not existed.

when execute with error write: broken pipe, it would create a new session, and return the valid session into pool.

@github-actions github-actions bot added the process/fixed Process of bug label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/trivial Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

8 participants