stream_sender.go ×3

Frontier kind: Code frontier

unlabeled · c_ecc9ed6d0aac

8 tests · 3434 LOC · 156 files · introduces 0 tests · 39 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges39 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
480 ranges3434 lines · 156 files · Browse complete extent
All tests (intent)
8 testsBrowse 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.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

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

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

go.temporal.io/server/service/history/replication/stream_sender.go 22 introduced LOC · 3 ranges

Open complete file

489 }
490
491 > callerInfo := getReplicaitonCallerInfo(priority) stream_sender.go
492 > ctx := headers.SetCallerInfo(s.server.Context(), callerInfo)
493 > iter, err := s.historyEngine.GetReplicationTasksIter(
494 > ctx,
495 > string(s.clientShardKey.ClusterID),
496 > beginInclusiveWatermark,
497 > endExclusiveWatermark,
498 > )
499 > if err != nil {
500 return err
501 }
502 > skipCount := 0 stream_sender.go
503 > Loop:
504 > for iter.HasNext() {
505 if s.shutdownChan.IsShutdown() {
506 return nil
652 }
653 }
654 > return s.sendToStream(&historyservice.StreamWorkflowReplicationMessagesResponse{ stream_sender.go
655 > Attributes: &historyservice.StreamWorkflowReplicationMessagesResponse_Messages{
656 > Messages: &replicationspb.WorkflowReplicationMessages{
657 > ReplicationTasks: nil,
658 > ExclusiveHighWatermark: endExclusiveWatermark,
659 > ExclusiveHighWatermarkTime: timestamp.TimeNowPtrUtc(),
660 > Priority: priority,
661 > },
662 > },
663 > })
664 }
665
go.temporal.io/server/service/history/interfaces/engine_mock.go 11 introduced LOC · 2 ranges

Open complete file

266
267 // GetReplicationTasksIter mocks base method.
268 > func (m *MockEngine) GetReplicationTasksIter(ctx context.Context, pollingCluster string, minInclusiveTaskID, maxExclusiveTaskID int64) (collection.Iterator[tasks.Task], error) { engine_mock.go
269 > m.ctrl.T.Helper()
270 > ret := m.ctrl.Call(m, "GetReplicationTasksIter", ctx, pollingCluster, minInclusiveTaskID, maxExclusiveTaskID)
271 > ret0, _ := ret[0].(collection.Iterator[tasks.Task])
272 > ret1, _ := ret[1].(error)
273 > return ret0, ret1
274 > }
275
276 // GetReplicationTasksIter indicates an expected call of GetReplicationTasksIter.
277 > func (mr *MockEngineMockRecorder) GetReplicationTasksIter(ctx, pollingCluster, minInclusiveTaskID, maxExclusiveTaskID any) *gomock.Call { engine_mock.go
278 > mr.mock.ctrl.T.Helper()
279 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReplicationTasksIter", reflect.TypeOf((*MockEngine)(nil).GetReplicationTasksIter), ctx, pollingCluster, minInclusiveTaskID, maxExclusiveTaskID)
280 > }
281
282 // GetWorkflowExecutionHistory mocks base method.
go.temporal.io/server/api/historyservicemock/v1/service_grpc.pb.mock.go 6 introduced LOC · 1 range

Open complete file

2973
2974 // Context mocks base method.
2975 > func (m *MockHistoryService_StreamWorkflowReplicationMessagesServer) Context() context.Context { service_grpc.pb.mock.go
2976 > m.ctrl.T.Helper()
2977 > ret := m.ctrl.Call(m, "Context")
2978 > ret0, _ := ret[0].(context.Context)
2979 > return ret0
2980 > }
2981
2982 // Context indicates an expected call of Context.