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] Remove invalid connection from the idle queue when request new connection #214

Merged
merged 2 commits into from
Jul 28, 2022

Conversation

lopn
Copy link
Contributor

@lopn lopn commented Jul 22, 2022

[bug] 移除无效连接 ,防止由于无效连接导致 连接总数超出MaxConnPoolSize,导致创建session失败

Fail to create a new session from connection pool, username: xxx, password: xxxx, failed to get connection: No valid connection in the idle queue and connection number has reached the pool capacity

[bug] 移除无效连接 ,防止由于无效连接导致 连接总数超出MaxConnPoolSize,导致创建session失败

Fail to create a new session from connection pool, username: root, password: nebula, failed to get connection: No valid connection in the idle queue and connection number has reached the pool capacity
@lopn
Copy link
Contributor Author

lopn commented Jul 22, 2022

Copy link
Contributor

@Aiee Aiee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. Please fix the format using go fmt.

Comment on lines 154 to 155
}else{
tmpNextEle = ele.Next()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. Please fix the format using go fmt.

Copy link
Contributor

@Aiee Aiee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Aiee Aiee changed the title [bug] 无效连接总数超出MaxConnPoolSize,创建session失败 [bug] Remove invalid connection from the idle queue when request new connection Jul 28, 2022
@Aiee Aiee merged commit e8bbdaa into vesoft-inc:master Jul 28, 2022
@lopn lopn deleted the patch-1 branch October 17, 2022 16:23
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

Successfully merging this pull request may close these issues.

2 participants