Uploaded image for project: 'mod-inventory-storage'
  1. mod-inventory-storage
  2. MODINVSTOR-635

Timeout in InstanceStorageTest.canPostSynchronousBatchWithGeneratedHRID

    XMLWordPrintable

Details

    • CP: sprint 103
    • 2
    • Core: Platform

    Description

      Steps to reproduce:

      cd raml-moduile-builder
      git checkout RMB-609
      mvn -B install
      cd ../mod-inventory-storage
      git checkout MODINVSTOR-624-vertx-4
      mvn -B test
      

      Sometimes it ends up with this failure:

      Results :
      
      Tests in error: 
        InstanceStorageTest.canPostSynchronousBatchWithGeneratedHRID:2190 ยป Timeout
      
      Tests run: 712, Failures: 0, Errors: 1, Skipped: 1
      
      

      It appears that the test times out due to NPE (from rmb-766-1.txt):

      8:18:43 [] [] [] [] ERROR ?                    Unhandled exception
      java.lang.NullPointerException: null
              at io.vertx.sqlclient.impl.pool.ConnectionPool.check(ConnectionPool.java:301) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.pool.ConnectionPool.access$500(ConnectionPool.java:44) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.pool.ConnectionPool$PooledConnection.addToPool(ConnectionPool.java:261) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.pool.ConnectionPool$PooledConnection.doClose(ConnectionPool.java:213) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.pool.ConnectionPool$PooledConnection.lambda$close$0(ConnectionPool.java:194) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.lambda$emit$0(WorkerContext.java:78) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.execute(WorkerContext.java:113) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.emit(WorkerContext.java:77) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.ContextImpl.emit(ContextImpl.java:294) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.emit(WorkerContext.java:25) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.AbstractContext.emit(AbstractContext.java:49) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.emit(WorkerContext.java:25) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
      

      In another run, other exceptions are thrown (rmb-766-2.txt):

      09:23:43 [] [] [] [] ERROR PostgresClient       null
      java.lang.IllegalStateException: null
              at io.vertx.sqlclient.impl.pool.ConnectionPool$PooledConnection.init(ConnectionPool.java:186) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.PoolBase.lambda$getConnection$1(PoolBase.java:101) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.core.impl.future.MapTransformation.onSuccess(MapTransformation.java:35) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.future.FutureBase.lambda$emitSuccess$0(FutureBase.java:53) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.execute(WorkerContext.java:113) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.execute(WorkerContext.java:66) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.execute(WorkerContext.java:84) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.DuplicatedContext.execute(DuplicatedContext.java:199) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.future.FutureBase.emitSuccess(FutureBase.java:50) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.future.FutureImpl.tryComplete(FutureImpl.java:180) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.future.PromiseImpl.tryComplete(PromiseImpl.java:23) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.future.PromiseImpl.onSuccess(PromiseImpl.java:49) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.future.PromiseImpl.handle(PromiseImpl.java:41) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.future.PromiseImpl.handle(PromiseImpl.java:23) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.sqlclient.impl.pool.ConnectionPool.check(ConnectionPool.java:301) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.pool.ConnectionPool.doAcquire(ConnectionPool.java:116) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.lambda$emit$0(WorkerContext.java:78) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.execute(WorkerContext.java:113) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.emit(WorkerContext.java:77) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.ContextImpl.emit(ContextImpl.java:294) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.core.impl.WorkerContext.emit(WorkerContext.java:25) ~[vertx-core-4.0.0.CR2.jar:4.0.0.CR2]
              at io.vertx.sqlclient.impl.pool.ConnectionPool.acquire(ConnectionPool.java:99) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.PoolBase.acquire(PoolBase.java:137) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.PoolBase.getConnection(PoolBase.java:93) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at io.vertx.sqlclient.impl.PoolBase.getConnection(PoolBase.java:77) ~[vertx-sql-client-4.0.0.CR2-FOLIO.jar:4.0.0.CR2-FOLIO]
              at org.folio.rest.persist.PostgresClient.getConnection(PostgresClient.java:3194) ~[domain-models-runtime-32.0.0-SNAPSHOT.jar:?]
              at org.folio.rest.persist.PostgresClient.startTx(PostgresClient.java:626) ~[domain-models-runtime-32.0.0-SNAPSHOT.jar:?]
              at org.folio.rest.support.HridManager.lambda$3(HridManager.java:51) ~[classes/:?]
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adam Adam Dickmeiss
                adam Adam Dickmeiss
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases