Bug 366544 - [index] Test testUseIndexInternalJarAfterRestart failed on Mac and Linux
Summary: [index] Test testUseIndexInternalJarAfterRestart failed on Mac and Linux
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.8 M5   Edit
Assignee: Satyam Kandula CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 09:18 EST by Satyam Kandula CLA
Modified: 2012-01-24 10:13 EST (History)
3 users (show)

See Also:
jarthana: review+


Attachments
Proposed patch (9.85 KB, patch)
2011-12-20 07:43 EST, Satyam Kandula CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Satyam Kandula CLA 2011-12-13 09:18:19 EST
Newly added tests testUseIndexInternalJarAfterRestart, testChangeClasspathForInternalJar, testIndexInJar for predefined indexes failed on Mac and Linux.
Comment 1 Satyam Kandula CLA 2011-12-13 10:40:15 EST
Disabled the tests as of now.
Comment 2 Stephan Herrmann CLA 2011-12-13 11:11:50 EST
(In reply to comment #0)
> Newly added tests testUseIndexInternalJarAfterRestart,
> testChangeClasspathForInternalJar, testIndexInJar for predefined indexes failed
> on Mac and Linux.

I can confirm the failures on Linux (2 err, 1 fail).

Let me know if you need help debugging on Linux.
Comment 3 Satyam Kandula CLA 2011-12-13 11:59:01 EST
(In reply to comment #2)
> (In reply to comment #0)
> > Newly added tests testUseIndexInternalJarAfterRestart,
> > testChangeClasspathForInternalJar, testIndexInJar for predefined indexes failed
> > on Mac and Linux.
> 
> I can confirm the failures on Linux (2 err, 1 fail).
> 
> Let me know if you need help debugging on Linux.
Stephan, Thanks for the offer. I think I should be able to take care. I will let you know if I want help.
Comment 4 Satyam Kandula CLA 2011-12-20 07:43:27 EST
testUseIndexInternalJarAfterRestart and testChangeClasspathForInternalJar failed because there is a bug with the way I wrote the test for considering the internal jar. After fixing the test, I found that we weren't handling the internal jar case properly. To fix this, we now keep the list of the index map (jar->index file) in a file, so that on a restart we know the index files used. I actually did this but removed latter assuming that it isn't necessary:(.

testIndexInJar failed because of an extra '/'.
Comment 5 Satyam Kandula CLA 2011-12-20 07:43:50 EST
Created attachment 208603 [details]
Proposed patch
Comment 6 Satyam Kandula CLA 2011-12-20 07:44:23 EST
Jay, Can you please review this?
Comment 7 Jay Arthanareeswaran CLA 2011-12-21 23:48:06 EST
(In reply to comment #5)
> Created attachment 208603 [details]
> Proposed patch

Patch looks good. Just a small point: the indexMaps.length > 0 looks redundant to me.
Comment 8 Satyam Kandula CLA 2012-01-04 01:30:51 EST
(In reply to comment #7)
Thanks Jay, Removed the unnecessary line and released on master via commit 3c9fcd486312b0a7ab40ed5ba3b6e46d9bce5dc9
Comment 9 Stephan Herrmann CLA 2012-01-24 10:13:02 EST
Verified for 3.8 M5 using build I20120123-1300