| Summary: | Intermittent race-condition failure in MIMemoryTest.asynchronousReadWrite() | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | John Cortell <john.cortell> | ||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Project Inbox <cdt-debug-dsf-gdb-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | pawel.1.piech | ||||
| Version: | 7.0 | Flags: | john.cortell:
review?
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
John Cortell
Created attachment 171182 [details]
Fix
Fix
Marc, please review. Wow, nice find. I think this is a lacking in the AsyncCompletionWaitor. The CountingRequestMonitor had a similar issue. Pawel fixed it by basically not allowing the CRM to complete until it was told how many results it was expecting in total. Maybe we should do the same here and instead of having increment() called for every attempt, one single setCount() should be called once we know how many attempts. But for the short-term, I'm fine with this fix. Did you really want to mark this as fixed already? (In reply to comment #3) > Wow, nice find. > > I think this is a lacking in the AsyncCompletionWaitor. The > CountingRequestMonitor had a similar issue. Pawel fixed it by basically not > allowing the CRM to complete until it was told how many results it was > expecting in total. Maybe we should do the same here and instead of having > increment() called for every attempt, one single setCount() should be called > once we know how many attempts. > > But for the short-term, I'm fine with this fix. Well, I think a variant of increment that takes an int would be good. I think we want to keep the simple increment() method, since it's useful in some cases. Adding a setCount() would be confusing, IMO. Reopening. Will move to fixed when committed (after Helios). *** cdt cvs genie on behalf of jcortell *** Bug 315845: Intermittent race-condition failure in MIMemoryTest.asynchronousReadWrite() [*] AsyncCompletionWaitor.java 1.5 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/AsyncCompletionWaitor.java?root=Tools_Project&r1=1.4&r2=1.5 [*] MIMemoryTest.java 1.5 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIMemoryTest.java?root=Tools_Project&r1=1.4&r2=1.5 [*] MIMemoryTest.java 1.4.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIMemoryTest.java?root=Tools_Project&r1=1.4&r2=1.4.2.1 *** cdt cvs genie on behalf of jcortell *** Bug 315845: Intermittent race-condition failure in MIMemoryTest.asynchronousReadWrite() [*] AsyncCompletionWaitor.java 1.4.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/AsyncCompletionWaitor.java?root=Tools_Project&r1=1.4&r2=1.4.2.1 Committed to HEAD and cdt_7_0 |