activities.go ×5

Frontier kind: Joint frontier

unlabeled · c_4c86d933a718

1 test · 3158 LOC · 141 files · introduces 1 test · 23 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges23 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
602 ranges3158 lines · 141 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: 23 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/worker/migration/activities.go 23 introduced LOC · 5 ranges

Open complete file

863 })
864 if err != nil {
865 > if common.IsNotFoundError(err) { activities.go
866 > // The outstanding workflow execution may be deleted (due to retention) on source cluster after replication tasks were generated.
867 > // Since retention runs on both source/target clusters, such execution may also be deleted (hence not found) from target cluster.
868 > a.forceReplicationMetricsHandler.WithTags(metrics.NamespaceTag(request.Namespace)).Counter(metrics.EncounterNotFoundWorkflowCount.Name()).Record(1)
869 > return verifyResult{
870 > status: skipped,
871 > reason: reasonWorkflowNotFound,
872 > }, nil
873 > }
874
875 > return verifyResult{ activities.go
876 > status: notVerified,
877 > }, err
878 }
879
881 // it is skipped to avoid such workflow being processed on the target cluster.
882 if resp.GetDatabaseMutableState().GetExecutionState().GetState() == enumsspb.WORKFLOW_EXECUTION_STATE_ZOMBIE {
883 > a.forceReplicationMetricsHandler.WithTags(metrics.NamespaceTag(request.Namespace)).Counter(metrics.EncounterZombieWorkflowCount.Name()).Record(1) activities.go
884 > a.Logger.Info("createReplicationTasks skip Zombie workflow", tags...)
885 > return verifyResult{
886 > status: skipped,
887 > reason: reasonZombieWorkflow,
888 > }, nil
889 > }
890
891 // Skip verifying workflow which has already passed retention time.
1002 r, err := a.verifySingleReplicationTask(ctx, request, remotAdminClient, ns, we)
1003 if err != nil {
1004 > return false, err activities.go
1005 > }
1006
1007 if !r.isVerified() {
1065 })
1066 if err != nil {
1067 > return response, err activities.go
1068 > }
1069
1070 if verified {