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

suppress Tcp.CloseCommand from deadLetters logging #17572

Closed
fommil opened this issue May 26, 2015 · 10 comments
Closed

suppress Tcp.CloseCommand from deadLetters logging #17572

fommil opened this issue May 26, 2015 · 10 comments
Assignees
Labels
Milestone

Comments

@fommil
Copy link
Contributor

fommil commented May 26, 2015

As requested from the mailing list. I trust you agree that Close-style messages are more likely than most to arrive in deadLetters and are hence more likely to be spam than something the user wants to hear about.

Please note that it is quite difficult for me to make changes to the akka repo due to #17570

This is an issue equivalent of #17571 as I am not signing the Typesafe CLA in light of the direction taken by Slick Extensions.

diff --git a/akka-actor/src/main/scala/akka/io/Tcp.scala b/akka-actor/src/main/scala/akka/io/Tcp.scala
index d9cc16a..1f9e621 100644
--- a/akka-actor/src/main/scala/akka/io/Tcp.scala
+++ b/akka-actor/src/main/scala/akka/io/Tcp.scala
@@ -172,8 +172,12 @@ object Tcp extends ExtensionId[TcpExt] with ExtensionIdProvider {

   /**
    * Common interface for all commands which aim to close down an open connection.
+   *
+   * These messages are suppressed from dead letters as they are
+   * highly likely to be received on actor paths that have recently
+   * been terminated.
    */
-  sealed trait CloseCommand extends Command {
+  sealed trait CloseCommand extends Command with DeadLetterSuppression {
     /**
      * The corresponding event which is sent as an acknowledgment once the
      * close operation is finished.
@patriknw patriknw added 1 - triaged Tickets that are safe to pick up for contributing in terms of likeliness of being accepted t:io labels May 26, 2015
@patriknw patriknw added this to the 2.4-M2 milestone May 26, 2015
@cowboygneox
Copy link

+1

@patriknw patriknw modified the milestones: 2.4-M2, 2.4-M3 Jun 26, 2015
@carlosvilchez
Copy link

+1

2 similar comments
@stsatlantis
Copy link
Contributor

+1

@jozic
Copy link

jozic commented Jun 30, 2015

+1

@ktoso
Copy link
Member

ktoso commented Jun 30, 2015

With so many +1 I'd have thought one would submit this one-liner patch 😄 No takers? :-)

@ktoso ktoso added the 2 - pick next Used to mark issues which are next up in the queue to be worked on. The tag is non-binding label Jun 30, 2015
@fommil
Copy link
Contributor Author

fommil commented Jun 30, 2015

I'd actually recommend this for the next 2.3.x release. It's a real pain.

@douglaz
Copy link

douglaz commented Jun 30, 2015

+1

@patriknw patriknw self-assigned this Jul 1, 2015
@patriknw patriknw added 3 - in progress Someone is working on this ticket and removed 1 - triaged Tickets that are safe to pick up for contributing in terms of likeliness of being accepted labels Jul 1, 2015
@patriknw
Copy link
Member

patriknw commented Jul 1, 2015

I share @ktoso thoughts. Strange, but I will do it now.

@fommil
Copy link
Contributor Author

fommil commented Jul 1, 2015

thanks for including in 2.3.12!

patriknw added a commit that referenced this issue Jul 2, 2015
=act #17572 Supress deadLetters logging for Tcp.CloseCommand
patriknw added a commit that referenced this issue Jul 2, 2015
…triknw

=act #17572 Supress deadLetters logging for Tcp.CloseCommand (for validation)
@patriknw patriknw removed the 3 - in progress Someone is working on this ticket label Jul 2, 2015
@patriknw patriknw closed this as completed Jul 2, 2015
@ktoso ktoso removed the 2 - pick next Used to mark issues which are next up in the queue to be worked on. The tag is non-binding label Jul 9, 2015
@fommil
Copy link
Contributor Author

fommil commented Jul 9, 2015

😄

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

No branches or pull requests

8 participants