Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven remote index migration and refactoring #7976

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mbien
Copy link
Member

@mbien mbien commented Nov 21, 2024

refactoring: split NexusRepositoryIndexerImpl to make it more maintainable

  • moves about half of the code into a dedicated class
  • queries moved to NexusRepositoryQueries
  • index management remains in NexusRepositoryIndexManager

automatically move remote maven index from old into current cache, if:

  • both cache folders share the same parent
  • cache folder is actually from an older release
  • index is still fairly recent
  • current NB instance is not a dev version

note:

this isn't well tested yet. -J-Dmaven.indexing.diag.release=25 can be used to simulate a release version (would move the index from <25 into the cache for current if above conditions apply)

 - moves about half of the code into a dedicated class
 - queries moved to NexusRepositoryQueries
 - index management remains in NexusRepositoryIndexManager
@mbien mbien added Code cleanup Maven [ci] enable "build tools" tests ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Nov 21, 2024
@mbien mbien added this to the NB25 milestone Nov 21, 2024
conditions:

 - both cache folders share the same parent
 - cache folder is from an older release
 - index is still fairly recent
 - current NB instance is not a dev version
@mbien mbien force-pushed the remote-index-migration branch from d848634 to ac8c041 Compare November 21, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Code cleanup Maven [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant