Skip to content

Conversation

@isaias
Copy link
Contributor

@isaias isaias commented Aug 20, 2014

The previous solution has changed based on #2048 discussions.

@isaias
Copy link
Contributor Author

isaias commented Aug 20, 2014

After send the PR I realized that I could have written some tests based on underlyingActor and isDefinedAt, if is valuable I can do it.

BR

@isaias
Copy link
Contributor Author

isaias commented Aug 25, 2014

Hi @ScrapCodes,

I am starting to contribute with Spark and knowing the source code/structure now, but I think that the use of Actor are limited to internal developers, so the Unhandled messages are not often sent to an Actor System, maybe if the actors were exposed to public call, unhandled messages could be more frequents.
But we can change the level to Trace too. I think this log is useful for developers and shouldn't to impact the end users. But it is just a first impression, another opnion will be very useful.

BR

@SparkQA
Copy link

SparkQA commented Sep 5, 2014

Can one of the admins verify this patch?

@pwendell
Copy link
Contributor

pwendell commented Sep 8, 2014

@ScrapCodes do you have a verdict one way or the other on this?

@ScrapCodes
Copy link
Member

@pwendell This patch will lead to logging of messages like

14/09/08 10:23:39.639 WARN AppClient$ClientActor: Received unexpected actor system event: Associated [akka.tcp://spark@localhost:35007] <- [akka.tcp://driverPropsFetcher@localhost:54437]
14/09/08 10:23:39.639 WARN SparkDeploySchedulerBackend: Received unexpected actor system event: Associated [akka.tcp://spark@localhost:35007] <- [akka.tcp://driverPropsFetcher@localhost:54437]
14/09/08 10:23:39.788 WARN SparkDeploySchedulerBackend: Received unexpected actor system event: AssociationError [akka.tcp://spark@localhost:35007] <- [akka.tcp://driverPropsFetcher@localhost:54437]: Error [Shut down address: akka.tcp://driverPropsFetcher@localhost:54437] 

These are akka system messages. And I guess logging them at "WARN" would be a little noisy(They are not many of them as I initially thought.). So I am okay with it if logging level is changed to at least "DEBUG" or even better TRACE. I will leave rest to your judgement.

@andrewor14
Copy link
Contributor

ok to test...

@andrewor14
Copy link
Contributor

@isaias I think logging these messages are fine, but as @ScrapCodes indicated it will be fairly noisy for random dis/association events. I agree that having something logged is better than silently dropping unknown messages, but maybe we need to filter some of these out before we do that.

@SparkQA
Copy link

SparkQA commented Feb 20, 2015

Test build #27751 has finished for PR 2055 at commit f341777.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, perhaps at least turn this down to info?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@andrewor14 @srowen I think that down to info or debug is ok. What do you think? Can I change it? Wait for now?

@srowen
Copy link
Member

srowen commented Apr 15, 2015

@isaias can you make the change here? let's use debug logging.

@isaias
Copy link
Contributor Author

isaias commented Apr 15, 2015

@srowen done

@srowen
Copy link
Member

srowen commented Apr 15, 2015

Cool, unless anyone pops up to object, I'll merge tomorrow.

@SparkQA
Copy link

SparkQA commented Apr 15, 2015

Test build #30341 has finished for PR 2055 at commit f61d9e6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@andrewor14
Copy link
Contributor

My only concern with logging at debug is that this will mask unexpected events in most cases. However, given that this is strictly more informative than before and we haven't had to rely on these warnings to debug the system, I think this is fine to merge as is. LGTM.

@srowen
Copy link
Member

srowen commented Apr 15, 2015

Yeah, end users could turn on debug logging for this logger if needed. I could be turned up later to info by default if desired.

@asfgit asfgit closed this in d5f1b96 Apr 15, 2015
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.

6 participants