Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330191 - Wrong synchronization in jdt.internal.core.search.indexing.IndexManager
Summary: Wrong synchronization in jdt.internal.core.search.indexing.IndexManager
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-13 20:49 EST by daolaf CLA
Modified: 2019-01-19 17:06 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daolaf CLA 2010-11-13 20:49:16 EST
Build Identifier: 

There is some inconsistent synchronization done in the IndexManager class.

1. There is some synchronization done to protect the indexes table from parallel access. However the access to this table is not protected in the methods getIndexes and toString.

2. Same for the indexLocations table which is not guarded in the method getIndexes.

3. Same for the indexStates table which is not guarded in cleanUpIndexes.

I don't know the code well enough to provide a patch and to tell if simply making these methods synchronized will be the right way to solve this but someone should have a look on it as it might cause errors.

Reproducible: Always
Comment 1 Ayushman Jain CLA 2010-11-15 01:37:14 EST
Satyam, please follow up. Thanks!
Comment 2 Eclipse Genie CLA 2019-01-19 17:06:11 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.