Uploaded image for project: 'Corda'
  1. CORDA-2698

Vault paging fails if setting max page size to `Int.MAX_VALUE`

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: High
    • Resolution: Done
    • Affects versions: None
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
    • Severity:
      Medium
    • Feature Team:
      Performance and Platform Sustainability
    • Sprint:

      Description

      This is a backwards incompatible change, as this previously worked in ENT 3.2. Exception:

      net.corda.core.node.services.VaultQueryException: Page specification: invalid page size 2147483647 [maximum is 2147483646]
      	at net.corda.node.services.vault.NodeVaultService$_queryBy$2.invoke(NodeVaultService.kt:602) ~[corda-node-5.0-SNAPSHOT.jar:?]
      	at net.corda.node.services.vault.NodeVaultService$_queryBy$2.invoke(NodeVaultService.kt:54) ~[corda-node-5.0-SNAPSHOT.jar:?]
      	at net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:232) ~[corda-node-api-5.0-SNAPSHOT.jar:?]
      	at net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:212) ~[corda-node-api-5.0-SNAPSHOT.jar:?]
      	at net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:218) ~[corda-node-api-5.0-SNAPSHOT.jar:?]
      	at net.corda.node.services.vault.NodeVaultService._queryBy(NodeVaultService.kt:573) ~[corda-node-5.0-SNAPSHOT.jar:?]
      	at net.corda.node.services.vault.NodeVaultService._queryBy(NodeVaultService.kt:562) ~[corda-node-5.0-SNAPSHOT.jar:?]
      	at com.finastra.lendercomm.corda.flow.DealBroadcastFlow$Broadcast.call(DealBroadcastFlow.kt:133) ~[?:?]
      	at com.finastra.lendercomm.corda.flow.DealBroadcastFlow$Broadcast.call(DealBroadcastFlow.kt:35) ~[?:?]
      	at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:243) ~[corda-node-5.0-SNAPSHOT.jar:?]
      	at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:45) ~[corda-node-5.0-SNAPSHOT.jar:?]
      	at co.paralleluniverse.fibers.Fiber.run1(Fiber.java:1092) ~[quasar-core-0.7.11_r3-jdk8.jar:0.7.11_r3]
      	at co.paralleluniverse.fibers.Fiber.exec(Fiber.java:788) ~[quasar-core-0.7.11_r3-jdk8.jar:0.7.11_r3]
      	at co.paralleluniverse.fibers.RunnableFiberTask.doExec(RunnableFiberTask.java:100) ~[quasar-core-0.7.11_r3-jdk8.jar:0.7.11_r3]
      	at co.paralleluniverse.fibers.RunnableFiberTask.run(RunnableFiberTask.java:91) ~[quasar-core-0.7.11_r3-jdk8.jar:0.7.11_r3]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_192]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_192]
      

        Attachments

          Activity

            People

            • Assignee:
              Thomas.Schroeter Thomas Schroeter
              Reporter:
              Roger.Willis Roger Willis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: