Using a newish large memory, multi-core laptop. The fan made itself known.
Indexing took ~15 minutes.
Over a weeks worth of logs, only one indexing of central. There's a little
"2nd thought" bouncing that seems to go on immediately after the indexing.

An aside

   While taking a look at this I ran into something messy.
   Not repository, but source indexing relating.
        log filled with huge repeating message (4K each)
   https://github.com/apache/netbeans/issues/6071


WARNING: package com.apple.eio not in java.desktop
-------------------------------------------------------------------------------
>Log Session: Thursday, June 8, 2023 at 2:34:34 PM Pacific Daylight Time
>System Info:
  Product Version         = Apache NetBeans IDE 18
  Operating System        = Linux version 6.2.6-76060206-generic running on amd64   Java; VM; Vendor        = 17.0.6; Java HotSpot(TM) 64-Bit Server VM 17.0.6+9-LTS-190; Oracle Corporation   Runtime                 = Java(TM) SE Runtime Environment 17.0.6+9-LTS-190
...
INFO [org.apache.lucene.search.MultiTermQuery_patched]: patched MultiTermQuery.hashCode() initialized. (LUCENE-10431) INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of maven-snapshots took 0.99 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: could not (re-)index maven-snapshots org.apache.maven.wagon.ResourceDoesNotExistException: resource missing at https://oss.sonatype.org/content/repositories/snapshots/.index/nexus-maven-repository-index.properties, status: 404 Not Found     at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1191)
...
[catch] at org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.lambda$spawnIndexLoadedRepo$4(NexusRepositoryIndexerImpl.java:668)
... one exception

... 18 lines of test application logging

[maven-local-indexing] INFO org.eclipse.aether.internal.impl.DefaultArtifactResolver - Artifact org.sonatype.nexus.buildsupport:nexus-buildsupport-shiro:pom:2.15.1-02 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [maven-snapshots (https://oss.sonatype.org/content/repositories/snapshots/, default, releases+snapshots), central (https://repo.maven.apache.org/maven2/, default, releases+snapshots)]

... 231 messages like the one above, sigh

INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of local took 18.73 s.

... 597 lines of seemingly unrelated random stuff

INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 897.69 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.10 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.04 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.02 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.02 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.05 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.04 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.05 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.03 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.02 s. INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of central took 0.04 s.
...


On 23/06/12 2:50 AM, Michael Bien wrote:
On 12.06.23 09:51, Peter Hull wrote:
On Sun, 11 Jun 2023 at 19:05, Tamás Cservenák <ta...@cservenak.net> wrote:
The central index last publish happened on 5th June 2023.
Thanks everyone for the comments.

I've not been monitoring it specifically but I had the feeling that
indexer was running more frequently, that's why I asked if there was a
log so I could confirm it (or not!)

I forgot to answer this - sorry, check for:

INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: Indexing of [repo_name] took [time]s

logger is enabled by default, time includes download.

you can also see the last update timestamp in:

[netbeans_config_folder]/18/config/Preferences/org/netbeans/modules/maven/repositories/[repo_name].properties

which is set on every index update.


I believe it was indexing rather than just an update check, because it
makes my laptop fans spin up for a few minutes.
I have only recently upgraded to NB18 so for example if I had done
that on 4th June I would have had an indexer run on that day and again
the following day, is that correct?

This shouldn't happen due to the min update interval which is 7 days by default. But I can take another look at the code.


  And also, if I had closed NB
before the indexing had finished, would it start again from scratch,
or does it work incrementally?

It would start again from scratch if it is cancelled by the user (e.g due to shutdown).



I'll keep an eye on it and let you know if it seems to be running more
frequently than updates to the nexus-maven-repository-index.properties
would suggest.

great, thanks!

you could also give a NB 19 dev build a try if you want since it has many maven-indexer improvements already merged:

https://ci-builds.apache.org/job/Netbeans/job/netbeans-linux/lastSuccessfulBuild/artifact/nbbuild/


best regards,

-mbien



Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to