stream_sender.go ×5
Frontier kind: Code frontier
unlabeled · c_f6ac1dc5ed2f
2 tests · 3718 LOC · 162 files · introduces 0 tests · 24 LOC · 4 files
Introduces — evidence that enters the hierarchy at this concept
Code
9 ranges 24 lines · 4 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
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.
4 files ranked by introduced lines: 24 introduced LOC across 9 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
go.temporal.io/server/service/history/replication/stream_sender_flow_controller_mock.go 10 introduced LOC · 2 ranges
Open complete file
56
57
// Wait mocks base method.
59
>
m . ctrl . T . Helper ()
60
>
ret := m . ctrl . Call ( m , "Wait" , ctx , priority )
61
>
ret0 , _ := ret [ 0 ].( error )
62
>
return ret0
63
>
}
64
65
// Wait indicates an expected call of Wait.
67
>
mr . mock . ctrl . T . Helper ()
68
>
return mr . mock . ctrl . RecordCallWithMethodType ( mr . mock , "Wait" , reflect . TypeOf (( * MockSenderFlowController )( nil ). Wait ), ctx , priority )
69
>
}
go.temporal.io/server/service/history/replication/stream_sender.go 9 introduced LOC · 5 ranges
Open complete file
532
if priority != enumsspb . TASK_PRIORITY_UNSPECIFIED && // case: skip priority check. When priority is unspecified, send all tasks
533
priority != s . getTaskPriority ( item ) { // case: skip task with different priority than this loop
535
}
536
if ! s . shouldProcessTask ( item ) {
567
task . Priority = priority
568
if s . isTieredStackEnabled {
569
>
if err := s . flowController . Wait ( s . server . Context (), priority ); err != nil {
stream_sender.go
570
if errors . Is ( err , context . Canceled ) {
571
return err
707
}
708
709
>
func ( s * StreamSenderImpl ) getTaskPriority ( task tasks . Task ) enumsspb . TaskPriority {
stream_sender.go
710
>
switch t := task .( type ) {
711
>
case * tasks . SyncWorkflowStateTask :
712
>
if t . Priority == enumsspb . TASK_PRIORITY_UNSPECIFIED {
713
return enumsspb . TASK_PRIORITY_LOW
714
}
716
default :
717
return enumsspb . TASK_PRIORITY_HIGH
721
func ( s * StreamSenderImpl ) getTaskTargetCluster ( task tasks . Task ) [] string {
722
switch t := task .( type ) {
724
>
return t . TargetClusters
725
case * tasks . SyncVersionedTransitionTask :
726
return t . TargetClusters
go.temporal.io/server/service/history/tasks/sync_workflow_state_task.go 3 introduced LOC · 1 range
Open complete file
43
}
44
46
>
return a . VisibilityTimestamp
47
>
}
48
49
func ( a * SyncWorkflowStateTask ) SetVisibilityTime ( timestamp time . Time ) {
go.temporal.io/server/service/history/replication/metrics.go 2 introduced LOC · 1 range
Open complete file
49
case enumsspb . TASK_TYPE_REPLICATION_SYNC_ACTIVITY :
50
return metrics . SyncActivityTaskScope
51
>
case enumsspb . TASK_TYPE_REPLICATION_SYNC_WORKFLOW_STATE :
metrics.go
52
>
return metrics . SyncWorkflowStateTaskScope
53
case enumsspb . TASK_TYPE_REPLICATION_HISTORY :
54
return metrics . HistoryReplicationTaskScope