You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Munagala V. Ramanath (JIRA)" <ji...@apache.org> on 2017/03/13 22:04:41 UTC

[jira] [Created] (APEXCORE-665) Original exception is hidden when there are too many requests

Munagala V. Ramanath created APEXCORE-665:
---------------------------------------------

             Summary: Original exception is hidden when there are too many requests
                 Key: APEXCORE-665
                 URL: https://issues.apache.org/jira/browse/APEXCORE-665
             Project: Apache Apex Core
          Issue Type: Bug
            Reporter: Munagala V. Ramanath
            Priority: Minor


The data structure to hold requests is a CircularBuffer of hardcoded size 1024 in OperatorContext. This causes an exception when the number of requests exceeds this number but it gets hidden by a second exception.
The call sequence in StreamingContainer is something like this:
main
--> heartbeatLoop
--> processHeartbeatResponse
--> processNodeRequests
--> OperatorContext.request
--> adds request to requests which is a fixed size CircularBuffer of size 1024
Generates Exception
finally clause in main catches it and throws another exception !
--> teardown
--> deactivate
--> shutdown
--> OperatorContext.request
--> Results in a new exception because it tries to add another request to an already full CircularBuffer !
catch clause in main sends exception stacktrace of second exception back to app master



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)