Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Odd index issues?

> Sorry for the silly question - are *both* indexes cleared with this method?

Yes. Both indices are always deleted with this method.

> Another question: after clearing the index I didn't noticed any index activity so I did a restart and on startup this INFO was added to the error log:

It's not necessarily a problem if you don't see any indexer activity. The indexer may have just run quickly.

> Index database uses the unsupported version 0. Deleting and recreating.
> After that I saw that the indexer started to index. Is this expected (I mean - extra restart)?

That would happen if you shut down Eclipse in the middle of a write to the new index. One possibility is that there *was* some indexer activity going on and you closed Eclipse while it was writing the index. That corrupted the index, so the auto-recovery kicked in on the following restart and fixed it by deleting and recreating the index.

It's possible that you encountered a bug, but what you described could have also happened if everything happened exactly as intended. If it happens repeatedly when you clear the indices, it's probably a bug. If it's just a one-off thing, I wouldn't worry about it.

  - Stefan

On Thu, Apr 27, 2017 at 12:34 AM, Daniel Megert <daniel_megert@xxxxxxxxxx> wrote:
This looks fishy!

Dani



From:        "Andrey Loskutov" <loskutov@xxxxxx>
To:        jdt-core-dev@xxxxxxxxxxx
Date:        27.04.2017 08:40
Subject:        Re: [jdt-core-dev] Odd index issues?
Sent by:        jdt-core-dev-bounces@eclipse.org




Many thanks Manoj,
 
I was on I20170424-2000 and after update to the I20170426-2000 *and* clearing the index as proposed, the issue seem to disappear.
Sorry for the silly question - are *both* indexes cleared with this method?
 
Another question: after clearing the index I didn't noticed any index activity so I did a restart and on startup this INFO was added to the error log:
Index database uses the unsupported version 0. Deleting and recreating.
After that I saw that the indexer started to index. Is this expected (I mean - extra restart)?
 
Kind regards,
Andrey Loskutov

http://google.com/+AndreyLoskutov
 
 
Gesendet: Donnerstag, 27. April 2017 um 07:49 Uhr
Von:
"Manoj Palat" <manoj.palat@xxxxxxxxxx>
An:
"Eclipse JDT Core developers list." <jdt-core-dev@xxxxxxxxxxx>
Betreff:
Re: [jdt-core-dev] Odd index issues?

Hi Andrey,

If you are using any of the Eclipses (say
I20170426-2000) since yesterday, there is an option added to clear the indices. This is under Preferences -> Java and is called "Clear Indexes" as shown in the figure attached.
Please note that the clear indexes will not only clear the indices but will rebuild the indices again. Depending on whether the checkbox "Enable new Java Index" is enabled or not, the new indices will be rebuilt.
[For further info, if interested, on this particular feature, please have a look at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=515534]






That said, please note that the new index is used only for type hierarchy. For open type, its the old index that is used. Request you to file a bug in case you get this issue again.
Also, is there any particular weekly build which you have identified where this issue started to suffice?


Regards,
Manoj.



Andrey Loskutov ---04/27/2017 10:54:52 AM---Hi all, I'm using pretty populated workspace with most SDK projects but change

From:
Andrey Loskutov <loskutov@xxxxxx>
To:
jdt-core-dev@xxxxxxxxxxx
Date:
04/27/2017 10:54 AM
Subject:
[jdt-core-dev] Odd index issues?
Sent by:
jdt-core-dev-bounces@eclipse.org





Hi all,

I'm using pretty populated workspace with most SDK projects but change
weekly SDK builds I use, and since a week I observe a strange issue that
some times content assist/open type don't shows types in same project or
types already referenced in the java file.

I suspect this could be some index issue (I don't want to think about
bugs in JDT at this level), and because my workspace contains lot of
projects and working sets, I don't wont to throw it away. What is the
best way to completely throw away the JDT index (both of them)?

--
Kind regards,
Andrey Loskutov


http://google.com/+AndreyLoskutov
_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/jdt-core-dev





_______________________________________________ jdt-core-dev mailing list jdt-core-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev[attachment "att2fzrq.gif" deleted by Daniel Megert/Zurich/IBM] [attachment "attw87m1.gif" deleted by Daniel Megert/Zurich/IBM] _______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev



_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev


Back to the top