-
Notifications
You must be signed in to change notification settings - Fork 79
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
Logger implementation not serializable #477
Labels
bug
Something isn't working
Comments
Thanks for the report! Do I understand correctly that this can be fixed by making all loggers Since you can test the implementation it might be easier if you could create a PR that works for you and we can merge it and release a new version. What do you think? |
It is right, this can be fixed by making all loggers |
joaquin021
pushed a commit
to joaquin021/cobrix
that referenced
this issue
Mar 3, 2022
joaquin021
added a commit
to joaquin021/cobrix
that referenced
this issue
Mar 3, 2022
…ger implementations
joaquin021
added a commit
to joaquin021/cobrix
that referenced
this issue
Mar 3, 2022
yruslan
added a commit
that referenced
this issue
Mar 3, 2022
…ializable #477 Fixed NotSerializableException when using non-default logger implementations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to use the Cobrix library with a Tinylog logger because we use this logger implementation in our architecture.
We are getting the exception found at the end of this issue.
We have been investigating and we have found that the logger is not annotated as transient in the Cobrix library.
However, in the spark implementation and other connectors, this logger is declared as transient or static:
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/internal/Logging.scala#L42
https://github.com/mongodb/mongo-spark/blob/master/src/main/scala/com/mongodb/spark/LoggingTrait.scala#L30
https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/MultipartUtils.java#L51
Can we change the logger declarations and annotate them as transient? Is there any drawback of annotate logger as transient?
We have tested it with this modification and it works as we need.
If the issue is accepted, we can make a pull request to change it.
The text was updated successfully, but these errors were encountered: