| Summary: | [concurrency] RequestMonitor should preserve the error message intact when propagating errors. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Pawel Piech <pawel.1.piech> | ||||||||
| Component: | cdt-debug-dsf | Assignee: | Marc Khouzam <marc.khouzam> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | cdtdoug, marc.khouzam | ||||||||
| Version: | 0 DD 1.0 | ||||||||||
| Target Milestone: | DD 1.0 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Pawel Piech
Also setMultiStatus() can be removed it clutters the API. Unless Pawel has already taken this, I will take it. Created attachment 82443 [details]
Removal of setMultiStatus
This patch fixes this bug.
I was wondering if we should still use the MultiStatus for the log, in the case there is not parentRequestMonitor? I believe that the extra information provided may be more justified for a log... But I'm not convinced :-)
Created attachment 82449 [details]
Updated patch for the bug
I had missed that the previous file broke the compilation :-O
This is a fix. However, the code that needed to be changed, in VMCache.java, was different than the pattern I am used to seeing. After trying to figure it out, I couldn't see why it didn't use the standard parttern, so I changed it accordingly. However, I am wondering if the changes I made broke a specific behaviour in VMCache, which justified this different pattern?
We talked about the different pattern in VMCache recently, and Ted doesn't remember why he did it that way. So go ahead and change it to the standard pattern. One change to the patch I would request is that in handleRejectedExecutionException(), the request should create a its own error status and set it to the parent, rather than propagating the old status. Rejected execution exception is an error in its own right that should be handled. Thanks Pawel Created attachment 82484 [details]
Updaetd change to RequestMonitor
I committed VMCache.java as per patch 82449.
I updated RequestMonitor as per Pawel's comment as can be seen in this new patch.
I have also committed this patch.
Code was checked in Closing out 1.0 bugs. |