Skip to content

ProxyPartitionKey does not implement hashCode or equals and is used in a hash map. #1079

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

Closed
aiman-alsari opened this issue Jan 11, 2016 · 1 comment
Assignees
Milestone

Comments

@aiman-alsari
Copy link

We are using 1.9.31 and seeing many many debug statements every minute, e.g.

DEBUG default    c.n.h.c.p.n.c.p.DefaultChannelPool - Closed 0 connections out of 0 in 0ms
2016-01-11_18:02:53.12600 2016-01-11 18:02:53.125 DEBUG default    c.n.h.c.p.n.c.p.DefaultChannelPool - Entry count for : ProxyPartitionKey(proxyUrl=https://proxy:3128, targetHostBaseUrl=https://test:443 : 0
2016-01-11_18:02:53.12608 2016-01-11 18:02:53.125 DEBUG default    c.n.h.c.p.n.c.p.DefaultChannelPool - Entry count for : ProxyPartitionKey(proxyUrl=https://proxy:3128, targetHostBaseUrl=https://test:443 : 0
2016-01-11_18:02:53.12610 2016-01-11 18:02:53.126 DEBUG default    c.n.h.c.p.n.c.p.DefaultChannelPool - Entry count for : ProxyPartitionKey(proxyUrl=https://proxy:3128, targetHostBaseUrl=https://test:443 : 0

This grows every time there is a successful connection. I believe this is because the key being used does not implement either hashCode() or equals()

@slandelle
Copy link
Contributor

Fix, thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants