Skip to content

IGNITE-1606 NPE during node stop due to nullified logger in TcpCommunicationSpi#7004

Open
x-kreator wants to merge 2 commits intoapache:masterfrom
x-kreator:ignite-1606
Open

IGNITE-1606 NPE during node stop due to nullified logger in TcpCommunicationSpi#7004
x-kreator wants to merge 2 commits intoapache:masterfrom
x-kreator:ignite-1606

Conversation

@x-kreator
Copy link
Contributor

No description provided.

/**
* Same as {@link #GENERIC} excluding {@link ResourceAnnotation#LOGGER}.
*/
GENERIC_CLEANABLE(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just exclude LOGGER from GENERIC set instead of the creation of a new set?
New set is error-prone.
Some contributor can forget to add new ReourceAnnotation to it.
This will lead to hard to find issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it right that you suggest to add a new AnnotationSet.LOGGER with ResourceAnnotation.LOGGER only and use it at the points where AnnotationSet.GENERIC is injecting but don't use one at cleanup?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just use existing LOGGER annotation but don't clean up it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for review, code was updated according your recommendation.

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.

2 participants