Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347062 - Make org.eclipse.wst.server.core.internal.Server.getModules() thread-safe
Summary: Make org.eclipse.wst.server.core.internal.Server.getModules() thread-safe
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: wst.server CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 15:08 EDT by Raymond Lai CLA
Modified: 2011-05-24 15:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Lai CLA 2011-05-24 15:08:23 EDT
Build Identifier: 

Currently, the decorator and the server views can call the Server.getModules() concurrently. One can instantiate the modules array and in the process of populating it. Then the other can come and get the unpopulated/partially populated modules array. The publish code can call Server.getModules() and get the unpopulated/partially populated modules array as well.

This bug will make the concurrency issue happen more often: https://bugs.eclipse.org/bugs/show_bug.cgi?id=347059.

Reproducible: Sometimes