newRunHistory []*historypb.HistoryEvent,
newRunID string,
for i := 0; i < len(history)-1; i++ {
_, err := b.applyEvents(ctx, namespaceID, requestID, execution, history[i], nil, "")
if err != nil {
Frontier kind: Code frontier
unlabeled · c_b6f0e4acf5eb
54 tests · 4139 LOC · 186 files · introduces 0 tests · 39 LOC · 1 file
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedgo.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 39 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
newRunHistory []*historypb.HistoryEvent,
newRunID string,
for i := 0; i < len(history)-1; i++ {
_, err := b.applyEvents(ctx, namespaceID, requestID, execution, history[i], nil, "")
if err != nil {
}
}
newMutableState, err := b.applyEvents(ctx, namespaceID, requestID, execution, history[len(history)-1], newRunHistory, newRunID)
mutable_state_rebuilder.go
if err != nil {
return nil, err
}
newRunHistory []*historypb.HistoryEvent,
newRunID string,
if len(history) == 0 {
return nil, serviceerror.NewInternal(ErrMessageHistorySizeZero)
}
lastEvent := history[len(history)-1]
taskGenerator := GetTaskGeneratorProvider().NewTaskGenerator(b.shard, b.mutableState)
// Need to clear the sticky task queue because workflow turned to passive.
b.mutableState.ClearStickyTaskQueue()
executionInfo := b.mutableState.GetExecutionInfo()
executionInfo.LastFirstEventId = firstEvent.GetEventId()
// Preserve the WorkflowTaskStamp during rebuild to ensure workflow task validation works correctly.
// The stamp is used to invalidate stale workflow tasks and must be maintained across rebuilds.
// Note: The stamp is already persisted in the execution info and should not be reset here.
// NOTE: stateRebuilder is also being used in the active side
if err := b.mutableState.UpdateCurrentVersion(lastEvent.GetVersion(), true); err != nil {
return nil, err
}
versionHistory, err := versionhistory.GetCurrentVersionHistory(versionHistories)
if err != nil {
return nil, err
}
if err := versionhistory.AddOrUpdateVersionHistoryItem(versionHistory, versionhistory.NewVersionHistoryItem(
mutable_state_rebuilder.go
lastEvent.GetEventId(),
lastEvent.GetVersion(),
)); err != nil {
return nil, err
}
// [history] is a single persistence batch, so firstEvent.EventId is the batch ID for every
// event applied below. Event definitions that generate load tokens (e.g. NexusOperationScheduled)
// read this via GenerateEventLoadToken to find the original batch ID.
b.mutableState.SetReplayEventBatchID(firstEvent.GetEventId())
for _, event := range history {
switch event.GetEventType() {
case enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED:
attributes := event.GetWorkflowExecutionStartedEventAttributes()