=rem #23023 log reasons for disassociations with debug level #23116

Merged
merged 1 commit into from Jun 16, 2017

Conversation

Projects
None yet
3 participants
Member

jrudolph commented Jun 7, 2017 edited

I deprecated the old disassociate method for now but that might not be reasonable given that remoting classes are public API / SPI.

Refs #23023

Collaborator

akka-ci commented Jun 7, 2017

Test FAILed.

@patriknw

looking good

// Expected handshake to be finished, dropping connection
+ if (log.isDebugEnabled)
+ log.debug("Sending disassociate to {} because unexpected message was received during handshake {}", wrappedHandle, msg)
@patriknw

patriknw Jun 7, 2017

Owner

I think we should avoid full toString of messages, also on debug level, to not risk bad performance (or even OOME). Use the class name.

@@ -261,7 +263,16 @@ trait AssociationHandle {
* could be called arbitrarily many times.
*
*/
+ @deprecated
@patriknw

patriknw Jun 7, 2017

Owner

It's fine to deprecate it, but include version and comment as in other places

Member

jrudolph commented Jun 14, 2017

Adressed review feedback.

Collaborator

akka-ci commented Jun 14, 2017

Test FAILed.

@patriknw

LGTM

Collaborator

akka-ci commented Jun 14, 2017

Test FAILed.

@jrudolph jrudolph =rem #23023 log reasons for disassociations with debug level
cf99cf1
Member

jrudolph commented Jun 14, 2017

I added a mima filter. Notably, custom transport implementations compiled against old versions of akka-remote will fail to run with the new version. I don't think that's a likely scenario. Do we know about such a custom implementation for which that could be a problem?

Collaborator

akka-ci commented Jun 14, 2017

Test PASSed.

Owner

patriknw commented Jun 16, 2017

custom transports are not encouraged, so I have no problem with breaking that :)

@patriknw

LGTM, I'll backport

@patriknw patriknw merged commit c9dd7f0 into akka:master Jun 16, 2017

2 checks passed

Jenkins PR Validation Test PASSed. 3524 tests run, 28 skipped, 0 failed.
Details
typesafe-cla-validator All users have signed the CLA
Details

patriknw added this to the 2.5.3 milestone Jun 16, 2017

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