2841 Commits

Author SHA1 Message Date
Joseph Zuniga-Daly
f0ebaab3e9 Check for duplicate custom checkpoint serializers 2020-07-08 11:23:39 +01:00
Joseph Zuniga-Daly
862a590d32 Add a broken serializer for EdDSAPublicKey to make test more robust 2020-07-06 15:47:37 +01:00
Joseph Zuniga-Daly
cf2928b7bd Test PublicKey serializer has not been overridden 2020-07-03 17:20:04 +01:00
Joseph Zuniga-Daly
a4ed9d66bc Check serialization of final classes 2020-07-03 16:40:54 +01:00
Joseph Zuniga-Daly
fed60e5af2 Add tests that run the checkpoint serializer directly 2020-07-03 16:31:56 +01:00
Joseph Zuniga-Daly
1ebfccadd0 Rename class to have a shorter name 2020-07-03 14:17:51 +01:00
Joseph Zuniga-Daly
ae6104ad37 Delete comment now source file is simpler 2020-07-03 14:13:47 +01:00
Joseph Zuniga-Daly
fefa2bee5e Move broken map into its own source file 2020-07-03 14:11:53 +01:00
Joseph Zuniga-Daly
576e563070 Move flows and serializers into their own source file 2020-07-03 14:02:07 +01:00
Joseph Zuniga-Daly
0bba32818a Rename test 2020-07-03 13:53:13 +01:00
Joseph Zuniga-Daly
7ba2210049 Move test into its own package 2020-07-03 13:51:54 +01:00
Joseph Zuniga-Daly
0f139b5bb0 Test serializer configured with abstract class 2020-07-03 13:39:07 +01:00
Joseph Zuniga-Daly
3fb8a61d3a Test custom serializers mapped to interfaces 2020-07-03 13:15:34 +01:00
Joseph Zuniga-Daly
87f859686c Add newline to end of file 2020-07-03 11:28:55 +01:00
Joseph Zuniga-Daly
a5b59d8098 Remove maySkipCheckpoint from calls to sleep 2020-07-03 11:28:11 +01:00
Joseph Zuniga-Daly
19fbfa1414 Make file match original to remove from diff 2020-06-29 15:35:09 +01:00
Joseph Zuniga-Daly
e94c32f3fa Remove need for external library in tests 2020-06-29 15:31:55 +01:00
Joseph Zuniga-Daly
223cfe640d Remove unused imports 2020-06-26 15:06:03 +01:00
Joseph Zuniga-Daly
b1408453ee Wire up the new CheckpointCustomSerializer interface 2020-06-26 14:18:54 +01:00
Joseph Zuniga-Daly
1c7258aee0 Add CheckpointCustomSerializer interface 2020-06-25 17:14:18 +01:00
Joseph Zuniga-Daly
050a36a677 Add test to check references are restored correctly 2020-06-25 11:40:47 +01:00
Joseph Zuniga-Daly
296202d541 Use 0 seconds when forcing a flow checkpoint inside test 2020-06-24 14:23:57 +01:00
Joseph Zuniga-Daly
a66e140185 CORDA-3717: Apply custom serializers to checkpoints 2020-06-24 11:15:08 +01:00
Chris Rankin
6485a025c7
ENT-5430: Increase test coverage when serializing Optional fields. (#6387) 2020-06-22 16:51:40 +01:00
Waldemar Zurowski
1a4efbac7f Merge branch 'release/os/4.5' into merge-45-to-46 2020-06-19 19:48:08 +01:00
pnemeth
d6cab0e131
EG-1557 - Configuration data from "include" section ignored while command line contains the path to config file without leading ./ (#6354)
Configuration data from "include" section ignored while command line contains the path to config file without leading ./
2020-06-19 10:32:55 +01:00
alicer3
e77f7a7546
center console message for registration (#6191) 2020-06-19 09:49:07 +01:00
LankyDan
56d0bbc036 CORDA-3841 Check isAnyCheckpointPersisted in startFlowInternal (#6351)
Only hit the database if `StateMachineState.isAnyCheckpointPersisted`
returns true. Otherwise, there will be no checkpoint to retrieve from the
database anyway. This can prevent errors due to a transient loss of
connection to the database.

Update tests after merging to 4.6
2020-06-18 16:15:15 +01:00
LankyDan
e8b17ff7b9 Merge branch 'release/os/4.5' into dan/os-4.5-to-4.6-merge-2020-06-18
# Conflicts:
#	node/src/main/kotlin/net/corda/node/services/persistence/DBCheckpointStorage.kt
#	node/src/main/kotlin/net/corda/node/services/statemachine/SingleThreadedStateMachineManager.kt
2020-06-18 15:50:46 +01:00
Chris Rankin
1ef62870bb Merge commit 'fe617818895edab334d80c5e8de2b38f39e67af6' into chrisr3-os44-merge 2020-06-17 18:54:54 +01:00
Chris Rankin
d0c0a1d9ba
ENT-5430: Fix deserialisation of commands containing generic types. (#6359) 2020-06-17 17:28:26 +01:00
James Higgs
24b0240d82
EG-2654 - Ensure stack traces are printed to the logs in error reporting (#6345)
* EG-2654 Ensure stack trace is printed to the logs in error reporting

* EG-2654 - Add a test case for exception logging
2020-06-17 14:32:12 +01:00
Dan Newton
7ab6a8f600
CORDA-3841 Check isAnyCheckpointPersisted in startFlowInternal (#6351)
Only hit the database if `StateMachineState.isAnyCheckpointPersisted`
returns true. Otherwise, there will be no checkpoint to retrieve from the
database anyway. This can prevent errors due to a transient loss of
connection to the database.
2020-06-16 09:22:26 +01:00
Tamas Veingartner
26d4bfb89f
CORDA-3578 add corda prefix to conf file names as original issue was … (#6322)
* CORDA-3578 add corda prefix to conf file names as original issue was having non-corda reference.conf files on classpath causes DriverDSLImp failure

it is better to have this naming convention and avoid further conflicts of conf files.

* fixed weird duplicates

* revert renaming changes for web-reference.conf and loadtest-reference.conf
2020-06-16 09:15:51 +01:00
Christian Sailer
35c661b9f6
Merge pull request #6341 from corda/chrisr3-45-merge
NOTICK: Merge from OS 4.5 up to ef00fa1.
2020-06-12 16:42:51 +01:00
Stefano Franz
64f0011a62
Make Checkpoint classes data classes (#6342)
* Make Checkpoint classes data classes

* tidy up null-checks for array equality
2020-06-12 16:35:32 +01:00
Chris Rankin
3f67e314c0 Merge commit 'ef00fa1388db37e155ab8cfed3763c14801f8aa9' into chrisr3-45-merge 2020-06-12 13:14:44 +01:00
James Higgs
6e349f298e
NOTICK - Ignore a potentially dodgy test (#6336) 2020-06-11 16:47:48 +01:00
James Higgs
ab023d0b07 Merge branch 'release/os/4.5' into jamesh/os-4.5-4.6-merge-11062020 2020-06-11 09:40:39 +01:00
James Higgs
58af87c988
EG-2225 - Create log directory in correct place with verbose flag set (#6321)
* Ensure logs directory is written to correct location
* Remove a superfluous set of log path property
* Add a unit test to catch bad log paths
* Address detekt issues
2020-06-10 10:46:57 +01:00
James Higgs
8b7275eb97
EG-2564 - Move printed error to logger (#6323) 2020-06-10 10:45:50 +01:00
Schife
fb184839f4 Merge branch 'release/os/4.5' of https://github.com/corda/corda into razvan-os-4.5-to-4.6-merge 2020-06-05 07:55:48 +01:00
nikinagy
caf5482244
ENT-4064, ENT-4608 - checking for unsigned cordapps in prod mode and checking the PV (#6291)
* checking for unsigned cordapps in prod mode and shutting down if it the contracts are not signed

* inheriting from CordaRuntimeException instead of Exception

* had the same tests twice, removed the shutdown for minimumplatformversion, modified some of the tests

* shut down when we get invalid platformversion and modified the test according to this

* making the message more accurate
2020-06-04 16:24:49 +01:00
Denis Rekalov
45614cf29e
Merge pull request #6266 from corda/denis/CORDA-3805-custom-migration-scripts
CORDA-3805: cut dependency from PersistentIdentityService for custom migration scripts
2020-06-04 14:20:26 +01:00
Dan Newton
f0d2c9fe71
NOTICK Correct StatemachineGeneralErrorHandlingtest (#6306) 2020-06-04 08:04:41 +01:00
Kyriakos Tharrouniatis
b8b462f68e
NOTICK Fix schema validation error for flow parameters (#6304)
Adding 'corda-blob' type, fixed 'Schema-validation: wrong column type'
2020-06-02 17:52:50 +01:00
williamvigorr3
0554c98d18
NOTICK Restrict to shell commands (#6303)
Remove shell command for pausing flows
2020-06-02 16:04:10 +01:00
James Higgs
04ddb267fd
[EG-2225] Prevent extra directories being created when relative base directories are specified (#6282)
Don't create an extra directory if a relative base path specified
2020-06-02 15:26:40 +01:00
Tamas Veingartner
9c4a76d367
CORDA-3176 Inefficient query generated on vault queries with custom p… (#6241)
* CORDA-3176 Inefficient query generated on vault queries with custom paging

a check added to avoid self joins
local postgres db tests were executed on large volume test data (50k states) to ensure that the DB optimizes the suspicious query and so it does not cuase performance issues.
A test added to check that a pagination query on large volume of sorted data is completed in a reasonable time

* foreach detekt fix
2020-06-02 10:33:59 +01:00
Denis Rekalov
98af7f10f9 CORDA-3805: Make custom migration scripts independent on the latest PersistentIdentityService schema 2020-06-01 16:22:21 +01:00