Skip to content

Commit

Permalink
CORE-10598 Add Reconciler for the MemberInfo (#1132)
Browse files Browse the repository at this point in the history
Add new config key for the member info reconciler and migration to add isDeleted to the member info table (as the reconciler requires this).

Corda-runtime-os changes which add the reconciler: #4398
  • Loading branch information
williamvigorr3 authored Aug 16, 2023
1 parent 45aa962 commit fb7db89
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ private ReconciliationConfig() {
public static final String RECONCILIATION_VNODE_INFO_INTERVAL_MS ="vnodeInfoIntervalMs";
public static final String RECONCILIATION_GROUP_PARAMS_INTERVAL_MS = "groupParamsIntervalMs";
public static final String RECONCILIATION_MTLS_MGM_ALLOWED_LIST_INTERVAL_MS = "mtlsMgmAllowedCertificateSubjectsIntervalMs";

public static final String RECONCILIATION_MEMBER_INFO_INTERVAL_MS = "memberInfoIntervalMs";
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@
"minimum": 5000,
"maximum": 2147483647,
"default": 120000
},
"memberInfoIntervalMs": {
"description": "The interval in milliseconds between aligning the Kafka Member Info with the DB Member Info.",
"type": "integer",
"minimum": 5000,
"maximum": 2147483647,
"default": 120000
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
<include file="net/corda/db/schema/vnode-vault/migration/vnode-vault-creation-v1.0.xml"/>
<include file="net/corda/db/schema/vnode-vault/migration/ledger-consensual-creation-v1.0.xml"/>
<include file="net/corda/db/schema/vnode-vault/migration/ledger-utxo-creation-v1.0.xml"/>

<include file="net/corda/db/schema/vnode-vault/migration/vnode-vault-creation-v5.1.xml"/>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
<changeSet author="R3.Corda" id="vnode-vault-creation-v5.1">
<addColumn tableName="vnode_member_info">
<column name="is_deleted" type="BOOLEAN" defaultValueBoolean="false"/>
</addColumn>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ topics:
- membership
- rest
- flow
- db
producers:
- membership
- db
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cordaProductVersion = 5.1.0
# NOTE: update this each time this module contains a breaking change
## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to
## a per module property in which case module versions can change independently.
cordaApiRevision = 12
cordaApiRevision = 13

# Main
kotlinVersion = 1.8.21
Expand Down

0 comments on commit fb7db89

Please sign in to comment.