Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORE-18015: Merging forward updates from release/os/5.1 to release/interop/syntax - 2023-10-26 #4992

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
618344e
CORE-17371 fix CPI signerSummaryHash and fileChecksum in FlowContextP…
vlajos Oct 12, 2023
5340472
CORE-17623 - move-token-selection-processor (#4835)
driessamyn Oct 12, 2023
5f3f347
Revert "CORE-17429 State metadata support in message processor (#4828)"
vkolomeyko Oct 12, 2023
7dcbf24
Revert "CORE-16203 Replace State and Event pattern with Multi-Source …
vkolomeyko Oct 12, 2023
b97c4d0
CORE-16323: Fix State Manager Optimistic Locking (#4846)
jujoramos Oct 12, 2023
e43fb77
CORE-16203 Removed coroutine usage from Multi-Source Event Mediator. …
mbrkic-r3 Oct 13, 2023
a8c33f7
CORE-16246 Allow topic configuration overrides (#4857)
davidcurrie Oct 13, 2023
e4888e7
CORE-16778 Fix exception handling for invalid minimum platform versio…
YashNabar Oct 13, 2023
e42b16c
CORE-17431 utxo transaction metadata (#4845)
vlajos Oct 13, 2023
191cd1a
CORE-17433 Sandbox cache thread safety (#4844)
simon-johnson-r3 Oct 13, 2023
9bafc92
CORE-17368 - Revert fix for missing config 'frequencyOfExpirationPoll…
nikinagy Oct 13, 2023
f1be93e
CORE-17688: Fix sandbox level cache (#4841)
jennyang-r3 Oct 13, 2023
040c4be
CORE-16234: For persistence api add endpoint and change naming of exi…
emilybowe Oct 13, 2023
158d744
Merge remote-tracking branch 'origin/release/os/5.1' into vkolomeyko/…
vkolomeyko Oct 13, 2023
9141c15
Revert "CORE-16203 Removed coroutine usage from Multi-Source Event Me…
vkolomeyko Oct 13, 2023
cc2950f
CORE-17430 Persist reference states into utxo_transaction_sources tab…
nkovacsx Oct 13, 2023
2ec6352
CORE-17604 Moving RPC endpoint paths to consts file (#4862)
ben-millar Oct 13, 2023
237ef68
CORE-17411: VNode MGM re-registration improvements (#4851)
vkolomeyko Oct 13, 2023
afab217
CORE-16419 - template, schema and values yaml changes to support isol…
conalsmith-r3 Oct 13, 2023
02a2bb8
CORE-16203, CORE-17429: Flow changes revert #4856
vkolomeyko Oct 13, 2023
debeba4
CORE-17747 remove attachments (#4861)
blsemo Oct 13, 2023
8c013bf
CORE-16752 - Unclear error message after failed signature verificatio…
nikinagy Oct 13, 2023
d5dc203
CORE-16181 Implement RPC Producer that implements RPC client (#4709)
ben-millar Oct 13, 2023
b3b40d3
CORE-15552 Add `findUnconsumedStatesByExactType` paging API (#4837)
lankydan Oct 13, 2023
42777ec
Revert "CORE-16181 Implement RPC Producer that implements RPC client …
ben-millar Oct 13, 2023
438bf37
ES-1477 Enable PodMonitor filtering by metric name (#4866)
davidcurrie Oct 13, 2023
25f5bd4
ES-1491: Update CODEOWNERS file for 5.1 code freeze (#4877)
ronanbrowne Oct 16, 2023
8fab326
CORE-17047 Enable duplicate key detection in group policy parsing (#4…
YashNabar Oct 16, 2023
4b8440d
CORE-17429 State metadata support in message processor (#4828)
mbrkic-r3 Oct 12, 2023
f02e3c4
CORE-16203 Removed coroutine usage from Multi-Source Event Mediator.
mbrkic-r3 Oct 13, 2023
867ec06
CORE-16203 Replace State and Event pattern with Multi-Source Event Me…
mbrkic-r3 Oct 12, 2023
c69a677
CORE-16203 Set linger.ms to 0 for stateAndEvent producer in kafka-mes…
mbrkic-r3 Oct 14, 2023
bbb46df
CORE-17782 Suppress deprecation warning on `findUnconsumedStatesByTyp…
relyafi Oct 16, 2023
3e20992
Merge pull request #4887 from corda/driessamyn/merge-perf-int-work-1
driessamyn Oct 16, 2023
aa14419
CORE-17625 MGM lookups return active platform version in its own Memb…
YashNabar Oct 16, 2023
93771d8
CORE-17487 Parallel flow pipeline and Task Manager (#4731)
lankydan Oct 16, 2023
88d1792
CORE-17661 5.1 Performance integration - Multi-Source Event Mediator …
mbrkic-r3 Oct 14, 2023
9513272
CORE-17483: Fix configuration change smoke test (#4883)
josephzunigadaly Oct 16, 2023
7db834e
Merge pull request #4890 from corda/driessamyn/merge-perf-int-work-2
driessamyn Oct 16, 2023
33a9bf5
CORE-16203 5.1 Performance integration - FlowMapper using Multi-Sourc…
mbrkic-r3 Oct 15, 2023
73887dc
CORE-17562 Metrics for Multi-Source Event Mediator
mbrkic-r3 Oct 15, 2023
b965fd8
CORE-17562 Fixed unit test
mbrkic-r3 Oct 15, 2023
9cef0f3
Merge pull request #4891 from corda/driessamyn/merge-perf-int-work-3
driessamyn Oct 17, 2023
7d2a133
CORE-17514 Change the Link Manager to handle bad group policy (#4854)
williamvigorr3 Oct 17, 2023
704b3c6
CORE-16242 - Synchronous RPC Pattern API Implementation for Crypto Wo…
thiagoviana Oct 16, 2023
7465279
CORE-17822 Apply prefix to topic overrides (#4893)
davidcurrie Oct 17, 2023
cc61a52
CORE-17045 - Membership platform upgrade test (#4817)
nikinagy Oct 17, 2023
017e82b
Merge pull request #4897 from corda/driessamyn/merge-perf-int-work-5
driessamyn Oct 17, 2023
2a6037a
CORE-17627: Add metadata to flow mapper states for mapper status (#4886)
JamesHR3 Oct 17, 2023
041a355
CORE-17388: Add session timeout metadata to store alongside the check…
JamesHR3 Oct 17, 2023
08daa23
CORE-17863: Close db connection pool after getOwnedKeyRecord (#4904)
yift-r3 Oct 17, 2023
40516d8
CORE-17867: Some extra logging for External Messaging (#4906)
vkolomeyko Oct 17, 2023
034c4fa
CORE-17882: Add a route for flow events (#4915)
JamesHR3 Oct 18, 2023
ffc0f34
Disable test.
driessamyn Oct 18, 2023
2adfca3
Merge pull request #4905 from corda/driessamyn/merge-perf-int-work-6
driessamyn Oct 18, 2023
0d868f2
CORE-16181 Implementing RPC client, routing external events through R…
ben-millar Oct 17, 2023
82df696
CORE-17626: Add integration test for flow mapper cleanup (#4907)
JamesHR3 Oct 18, 2023
aaf7973
Create Remove Stale Branches GitHub Action (#4909)
jacob-scott3141 Oct 18, 2023
365d145
Merge pull request #4923 from corda/driessamyn/merge-perf-int-work-7
driessamyn Oct 18, 2023
bed356e
CORE-17843 Flaky test FlowMapperServiceIntegrationTest.testStartRPCDu…
mbrkic-r3 Oct 18, 2023
cb329ab
CORE-17885: Use explicit conversion of session timeout to long (#4927)
JamesHR3 Oct 19, 2023
81316bb
ES-1518: switch to KubernetesAgent class for Jenkins agent definition…
wzur-r3 Oct 20, 2023
ba16ab8
CORE-17837 Add `UtxoSignedLedgerTransactionKryoSerializer` (#4945)
lankydan Oct 20, 2023
fb24af4
CORE-17297: Fix incompatible responder flow failure handling (#4949)
Tom-Fitzpatrick Oct 23, 2023
ea1e893
CORE-17603 move debug log to trace as it is noisey (#4943)
LWogan Oct 23, 2023
667c483
CORE-17411: Workaround when we encounter enriched MGM request (#4946)
vkolomeyko Oct 23, 2023
e011b42
CORE-17881: Individual State Manager Per Worker Type (#4948)
jujoramos Oct 23, 2023
f36fa7f
CORE-17834: Allow empty responses from HTTP RPC (#4937)
josephzunigadaly Oct 23, 2023
8b7e33a
CORE-17867 - Added logging to `VirtualNodeWriteEventHandler` (#4959)
filipesoliveira Oct 23, 2023
5652003
ES-1524: Remove Jenkins MultiCluster Test file from this repo (#4960)
ronanbrowne Oct 24, 2023
549847b
CORE-17899 Add nginx for token selection sharding (#4950)
davidcurrie Oct 24, 2023
2b824f6
CORE-17502 - Helm changes to support token selection + state manager …
owenstanford Oct 25, 2023
9c7d2ea
CORE-17502 - revert jenkins import refs (#4968)
owenstanford Oct 25, 2023
b48fc3c
ES-1477 Add default metrics (#4953)
davidcurrie Oct 25, 2023
8be576d
CORE-17883 Moving status code check to HTTPRetryExecutor, retrying on…
ben-millar Oct 25, 2023
56ed03d
CORE-17932 ensure the flow service depends on the membership group re…
LWogan Oct 25, 2023
b1d7e31
- Increase max request payload (#4972)
driessamyn Oct 25, 2023
8469a8f
CORE-17779 add metric for a HTTP RPC Client request (#4901)
LWogan Oct 25, 2023
6281ecc
CORE-17389: Process flow timeout events and clean up checkpoints (#4951)
JamesHR3 Oct 25, 2023
f8261e3
CORE-17950 make start flow events idempotent (#4965)
LWogan Oct 25, 2023
4867017
CORE-17963: add lock around sandbox (#4973)
dickon Oct 25, 2023
55af914
CORE-17502: Add token selection HTTP RPC (#4910)
owenstanford Oct 25, 2023
c706f7c
CORE-17768 Topology changes - Use new topics (#4931)
mbrkic-r3 Oct 25, 2023
90c857a
CORE-17951 - fibre cache staleness check (#4967)
driessamyn Oct 25, 2023
35d17ae
CORE-17733 - SM to update via JDBC in batch (#4935)
conalsmith-r3 Oct 26, 2023
609ad70
CORE-18016 rebalance in progress exception should be a transient issu…
LWogan Oct 26, 2023
946cde9
CORE-17930 - Automated re-registrations triggered by CPI upgrade are …
nikinagy Oct 26, 2023
a22c9cb
CORE-18014 When a token selection process request fails, due to a sta…
owenstanford Oct 26, 2023
1de54e6
CORE-18015 Fixed issue where byte array message keys were not added t…
owenstanford Oct 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 15 additions & 10 deletions .ci/PublishHelmChart/Jenkinsfile_PublishHelmChart
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
#! groovy
@Library('[email protected]') _

import com.r3.build.agents.KubernetesAgent
import com.r3.build.enums.BuildEnvironment
import com.r3.build.enums.KubernetesCluster
import com.r3.build.utils.PublishingUtils

int cpus = 1
BuildEnvironment buildEnvironment = BuildEnvironment.AMD64_LINUX_JAVA17
/**
* Jenkins Kubernetes agent
*/
KubernetesAgent k8s = new KubernetesAgent(
BuildEnvironment.AMD64_LINUX_JAVA17,
KubernetesCluster.JenkinsAgents,
1
)

PublishingUtils publishingUtils = new PublishingUtils(this)

pipeline {
agent {
kubernetes {
cloud "eks-e2e"
yaml kubernetesBuildAgentYaml('build', buildEnvironment, cpus)
cloud k8s.buildCluster.cloudName
yaml k8s.JSON
yamlMergeStrategy merge() // important to keep tolerations from the inherited template
idleMinutes 15
podRetention always()
label ([
"gradle-build",
"${cpus}cpus",
"${buildEnvironment.jenkinsLabel}"
].join('-'))
nodeSelector k8s.nodeSelector
label k8s.jenkinsLabel
showRawYaml false
defaultContainer 'build'
defaultContainer k8s.defaultContainer.name
}
}

Expand Down
2 changes: 1 addition & 1 deletion .ci/e2eTests/JenkinsfileCombinedWorker
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pipeline {
REST_TLS_PATH = "${env.WORKSPACE}/applications/workers/release/combined-worker/tls/rest/rest_worker.pfx"
VM_PARAMETERS = "-Dco.paralleluniverse.fibers.verifyInstrumentation=true"
LOG4J_PARAMETERS = "-Dlog4j.configurationFile=log4j2-console.xml"
PROGRAM_PARAMETERS = "--instance-id=0 -mbus.busType=DATABASE -spassphrase=password -ssalt=salt -ddatabase.user=u${postgresDb} -ddatabase.pass=password -ddatabase.jdbc.url=jdbc:postgresql://${postgresHost}:${postgresPort}/${postgresDb} -ddatabase.jdbc.directory=${JDBC_PATH} -rtls.keystore.path=${REST_TLS_PATH} -rtls.keystore.password=mySecretPassword --serviceEndpoint=endpoints.crypto=localhost:7004 --serviceEndpoint=endpoints.verification=localhost:7004 --serviceEndpoint=endpoints.uniqueness=localhost:7004 --serviceEndpoint=endpoints.persistence=localhost:7004"
PROGRAM_PARAMETERS = "--instance-id=0 -mbus.busType=DATABASE -spassphrase=password -ssalt=salt -ddatabase.user=u${postgresDb} -ddatabase.pass=password -ddatabase.jdbc.url=jdbc:postgresql://${postgresHost}:${postgresPort}/${postgresDb} -ddatabase.jdbc.directory=${JDBC_PATH} -rtls.keystore.path=${REST_TLS_PATH} -rtls.keystore.password=mySecretPassword --serviceEndpoint=endpoints.crypto=localhost:7004 --serviceEndpoint=endpoints.verification=localhost:7004 --serviceEndpoint=endpoints.uniqueness=localhost:7004 --serviceEndpoint=endpoints.persistence=localhost:7004 --serviceEndpoint=endpoints.tokenSelection=localhost:7004"
WORKING_DIRECTORY = "${env.WORKSPACE}"
}
steps {
Expand Down
10 changes: 0 additions & 10 deletions .ci/e2eTests/JenkinsfileMultiClusterTest

This file was deleted.

49 changes: 49 additions & 0 deletions .ci/e2eTests/corda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@ bootstrap:
valueFrom:
secretKeyRef:
key: "postgres-password"
stateManager:
flow:
username:
value: "state-manager-user"
password:
valueFrom:
secretKeyRef:
key: "password"
flowMapper:
username:
value: "state-manager-user"
password:
valueFrom:
secretKeyRef:
key: "password"
tokenSelection:
username:
value: "state-manager-user"
password:
valueFrom:
secretKeyRef:
key: "password"
kafka:
sasl:
username:
Expand Down Expand Up @@ -73,6 +95,15 @@ workers:
secretKeyRef:
name: "kafka-credentials"
key: "flow"
stateManager:
db:
name: state-manager
username:
value: "state-manager-user"
password:
valueFrom:
secretKeyRef:
key: "password"
flowMapper:
kafka:
sasl:
Expand All @@ -83,6 +114,15 @@ workers:
secretKeyRef:
name: "kafka-credentials"
key: "flowMapper"
stateManager:
db:
name: state-manager
username:
value: "state-manager-user"
password:
valueFrom:
secretKeyRef:
key: "password"
verification:
kafka:
sasl:
Expand Down Expand Up @@ -143,6 +183,15 @@ workers:
secretKeyRef:
name: "kafka-credentials"
key: "tokenSelection"
stateManager:
db:
name: state-manager
username:
value: "state-manager-user"
password:
valueFrom:
secretKeyRef:
key: "password"
rest:
kafka:
sasl:
Expand Down
108 changes: 1 addition & 107 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,107 +1 @@

# Build scripts should be audited by BLT

Jenkinsfile @corda/blt
.ci/** @corda/blt

*.gradle @corda/blt
gradle.properties @corda/corda5-team-leads
gradle/* @corda/blt

.github/** @corda/blt
CODEOWNERS @corda/blt @corda/corda5-team-leads

# Modules to be audited by REST team
/applications/workers/release/rest-worker/ @corda/rest
/components/rest-gateway-comp/ @corda/rest
/components/permissions/ @corda/rest
/components/rbac-security-manager-service/ @corda/rest
/libs/rest/ @corda/rest
/libs/permissions/ @corda/rest
/processors/rest-processor/ @corda/rest
/tools/plugins/initial-rbac/ @corda/rest
/tools/plugins/plugins-rest/ @corda/rest
/tools/plugins/virtual-node/ @corda/rest

# Corda Helm chart for cluster management team
/charts/corda/ @corda/cluster-management

# Modules to be audited by the Network team
/applications/workers/release/p2p-gateway-worker/ @corda/corda-platform-network-team
/applications/workers/release/p2p-link-manager-worker/ @corda/corda-platform-network-team
/applications/workers/release/member-worker/ @corda/corda-platform-network-team
/processors/link-manager-processor/ @corda/corda-platform-network-team
/processors/gateway-processor/ @corda/corda-platform-network-team
/processors/member-processor/ @corda/corda-platform-network-team
/components/gateway/ @corda/corda-platform-network-team
/components/link-manager/ @corda/corda-platform-network-team
/components/membership/ @corda/corda-platform-network-team
/libs/membership/ @corda/corda-platform-network-team
/libs/p2p-crypto/ @corda/corda-platform-network-team
/libs/layered-property-map/ @corda/corda-platform-network-team
/tools/plugins/mgm/ @corda/corda-platform-network-team
/tools/plugins/network/ @corda/corda-platform-network-team
/applications/tools/p2p-test/ @corda/corda-platform-network-team

# Modules to be audited by Sandboxing SMEs
/components/security-manager/ @corda/sandboxing
/components/virtual-node/sandbox-* @corda/sandboxing
/components/sandbox* @corda/sandboxing
/libs/virtual-node/sandbox-* @corda/sandboxing
/osgi-* @corda/sandboxing
/testing/sandboxes/ @corda/sandboxing
/testing/sandboxes-testkit/ @corda/sandboxing
/testing/security-manager-utilities/ @corda/sandboxing

# Modules to be audited by Crypto SMEs
/components/crypto/ @corda/crypto
/libs/crypto/ @corda/crypto
/processors/crypto/ @corda/crypto

# Modules to be audited by Packaging SMEs
/components/chunking/ @corda/packaging
/components/virtual-node/cpi-* @corda/packaging
/components/virtual-node/cpk-* @corda/packaging
/libs/chunking/ @corda/packaging
/libs/packaging/ @corda/packaging
/libs/serialization/ @corda/packaging
/libs/virtual-node/cpi-* @corda/packaging
/testing/packaging-test-utilities/ @corda/packaging
/tools/plugins/package @corda/packaging

# Modules to be audited by DB SMEs
/components/db/ @corda/db
/components/persistence/ @corda/db
/components/reconciliation/ @corda/db
/libs/db/ @corda/db
/processors/db/ @corda/db
/testing/persistence-testkit/ @corda/db
/tools/plugins/db-config @corda/db

# Modules to be audited by Flow Worker team
/components/flow/ @corda/flow-worker
/libs/flows/ @corda/flow-worker
/libs/lifecycle/ @corda/flow-worker
/libs/messaging/ @corda/flow-worker
/libs/application/application-impl/ @corda/flow-worker
/processors/flow-processor/ @corda/flow-worker
/testing/flow/ @corda/flow-worker
/testing/message-patterns/ @corda/flow-worker
/applications/workers/release/flow-worker @corda/flow-worker

# Modules to be audited by Ledger SMEs
/components/ledger/ @corda/ledger
/libs/ledger/ @corda/ledger
/testing/ledger/ @corda/ledger

# Modules to be audited by Notary SMEs
/components/uniqueness/ @corda/notaries
/libs/uniqueness/ @corda/notaries
/notary-plugins/ @corda/notaries
/processors/uniqueness-processor/ @corda/notaries
/testing/uniqueness/ @corda/notaries

# Ledger token selection files to be reviewed by the REST team
# This needs to be after the ledger rules to partially override those
/components/ledger/ledger-utxo-token-cache @corda/rest
/components/ledger/ledger-utxo-flow/src/main/kotlin/net/corda/ledger/utxo/impl/token @corda/rest
* @driessamyn @jasonbyrner3 @dimosr @ronanbrowne @rick-r3 @simon-johnson-r3 @blsemo @Omar-awad @aditisdesai @vinir3 @vkolomeyko @thiagoviana @Sakpal
19 changes: 19 additions & 0 deletions .github/workflows/remove-stale-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Remove stale branches'
on:
schedule:
- cron: '0 0 * * 1-5'

jobs:
remove-stale-branches:
name: Remove stale branches
runs-on: ubuntu-latest
steps:
- uses: fpicalausa/[email protected]
with:
dry-run: true
days-before-branch-stale: 30
days-before-branch-delete: 14
stale-branch-message: "@{author} The branch [{branchName}]({branchUrl}) hasn't been updated in the last 30 days and is marked as stale. It will be removed in 14 days.\r\nIf you want to keep this branch around, delete this comment or add new commits to this branch."
exempt-protected-branches: true
exempt-branches-regex: "^(release\\/|feature\\/|poc\\/).*"
operations-per-run: 30
2 changes: 1 addition & 1 deletion .run/Combined Worker Local.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="Combined Worker Local" type="JarApplication">
<option name="JAR_PATH" value="$PROJECT_DIR$/applications/workers/release/combined-worker/build/bin/corda-combined-worker-5.1.0.0-SNAPSHOT.jar" />
<option name="VM_PARAMETERS" value="-Dco.paralleluniverse.fibers.verifyInstrumentation=true" />
<option name="PROGRAM_PARAMETERS" value="--instance-id=0 -mbus.busType=DATABASE -spassphrase=password -ssalt=salt -spassphrase=password -ssalt=salt -ddatabase.user=user -ddatabase.pass=password -ddatabase.jdbc.url=jdbc:postgresql://localhost:5432/cordacluster -ddatabase.jdbc.directory=$ProjectFileDir$/applications/workers/release/combined-worker/drivers -rtls.crt.path=$ProjectFileDir$/applications/workers/release/combined-worker/tls/rest/server.crt -rtls.key.path=$ProjectFileDir$/applications/workers/release/combined-worker/tls/rest/server.key -rtls.ca.crt.path=$ProjectFileDir$/applications/workers/release/combined-worker/tls/rest/ca-chain-bundle.crt --serviceEndpoint=endpoints.crypto=localhost:7004 --serviceEndpoint=endpoints.verification=localhost:7004 --serviceEndpoint=endpoints.uniqueness=localhost:7004 --serviceEndpoint=endpoints.persistence=localhost:7004" />
<option name="PROGRAM_PARAMETERS" value="--instance-id=0 -mbus.busType=DATABASE -spassphrase=password -ssalt=salt -spassphrase=password -ssalt=salt -ddatabase.user=user -ddatabase.pass=password -ddatabase.jdbc.url=jdbc:postgresql://localhost:5432/cordacluster -ddatabase.jdbc.directory=$ProjectFileDir$/applications/workers/release/combined-worker/drivers -rtls.crt.path=$ProjectFileDir$/applications/workers/release/combined-worker/tls/rest/server.crt -rtls.key.path=$ProjectFileDir$/applications/workers/release/combined-worker/tls/rest/server.key -rtls.ca.crt.path=$ProjectFileDir$/applications/workers/release/combined-worker/tls/rest/ca-chain-bundle.crt --serviceEndpoint=endpoints.crypto=localhost:7004 --serviceEndpoint=endpoints.verification=localhost:7004 --serviceEndpoint=endpoints.uniqueness=localhost:7004 --serviceEndpoint=endpoints.persistence=localhost:7004 --serviceEndpoint=endpoints.tokenSelection=localhost:7004" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
<option name="ALTERNATIVE_JRE_PATH" />
<method v="2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import net.corda.libs.packaging.core.CpkMetadata
import net.corda.messaging.api.records.Record
import net.corda.osgi.api.Application
import net.corda.osgi.api.Shutdown
import net.corda.schema.Schemas.Flow.FLOW_EVENT_TOPIC
import net.corda.schema.Schemas.Flow.FLOW_START
import net.corda.schema.configuration.ConfigKeys.FLOW_CONFIG
import net.corda.schema.configuration.FlowConfig.PROCESSING_FLOW_CLEANUP_TIME
import net.corda.schema.configuration.FlowConfig.PROCESSING_MAX_FLOW_SLEEP_DURATION
Expand Down Expand Up @@ -172,11 +172,11 @@ class CordaVNode @Activate constructor(

val rpcStartFlow = createRPCStartFlow(clientId, vnodeInfo.toAvro())
val flowId = generateRandomId()
val record = Record(FLOW_EVENT_TOPIC, flowId, FlowEvent(flowId, rpcStartFlow))
val record = Record(FLOW_START, flowId, FlowEvent(flowId, rpcStartFlow))
flowEventProcessorFactory.create(mapOf(FLOW_CONFIG to smartConfig)).apply {
val result = onNext(null, record)
result.responseEvents.singleOrNull { evt ->
evt.topic == FLOW_EVENT_TOPIC
evt.topic == FLOW_START
}?.also { evt ->
@Suppress("unchecked_cast")
onNext(result.updatedState, evt as Record<String, FlowEvent>)
Expand Down
1 change: 0 additions & 1 deletion applications/workers/release/db-worker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies {
// Processor list must be kept in sync with workersForProcessor in net.corda.cli.plugins.topicconfig.Create
implementation project(':processors:db-processor')
implementation project(':processors:scheduler-processor')
implementation project(':processors:token-cache-processor')
implementation 'org.jetbrains.kotlin:kotlin-osgi-bundle'
implementation "info.picocli:picocli:$picocliVersion"
implementation 'net.corda:corda-base'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import net.corda.osgi.api.Application
import net.corda.osgi.api.Shutdown
import net.corda.processors.db.DBProcessor
import net.corda.processors.scheduler.SchedulerProcessor
import net.corda.processors.token.cache.TokenCacheProcessor
import net.corda.schema.configuration.BootConfig.BOOT_DB
import net.corda.tracing.configureTracing
import net.corda.tracing.shutdownTracing
Expand All @@ -36,8 +35,6 @@ import picocli.CommandLine.Option
class DBWorker @Activate constructor(
@Reference(service = DBProcessor::class)
private val processor: DBProcessor,
@Reference(service = TokenCacheProcessor::class)
private val tokenCacheProcessor: TokenCacheProcessor,
@Reference(service = SchedulerProcessor::class)
private val schedulerProcessor: SchedulerProcessor,
@Reference(service = Shutdown::class)
Expand Down Expand Up @@ -69,7 +66,6 @@ class DBWorker @Activate constructor(

JavaSerialisationFilter.install()


val params = getParams(args, DBWorkerParams())

if (printHelpOrVersion(params.defaultParams, DBWorker::class.java, shutDownService)) return
Expand All @@ -86,15 +82,13 @@ class DBWorker @Activate constructor(
)
webServer.start(params.defaultParams.workerServerPort)
processor.start(config)
tokenCacheProcessor.start(config)
schedulerProcessor.start(config)
}

override fun shutdown() {
logger.info("DB worker stopping.")
processor.stop()
webServer.stop()
tokenCacheProcessor.stop()
schedulerProcessor.stop()
shutdownTracing()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class ConfigTests {
val dbWorker = DBWorker(
dbProcessor,
mock(),
mock(),
DummyShutdown(),
DummyLifecycleRegistry(),
DummyWebServer(),
Expand Down Expand Up @@ -99,7 +98,6 @@ class ConfigTests {
val dbWorker = DBWorker(
dbProcessor,
mock(),
mock(),
DummyShutdown(),
DummyLifecycleRegistry(),
DummyWebServer(),
Expand Down Expand Up @@ -133,7 +131,6 @@ class ConfigTests {
val dbWorker = DBWorker(
dbProcessor,
mock(),
mock(),
DummyShutdown(),
DummyLifecycleRegistry(),
DummyWebServer(),
Expand Down Expand Up @@ -166,7 +163,6 @@ class ConfigTests {
val dbWorker = DBWorker(
dbProcessor,
mock(),
mock(),
DummyShutdown(),
DummyLifecycleRegistry(),
DummyWebServer(),
Expand All @@ -193,7 +189,6 @@ class ConfigTests {
val dbWorker = DBWorker(
dbProcessor,
mock(),
mock(),
DummyShutdown(),
DummyLifecycleRegistry(),
DummyWebServer(),
Expand Down
Loading