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-20662: update avro to v12 #1716

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ class FlowStatusSchemaCompatibilityTest {

val oldSchema = Schema.Parser()
.addTypes(
mapOf(
FlowKey::class.java.name to FlowKey.`SCHEMA$`,
FlowInitiatorType::class.java.name to FlowInitiatorType.`SCHEMA$`,
ExceptionEnvelope::class.java.name to ExceptionEnvelope.`SCHEMA$`,
listOf(
FlowKey.`SCHEMA$`,
FlowInitiatorType.`SCHEMA$`,
ExceptionEnvelope.`SCHEMA$`
)
)
.parse(oldSchemaJson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ class PipelineStateSchemaCompatibilityTest {

val oldSchema = Schema.Parser()
.addTypes(
mapOf(
SecureHash::class.java.name to SecureHash.`SCHEMA$`,
RetryState::class.java.name to RetryState.`SCHEMA$`,
ExceptionEnvelope::class.java.name to ExceptionEnvelope.`SCHEMA$`,
listOf(
SecureHash.`SCHEMA$`,
RetryState.`SCHEMA$`,
ExceptionEnvelope.`SCHEMA$`
)
)
.parse(oldSchemaJson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ class LedgerPersistenceRequestSchemaCompatibilityTest {

val oldSchema = Schema.Parser()
.addTypes(
mapOf(
HoldingIdentity::class.java.name to HoldingIdentity.`SCHEMA$`,
PersistTransaction::class.java.name to PersistTransaction.`SCHEMA$`,
PersistTransactionIfDoesNotExist::class.java.name to PersistTransactionIfDoesNotExist.`SCHEMA$`,
FindTransaction::class.java.name to FindTransaction.`SCHEMA$`,
FindUnconsumedStatesByType::class.java.name to FindUnconsumedStatesByType.`SCHEMA$`,
ResolveStateRefs::class.java.name to ResolveStateRefs.`SCHEMA$`,
UpdateTransactionStatus::class.java.name to UpdateTransactionStatus.`SCHEMA$`,
FindWithNamedQuery::class.java.name to FindWithNamedQuery.`SCHEMA$`,
FindSignedGroupParameters::class.java.name to FindSignedGroupParameters.`SCHEMA$`,
PersistSignedGroupParametersIfDoNotExist::class.java.name to PersistSignedGroupParametersIfDoNotExist.`SCHEMA$`,
FindSignedLedgerTransaction::class.java.name to FindSignedLedgerTransaction.`SCHEMA$`,
ExternalEventContext::class.java.name to ExternalEventContext.`SCHEMA$`,
listOf(
HoldingIdentity.`SCHEMA$`,
PersistTransaction.`SCHEMA$`,
PersistTransactionIfDoesNotExist.`SCHEMA$`,
FindTransaction.`SCHEMA$`,
FindUnconsumedStatesByType.`SCHEMA$`,
ResolveStateRefs.`SCHEMA$`,
UpdateTransactionStatus.`SCHEMA$`,
FindWithNamedQuery.`SCHEMA$`,
FindSignedGroupParameters.`SCHEMA$`,
PersistSignedGroupParametersIfDoNotExist.`SCHEMA$`,
FindSignedLedgerTransaction.`SCHEMA$`,
ExternalEventContext.`SCHEMA$`
)
)
.parse(oldSchemaJson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class TokenClaimSchemaCompatibilityTest {

val oldSchema = Schema.Parser()
.addTypes(
mapOf(
Token::class.java.name to Token.`SCHEMA$`,
listOf(
Token.`SCHEMA$`,
)
)
.parse(oldSchemaJson)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RegistrationStateTest {
""".trimIndent()

val oldSchema = Schema.Parser()
.addTypes(mapOf(HoldingIdentity::class.java.name to HoldingIdentity.`SCHEMA$`))
.addTypes(listOf(HoldingIdentity.`SCHEMA$`))
.parse(oldSchemaJson)
val newSchema = RegistrationState.`SCHEMA$`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ class HostedIdentityEntryCompatibilityTest {
""".trimIndent()

val schemaV52 = Schema.Parser().addTypes(
mapOf(
HoldingIdentity::class.java.name to HoldingIdentity.`SCHEMA$`,
HostedIdentitySessionKeyAndCert::class.java.name to HostedIdentitySessionKeyAndCert.`SCHEMA$`
listOf(
HoldingIdentity.`SCHEMA$`, HostedIdentitySessionKeyAndCert.`SCHEMA$`
)
).parse(schemaV52Json)
val schemaV521 = HostedIdentityEntry.`SCHEMA$`
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kotlinVersion = "1.8.21"
slf4jVersion = { strictly = "1.7.36" }

# Main implementation dependencies
avroVersion = "1.11.4"
avroVersion = "1.12.0"
apacheCommonsCodecVersion="1.16.1"
commonsCompressVersion = "1.26.0"
bouncycastleVersion = "1.77"
Expand Down
Loading