queue_base.go ×5

Frontier kind: Code frontier

unlabeled · c_543395112ab1

4 tests · 4628 LOC · 199 files · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
744 ranges4628 lines · 199 files · Browse complete extent
All tests (intent)
4 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.

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

go.temporal.io/server/service/history/queues/queue_base.go 20 introduced LOC · 5 ranges

Open complete file

342 if newExclusiveDeletionHighWatermark.CompareTo(p.exclusiveDeletionHighWatermark) > 0 ||
343 (p.updateShardRangeID() && newExclusiveDeletionHighWatermark.CompareTo(tasks.MinimumKey) > 0) {
344 > // When shard rangeID is updated, perform range completion again in case the underlying persistence implementation queue_base.go
345 > // serves traffic based on the persisted shardInfo.
346 > err := p.rangeCompleteTasks(p.exclusiveDeletionHighWatermark, newExclusiveDeletionHighWatermark)
347 > if err != nil {
348 p.resetCheckpointTimer(err)
349 return
350 }
351
352 > p.exclusiveDeletionHighWatermark = newExclusiveDeletionHighWatermark queue_base.go
353 }
354
369 oldExclusiveDeletionHighWatermark tasks.Key,
370 newExclusiveDeletionHighWatermark tasks.Key,
371 > ) error { queue_base.go
372 > if p.category.Type() == tasks.CategoryTypeScheduled {
373 > oldExclusiveDeletionHighWatermark.TaskID = 0
374 > newExclusiveDeletionHighWatermark.TaskID = 0
375 > }
376
377 > ctx, cancel := newQueueIOContext() queue_base.go
378 > defer cancel()
379 >
380 > if err := p.shard.GetExecutionManager().RangeCompleteHistoryTasks(ctx, &persistence.RangeCompleteHistoryTasksRequest{
381 > ShardID: p.shard.GetShardID(),
382 > TaskCategory: p.category,
383 > InclusiveMinTaskKey: oldExclusiveDeletionHighWatermark,
384 > ExclusiveMaxTaskKey: newExclusiveDeletionHighWatermark,
385 > }); err != nil {
386 p.logger.Error("Error range completing queue task", tag.Error(err))
387 return err
388 }
389 > return nil queue_base.go
390 }
391