executable_task.go ×5

Frontier kind: Joint frontier

unlabeled · c_4e622977c99f

1 test · 3475 LOC · 153 files · introduces 1 test · 35 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges35 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
513 ranges3475 lines · 153 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.

3 files ranked by introduced lines: 35 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/replication/executable_task.go 18 introduced LOC · 5 ranges

Open complete file

761 )
762 }
763 > var failedPreconditionErr *serviceerror.FailedPrecondition executable_task.go
764 > if !errors.As(err, &failedPreconditionErr) {
765 return false, err
766 }
767 // Unable to perform sync state. Transition history maybe disabled in source cluster.
768 // Add task equivalents back to source cluster.
769 > taskEquivalents := e.replicationTask.GetRawTaskInfo().GetTaskEquivalents() executable_task.go
770 >
771 > if len(taskEquivalents) == 0 {
772 // Just drop the task since there's nothing to replicate in event-based stack.
773 logger.Info("Dropped replication task as there's no event-based replication task equivalent.")
775 }
776
777 > tasksToAdd := make([]*adminservice.AddTasksRequest_Task, 0, len(taskEquivalents)) executable_task.go
778 > for _, taskEquivalent := range taskEquivalents {
779 > blob, err := e.Serializer.ReplicationTaskInfoToBlob(taskEquivalent)
780 > if err != nil {
781 return false, err
782 }
783
784 > tasksToAdd = append(tasksToAdd, &adminservice.AddTasksRequest_Task{ executable_task.go
785 > CategoryId: tasks.CategoryIDReplication,
786 > Blob: blob,
787 > })
788 }
789
790 > _, err := remoteAdminClient.AddTasks(ctx, &adminservice.AddTasksRequest{ executable_task.go
791 > ShardId: e.sourceShardKey.ShardID,
792 > Tasks: tasksToAdd,
793 > })
794 > return false, err
795 }
796
go.temporal.io/server/api/adminservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

85
86 // AddTasks mocks base method.
87 > func (m *MockAdminServiceClient) AddTasks(ctx context.Context, in *adminservice.AddTasksRequest, opts ...grpc.CallOption) (*adminservice.AddTasksResponse, error) { service_grpc.pb.mock.go
88 > m.ctrl.T.Helper()
89 > varargs := []any{ctx, in}
90 > for _, a := range opts {
91 varargs = append(varargs, a)
92 }
93 > ret := m.ctrl.Call(m, "AddTasks", varargs...) service_grpc.pb.mock.go
94 > ret0, _ := ret[0].(*adminservice.AddTasksResponse)
95 > ret1, _ := ret[1].(error)
96 > return ret0, ret1
97 }
98
99 // AddTasks indicates an expected call of AddTasks.
100 > func (mr *MockAdminServiceClientMockRecorder) AddTasks(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
101 > mr.mock.ctrl.T.Helper()
102 > varargs := append([]any{ctx, in}, opts...)
103 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTasks", reflect.TypeOf((*MockAdminServiceClient)(nil).AddTasks), varargs...)
104 > }
105
106 // CancelDLQJob mocks base method.
go.temporal.io/server/api/persistence/v1/executions.pb.go 4 introduced LOC · 1 range

Open complete file

1966 }
1967
1968 > func (x *ReplicationTaskInfo) GetTaskEquivalents() []*ReplicationTaskInfo { executions.pb.go
1969 > if x != nil {
1970 > return x.TaskEquivalents
1971 > }
1972 return nil
1973 }