Uploaded image for project: 'mod-source-record-storage'
  1. mod-source-record-storage
  2. MODSOURCE-42

Tenant initialization sample data loading fails

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      EPAM BatchLoader Sprint 13
    • Story Points:
      2
    • Development Team:
      Folijet

      Description

      When the loadSample tenant parameter is passed to the module on tenant initialization, the following error is logged:

      20:28:39.669 [vert.x-eventloop-thread-0] ERROR org.folio.rest.impl.ModTenantAPI - Error during loading sample source records
      java.nio.file.NoSuchFileException: file:/usr/verticles/mod-source-record-storage-server-fat.jar!/sampledata
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_181]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_181]
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_181]
      	at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:427) ~[?:1.8.0_181]
      	at java.nio.file.Files.newDirectoryStream(Files.java:457) ~[?:1.8.0_181]
      	at java.nio.file.Files.list(Files.java:3451) ~[?:1.8.0_181]
      	at org.folio.rest.impl.ModTenantAPI.createStubData(ModTenantAPI.java:117) ~[mod-source-record-storage-server-fat.jar:?]
      	at org.folio.rest.impl.ModTenantAPI.lambda$5(ModTenantAPI.java:65) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.Future.lambda$compose$1(Future.java:265) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.tryComplete(FutureImpl.java:125) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.complete(FutureImpl.java:86) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:151) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:18) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.tryComplete(FutureImpl.java:125) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.complete(FutureImpl.java:86) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:151) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.handle(FutureImpl.java:18) ~[mod-source-record-storage-server-fat.jar:?]
      	at org.folio.rest.persist.PostgresClient.lambda$46(PostgresClient.java:3354) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.FutureImpl.setHandler(FutureImpl.java:79) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:289) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:339) ~[mod-source-record-storage-server-fat.jar:?]
      	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [mod-source-record-storage-server-fat.jar:?]
      	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) [mod-source-record-storage-server-fat.jar:?]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) [mod-source-record-storage-server-fat.jar:?]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) [mod-source-record-storage-server-fat.jar:?]
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [mod-source-record-storage-server-fat.jar:?]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
      

      ...and no sample data are loaded. This is when using a Docker container from the image folioci/mod-source-record-storage:2.2.0-SNAPSHOT.34

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Kateryna Senchenko Kateryna Senchenko
                Reporter:
                wayne Wayne Schneider
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases