Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] indexer question

A dummy search with WAIT_UNTIL_FINISHED policy would do it.



                                                                                                                                                      
                      "Adam Kiezun"                                                                                                                   
                      <adam.kiezun@xxxxxx         To:      <jdt-core-dev@xxxxxxxxxxx>                                                                 
                      t>                          cc:                                                                                                 
                      Sent by:                    Subject: [jdt-core-dev] indexer question                                                            
                      jdt-core-dev-admin@                                                                                                             
                      eclipse.org                                                                                                                     
                                                                                                                                                      
                                                                                                                                                      
                      03/15/2002 02:48 PM                                                                                                             
                      Please respond to                                                                                                               
                      jdt-core-dev                                                                                                                    
                                                                                                                                                      
                                                                                                                                                      



hi,
when running our test case we sometimes see errors when deleting files
(we have like 1200 tests and each loads some files, saved the,m, does some
stuff, deletes them)

sometimes it randomly fails when deleting them - that'd be like 1 or 2 out
of the 1200.
my question is: could that be the indexer keeping some locks on these files
when we try to delete them?
if so, would a dummy search performed before deleting fix the problem?
or, better still - could i just force the indexer to do finish its job?
would the follwing code do it?

JavaModelManager.getJavaModelManager().getIndexManager
().checkIndexConsisten
cy();



thanks

a.


_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev






Back to the top