update canton to 20240502.13211.v13a6d3c5 (#19131)

tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
This commit is contained in:
azure-pipelines[bot] 2024-05-02 09:25:11 +02:00 committed by GitHub
parent c82a4d813b
commit 6f67a04971
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
21 changed files with 43 additions and 26 deletions

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: CantonExamples

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: ai-analysis

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: bank

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: doctor

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: health-insurance

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: medical-records

View File

@ -216,7 +216,15 @@ class BlockSequencerStateManager(
implicit val traceContext: TraceContext = TraceContext.ofBatch(blockEvents.events)(logger)
// Set the current block height to the new block's height instead of + 1 of the previous value
// so that we support starting from an arbitrary block height
logger.debug(s"Processing block $height")
logger.debug(
s"Processing block $height with ${blockEvents.events.size} block events.${blockEvents.events
.map(_.value)
.collectFirst { case LedgerBlockEvent.Send(timestamp, _) =>
s" First timestamp in block: $timestamp"
}
.getOrElse("")}"
)
currentBlockHeight = height
Seq(Traced(blockEvents))
}
@ -250,7 +258,11 @@ class BlockSequencerStateManager(
.mapAsyncAndDrainUS(parallelism = chunkSigningParallelism)(
_.traverse {
case chunk: ChunkUpdate[UnsignedChunkEvents] =>
chunk.events.parTraverse(bug.signChunkEvents).map(signed => chunk.copy(events = signed))
lazy val signEvents = chunk.events
.parTraverse(bug.signChunkEvents)
.map(signed => chunk.copy(events = signed))
LoggerUtil.clueF(s"Signing ${chunk.events.size} events")(signEvents.unwrap).discard
signEvents
case complete: CompleteBlockUpdate => FutureUnlessShutdown.pure(complete)
}
)
@ -270,7 +282,9 @@ class BlockSequencerStateManager(
case chunk: ChunkUpdate[SignedChunkEvents] =>
val chunkNumber = priorHead.chunk.chunkNumber + 1
LoggerUtil.clueF(
s"Adding block updates for chunk $chunkNumber for block $currentBlockNumber"
s"Adding block updates for chunk $chunkNumber for block $currentBlockNumber. " +
s"Contains ${chunk.events.size} events, ${chunk.acknowledgements.size} acks, ${chunk.newMembers.size} new members, " +
s"and ${chunk.inFlightAggregationUpdates.size} in-flight aggregation updates"
)(handleChunkUpdate(priorHead, chunk, dbSequencerIntegration)(traceContext))
case complete: CompleteBlockUpdate =>
LoggerUtil.clueF(

View File

@ -198,12 +198,13 @@ class BlockUpdateGeneratorImpl(
)
FutureUnlessShutdown.pure(newState -> update)
case NextChunk(height, index, events) =>
processChunk(height, state, events)
processChunk(height, index, state, events)
}
}
private def processChunk(
height: Long,
index: Int,
state: State,
chunk: NonEmpty[Seq[Traced[LedgerBlockEvent]]],
)(implicit
@ -221,11 +222,13 @@ class BlockUpdateGeneratorImpl(
case send: LedgerBlockEvent.Send =>
val ts = ensureStrictlyIncreasingTimestamp(lastTs, send.timestamp)
logger.info(
show"Observed Send with messageId ${send.signedSubmissionRequest.content.messageId.singleQuoted} in block $height and assigned it timestamp $ts"
show"Observed Send with messageId ${send.signedSubmissionRequest.content.messageId.singleQuoted} in block $height, chunk $index and assigned it timestamp $ts"
)(event.traceContext)
(ts, (ts, event) +: events)
case _ =>
logger.info(s"Observed ${event.value} in block $height at timestamp $lastTs")(
logger.info(
s"Observed ${event.value} in block $height, chunk $index at timestamp $lastTs"
)(
event.traceContext
)
(lastTs, (lastTs, event) +: events)
@ -303,7 +306,7 @@ class BlockUpdateGeneratorImpl(
.get(member)
.fold {
logger.debug(
s"Ack at $timestamp for $member being ignored because the member has not yet been registered."
s"Ack at $timestamp for $member (block $height, chunk $index) being ignored because the member has not yet been registered."
)
membersMap
} { memberStatus =>

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --enable-interfaces=yes
name: carbonv1-tests

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --enable-interfaces=yes
name: carbonv2-tests

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
name: experimental-tests
source: .
version: 3.1.0

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --enable-interfaces=yes
name: model-tests

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
name: package-management-tests
source: .
version: 3.1.0

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --enable-interfaces=yes
name: semantic-tests

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
name: upgrade-tests
source: .
version: 1.0.0

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
name: upgrade-tests
source: .
version: 2.0.0

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
name: upgrade-tests
source: .
version: 3.0.0

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: JsonEncodingTest

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.dev
name: JsonEncodingTestDev

View File

@ -1,4 +1,4 @@
sdk-version: 3.1.0-snapshot.20240429.13039.0.vb3fa897d
sdk-version: 3.1.0-snapshot.20240430.13043.0.vb4009e3c
build-options:
- --target=2.1
name: AdminWorkflows

View File

@ -1 +1 @@
20240501.13207.vafd1841e
20240502.13211.v13a6d3c5