visibility_queue_task_executor.go ×10

Frontier kind: Joint frontier

unlabeled · c_c707138c4add

1 test · 9949 LOC · 266 files · introduces 1 test · 27 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges27 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2204 ranges9949 lines · 266 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

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.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 27 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/visibility_queue_task_executor.go 27 introduced LOC · 10 ranges

Open complete file

310 }
311 // If there are no memo nor search attributes, then no clean up is necessary.
312 > if len(request.Memo.GetFields()) == 0 && len(request.SearchAttributes.GetIndexedFields()) == 0 { visibility_queue_task_executor.go
313 return false
314 }
315 > minSize := t.relocateAttributesMinBlobSize(request.Namespace.String()) visibility_queue_task_executor.go
316 > return request.Memo.Size()+request.SearchAttributes.Size() >= minSize
317 }
318
686 ctx context.Context,
687 task *tasks.CloseExecutionVisibilityTask,
688 > ) (retError error) { visibility_queue_task_executor.go
689 > ctx, cancel := context.WithTimeout(ctx, taskTimeout)
690 > defer cancel()
691 >
692 > weContext, release, err := getWorkflowExecutionContextForTask(ctx, t.shardContext, t.cache, task)
693 > if err != nil {
694 return err
695 }
696 > defer func() { release(retError) }() visibility_queue_task_executor.go
697
698 > mutableState, err := weContext.LoadMutableState(ctx, t.shardContext) visibility_queue_task_executor.go
699 > if err != nil {
700 return err
701 }
702 > if mutableState == nil || mutableState.IsWorkflowExecutionRunning() { visibility_queue_task_executor.go
703 return nil
704 }
705
706 > closeVersion, err := mutableState.GetCloseVersion() visibility_queue_task_executor.go
707 > if err != nil {
708 return err
709 }
710 > err = CheckTaskVersion(t.shardContext, t.logger, mutableState.GetNamespaceEntry(), closeVersion, task.Version, task) visibility_queue_task_executor.go
711 > if err != nil {
712 return err
713 }
714
715 > executionInfo := mutableState.GetExecutionInfo() visibility_queue_task_executor.go
716 > executionInfo.Memo = nil
717 > executionInfo.SearchAttributes = nil
718 > executionInfo.RelocatableAttributesRemoved = true
719 >
720 > if t.shardContext.GetConfig().EnableUpdateWorkflowModeIgnoreCurrent() {
721 > return weContext.UpdateWorkflowExecutionAsPassive(ctx, t.shardContext)
722 > }
723
724 // TODO: remove following code once EnableUpdateWorkflowModeIgnoreCurrent config is deprecated.