fair_backlog_manager.go ×5

Frontier kind: Code frontier

unlabeled · c_67fd37ef0c95

3 tests · 7195 LOC · 201 files · introduces 0 tests · 25 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges25 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1535 ranges7195 lines · 201 files · Browse complete extent
All tests (intent)
3 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.

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

go.temporal.io/server/service/matching/fair_backlog_manager.go 18 introduced LOC · 5 ranges

Open complete file

228
229 if c.hasFinishedDraining() {
230 > c.pqMgr.FinishedDraining() fair_backlog_manager.go
231 > return
232 > }
233 }
234 }
419 }
420
421 > c.subqueueLock.Lock() fair_backlog_manager.go
422 > defer c.subqueueLock.Unlock()
423 >
424 > for _, r := range c.subqueues {
425 > if !r.isDrained() {
426 return false
427 }
428 }
429 > return true fair_backlog_manager.go
430 }
431
432 // FinalGC does a final gc pass on all subqueues.
433 > func (c *fairBacklogManagerImpl) FinalGC() { fair_backlog_manager.go
434 > if !softassert.That(c.logger, c.isDraining, "FinalGC called on non-draining backlog manager") {
435 return
436 }
437 > c.subqueueLock.Lock() fair_backlog_manager.go
438 > subqueues := slices.Clone(c.subqueues)
439 > c.subqueueLock.Unlock()
440 >
441 > for _, r := range subqueues {
442 > r.finalGC()
443 > }
444 }
445
go.temporal.io/server/service/matching/fair_task_reader.go 7 introduced LOC · 1 range

Open complete file

718 // finalGC does a single synchronous gc.
719 // Used when unloading a draining queue that won't be reloaded.
720 > func (tr *fairTaskReader) finalGC() { fair_task_reader.go
721 > tr.lock.Lock()
722 > ackLevel := tr.ackLevel
723 > tr.lock.Unlock()
724 > if ackLevel.pass == 0 {
725 > return
726 > }
727 _, _ = tr.doGCAt(ackLevel)
728 }