We're updating the issue view to help you get more done. 

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

Description

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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]

Status

Assignee

Thomas Schroeter

Reporter

Roger Willis

Priority

High

Labels

Severity

Medium

Fix versions

Ported to...

None

Feature Team

Performance and Platform Sustainability