scale_manager.go ×2

Frontier kind: Code frontier

unlabeled · c_e4f44101da43

3 tests · 3369 LOC · 155 files · introduces 0 tests · 20 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges20 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
578 ranges3369 lines · 155 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.

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

go.temporal.io/server/service/matching/scale_manager.go 12 introduced LOC · 2 ranges

Open complete file

415 res *matchingservice.DescribeTaskQueuePartitionResponse,
416 info *taskqueuespb.PartitionScaleInfo,
417 > ) bool { scale_manager.go
418 > // Require that the partition agrees with the current scale state, i.e. it knows that
419 > // it's draining, i.e. it knows it can't accept any new tasks. We include the version
420 > // as well as just the read+write counts to avoid an ABA problem.
421 > resInfo := res.GetScaleInfo()
422 > if resInfo == nil ||
423 > resInfo.Version != info.Version ||
424 > resInfo.Read != info.Read ||
425 > resInfo.Write != info.Write {
426 return false
427 }
428
429 > for _, v := range res.GetVersionsInfoInternal() { scale_manager.go
430 > for _, q := range v.GetPhysicalTaskQueueInfo().GetInternalTaskQueueStatus() {
431 > if !q.GetBacklogDrained() {
432 return false
433 }
go.temporal.io/server/api/matchingservice/v1/request_response.pb.go 4 introduced LOC · 1 range

Open complete file

2130 }
2131
2132 > func (x *DescribeTaskQueuePartitionResponse) GetScaleInfo() *v18.PartitionScaleInfo { request_response.pb.go
2133 > if x != nil {
2134 > return x.ScaleInfo
2135 > }
2136 return nil
2137 }
go.temporal.io/server/api/taskqueue/v1/message.pb.go 4 introduced LOC · 1 range

Open complete file

355 }
356
357 > func (x *InternalTaskQueueStatus) GetBacklogDrained() bool { message.pb.go
358 > if x != nil {
359 > return x.BacklogDrained
360 > }
361 return false
362 }