[
https://issues.apache.org/jira/browse/IGNITE-10475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16704425#comment-16704425
]
Ivan Bessonov edited comment on IGNITE-10475 at 11/30/18 8:56 AM:
------------------------------------------------------------------
[~Pavlukhin] I actually tried to annotate send/receive of messages but it
wouldn't work. IDEA debugger agent expects reference equality of
messages/closures, and it's not possible with serialization/deserialization. If
we want to implement some stacktrace saving mechanism we have to do it
ourselves.
As far as I understand, we have unique id for each message, so technically we
could implement some test-only service that would store stack (or the original
message) on sending and retrieve it later. This requires some thoughts, but I
don't like the idea of messing with code for the sake of tests.
was (Author: ibessonov):
[~Pavlukhin] I actually tried to annotate send/receive of messages but it
wouldn't work. IDEA debugger agent expects reference equality of
messages/closures, and it's not possible with serialization/deserialization. If
we want to implement some stacktrace saving mechanism we have to do it
ourselves.
As far as I understand, we have unique id for each message, so technically we
could implement some test-only service that would store stack on sending and
retrieve it later. This requires some thoughts, but I don't like the idea of
messing with code for the sake of test.
> Introduce IDEA async debugger annotations.
> ------------------------------------------
>
> Key: IGNITE-10475
> URL: https://issues.apache.org/jira/browse/IGNITE-10475
> Project: Ignite
> Issue Type: Improvement
> Reporter: Ivan Bessonov
> Assignee: Ivan Bessonov
> Priority: Major
> Fix For: 2.8
>
>
> "JetBrains Java Annotation" library introduced "@Async" annotation in version
> 16:
> https://www.jetbrains.com/help/idea/async-stacktraces.html
> Since we use this version now we may as well integrate "@Async" into
> "IgniteFuture" and maybe other suitable classes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)