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?

Thanks Stefan,

I've answered on the bug.

Am 27.04.2017 um 23:28 schrieb Stefan Xenos:
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 <mailto:daniel_megert@xxxxxxxxxx>> wrote:

    This looks fishy!

    Dani



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



    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 <http://google.com/+AndreyLoskutov>


    *Gesendet:* Donnerstag, 27. April 2017 um 07:49 Uhr*
    Von:* "Manoj Palat" <manoj.palat@xxxxxxxxxx
    <mailto:manoj.palat@xxxxxxxxxx>>*
    An:* "Eclipse JDT Core developers list." <jdt-core-dev@xxxxxxxxxxx
    <mailto: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_
    <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 <mailto:loskutov@xxxxxx>>
    To: jdt-core-dev@xxxxxxxxxxx <mailto:jdt-core-dev@xxxxxxxxxxx>
    Date: 04/27/2017 10:54 AM
    Subject: [jdt-core-dev] Odd index issues?
    Sent by: jdt-core-dev-bounces@xxxxxxxxxxx
    <mailto:jdt-core-dev-bounces@xxxxxxxxxxx>

    ------------------------------------------------------------------------



    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_ <http://google.com/+AndreyLoskutov>
    _______________________________________________
    jdt-core-dev mailing list
    jdt-core-dev@xxxxxxxxxxx <mailto: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_
    <https://dev.eclipse.org/mailman/listinfo/jdt-core-dev>





    _______________________________________________ jdt-core-dev mailing
    list jdt-core-dev@xxxxxxxxxxx <mailto: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_
    <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 <mailto: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
    <https://dev.eclipse.org/mailman/listinfo/jdt-core-dev>



    _______________________________________________
    jdt-core-dev mailing list
    jdt-core-dev@xxxxxxxxxxx <mailto: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
    <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


--
Kind regards,
Andrey Loskutov

http://google.com/+AndreyLoskutov


Back to the top