[
https://issues.apache.org/jira/browse/IGNITE-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16287443#comment-16287443
]
Ryabov Dmitrii commented on IGNITE-602:
---------------------------------------
[~agura], missing {{@GridToStringExclude}} annotation. Test fails by calling
{{toStringImpl(DirectByteBuffer)}}, which calls {{toStringImpl(Cleaner)}},
every {{Cleaner}} have 2 more {{Cleaner}} fields. And there are too many of
them and this amount leads to SOE and overflowed loggers. Anyway, current PR
doesn't contain changes on core classes - only {{GridToStringBuilder}} and 2
tests.
> [Test] GridToStringBuilder is vulnerable for StackOverflowError caused by
> infinite recursion
> --------------------------------------------------------------------------------------------
>
> Key: IGNITE-602
> URL: https://issues.apache.org/jira/browse/IGNITE-602
> Project: Ignite
> Issue Type: Bug
> Components: general
> Reporter: Artem Shutak
> Assignee: Ryabov Dmitrii
> Labels: MakeTeamcityGreenAgain, Muted_test
> Fix For: 2.4
>
>
> See test
> org.gridgain.grid.util.tostring.GridToStringBuilderSelfTest#_testToStringCheckAdvancedRecursionPrevention
> and related TODO in same source file.
> Also take a look at
> http://stackoverflow.com/questions/11300203/most-efficient-way-to-prevent-an-infinite-recursion-in-tostring
> Test should be unmuted on TC after fix.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)