Netflix / astyanax

Cassandra Java Client
Apache License 2.0
1.04k stars 355 forks source link

ConnectionPoolMBeanManager logs an error if connection pool has been unregistered twice #559

Open marccarre opened 9 years ago

marccarre commented 9 years ago

Given a scenario where ConnectionPool<?> is closed twice for some reason, an error is logged by ConnectionPoolMBeanManager with simply the MBean name as the message (see also #558).

Indeed since the MBean has already been unregistered, the second time the code is run, an InstanceNotFoundException is thrown. This, however, should probably be logged at an INFO or WARN level to avoid any confusion.