Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-32120

Nexus does unnecessary file renames during nxrm2 to nxrm 3 migration

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.38.1
    • Fix Version/s: None
    • Component/s: Blobstore, Migration
    • Labels:
    • Notability:
      3

      Description

      When migrating from Nexus 2 to 3 using hard linking Nexus is renaming temporary files to permanent blob files.

      This is not necessary, and can cause considerable slowdowns on file systems where renames can be expensive (NFS).

      "change-processing-16-thread-3" id=1192 state=RUNNABLE
      at sun.nio.fs.UnixNativeDispatcher.rename0(Native Method)
      at sun.nio.fs.UnixNativeDispatcher.rename(UnixNativeDispatcher.java:188)
      at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:388)
      at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262)
      at java.nio.file.Files.move(Files.java:1395)
      at org.sonatype.nexus.blobstore.file.internal.SimpleFileOperations.moveAtomic(SimpleFileOperations.java:108)
      at org.sonatype.nexus.blobstore.file.FileBlobStore$$Lambda$1708/1862609045.accept(Unknown Source)
      at org.sonatype.nexus.blobstore.file.internal.SimpleFileOperations.copyIfLocked(SimpleFileOperations.java:141)
      at org.sonatype.nexus.blobstore.file.FileBlobStore.move(FileBlobStore.java:695)
      at org.sonatype.nexus.blobstore.file.FileBlobStore.tryCreate(FileBlobStore.java:391)
      at org.sonatype.nexus.blobstore.file.FileBlobStore.create(FileBlobStore.java:338)
      at org.sonatype.nexus.blobstore.file.FileBlobStore.create(FileBlobStore.java:329)
      at org.sonatype.nexus.blobstore.file.FileBlobStore$$EnhancerByGuice$$132332133.GUICE$TRAMPOLINE(<generated>)
      at org.sonatype.nexus.blobstore.file.FileBlobStore$$EnhancerByGuice$$132332133$$Lambda$472/63441647.apply(Unknown Source)
      at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74)
      at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
      at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
      at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55)
      at org.sonatype.nexus.blobstore.file.FileBlobStore$$EnhancerByGuice$$132332133.create(<generated>)
      at org.sonatype.nexus.repository.content.fluent.internal.FluentBlobsImpl.ingest(FluentBlobsImpl.java:155)
      at com.sonatype.nexus.migration.repository.migrators.datastore.DatastoreRepositoryMigratorSupport.lambda$2(DatastoreRepositoryMigratorSupport.java:171)
      at com.sonatype.nexus.migration.repository.migrators.datastore.DatastoreRepositoryMigratorSupport$$Lambda$1972/717384539.accept(Unknown Source)
      at java.util.Optional.ifPresent(Optional.java:159)
      at com.sonatype.nexus.migration.repository.migrators.datastore.DatastoreRepositoryMigratorSupport.hardLinkContent(DatastoreRepositoryMigratorSupport.java:153)
      at com.sonatype.nexus.migration.repository.migrators.RepositoryMigratorSupport.ingestContent(RepositoryMigratorSupport.java:189)
      at com.sonatype.nexus.migration.repository.migrators.RepositoryMigratorSupport.createOrUpdate(RepositoryMigratorSupport.java:168)
      at com.sonatype.nexus.migration.repository.migrators.RepositoryMigratorSupport.processChange(RepositoryMigratorSupport.java:142)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Michael Oliverio Michael Oliverio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title