var err error
switch task := task.(type) {
err = t.processStartExecution(ctx, task)
case *tasks.UpsertExecutionVisibilityTask:
err = t.processUpsertExecution(ctx, task)
Frontier kind: Code frontier
unlabeled · c_665d1e2a0024
11 tests · 6890 LOC · 220 files · introduces 0 tests · 43 LOC · 3 files
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/rpc/interceptor/TestMethodToPatternMappinggo.temporal.io/server/common/rpc/interceptor/TestNamespaceSuite/TestFrontendAPIMetricsgo.temporal.io/server/common/rpc/interceptor/TestNamespaceSuite/TestHistoryAPIMetricsgo.temporal.io/server/common/rpc/interceptor/TestNamespaceSuite/TestMatchingAPIMetricsgo.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/TestAPIToPriorityMappinggo.temporal.io/server/common/future/TestFutureSuite/TestGetWhenContextCanceledgo.temporal.io/server/common/future/TestFutureSuite/TestSetGetReady_Sequentialgo.temporal.io/server/common/future/TestFutureSuite/TestSetReadyGet_Parallelgo.temporal.io/server/common/future/TestFutureSuite/TestSetReadyGet_SequentialEvery 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.
3 files ranked by introduced lines: 43 introduced LOC across 11 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
var err error
switch task := task.(type) {
err = t.processStartExecution(ctx, task)
case *tasks.UpsertExecutionVisibilityTask:
err = t.processUpsertExecution(ctx, task)
ctx context.Context,
task *tasks.StartExecutionVisibilityTask,
ctx, cancel := context.WithTimeout(ctx, taskTimeout)
defer cancel()
namespaceEntry, err := t.shardContext.GetNamespaceRegistry().
GetNamespaceByID(namespace.ID(task.GetNamespaceID()))
if err != nil {
return err
}
weContext, release, err := getWorkflowExecutionContextForTask(ctx, t.shardContext, t.cache, task)
visibility_queue_task_executor.go
if err != nil {
return err
}
mutableState, err := weContext.LoadMutableState(ctx, t.shardContext)
visibility_queue_task_executor.go
if err != nil {
return err
}
if mutableState == nil || !mutableState.IsWorkflowExecutionRunning() {
visibility_queue_task_executor.go
return nil
}
// verify task version for RecordWorkflowStarted.
// upsert doesn't require verifyTask, because it is just a sync of mutableState.
if err != nil {
return err
}
err = CheckTaskVersion(t.shardContext, t.logger, mutableState.GetNamespaceEntry(), startVersion, task.Version, task)
visibility_queue_task_executor.go
if err != nil {
return err
}
task,
namespaceEntry,
mutableState,
mutableState.GetExecutionInfo().Memo,
mutableState.GetExecutionInfo().SearchAttributes,
)
// NOTE: do not access anything related mutable state after this lock release
// release the context lock since we no longer need mutable state and
// the rest of logic is making RPC call, which takes time.
release(nil)
return t.visibilityMgr.RecordWorkflowExecutionStarted(
ctx,
&manager.RecordWorkflowExecutionStartedRequest{
VisibilityRequestBase: requestBase,
},
)
}
}
return t.TaskID
}
func (t *StartExecutionVisibilityTask) SetTaskID(id int64) {
) string {
switch task.(type) {
return metrics.TaskTypeVisibilityTaskStartExecution
case *tasks.UpsertExecutionVisibilityTask:
return metrics.TaskTypeVisibilityTaskUpsertExecution