stream_receiver.go ×1

Frontier kind: Joint frontier

unlabeled · c_126c11142beb

2 tests · 3406 LOC · 147 files · introduces 2 tests · 8 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range8 lines · 1 files
Tests
2 tests

Contains — complete concept membership

All code (extent)
469 ranges3406 lines · 147 files · Browse complete extent
All tests (intent)
2 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.

2 tests introduced at this concept.

Introduced code

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

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

go.temporal.io/server/service/history/replication/stream_receiver.go 8 introduced LOC · 1 range

Open complete file

247 case ReceiverModeTieredStack:
248 if highPriorityWaterMarkInfo == nil || lowPriorityWaterMarkInfo == nil {
249 > // This is to prevent the case: high priority task tracker received a batch of tasks, but low priority task tracker did not get any task yet. stream_receiver.go
250 > // i.e. HighPriorityTracker received watermark 10 and LowPriorityTracker did not receive any tasks yet.
251 > // we should avoid ack with {high: 10, low: nil}. If we do, sender will not able to correctly interpret the overall low watermark of the queue,
252 > // because it is possible that low priority tracker might receive a batch of tasks with watermark 5 later.
253 > // It is also true for the opposite case.
254 > r.logger.Warn("Tiered stack mode. Have to wait for both high and low priority tracker received at least one batch of tasks before acking.")
255 > return 0, nil
256 > }
257 highPriorityFlowControlInfo := r.flowController.GetFlowControlInfo(enumsspb.TASK_PRIORITY_HIGH)
258 if highPriorityFlowControlInfo.Command == enumsspb.REPLICATION_FLOW_CONTROL_COMMAND_PAUSE {