message.pb.go ×5

Frontier kind: Code frontier

unlabeled · c_4f01fa0905f6

281 tests · 4079 LOC · 172 files · introduces 0 tests · 25 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges25 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
714 ranges4079 lines · 172 files · Browse complete extent
All tests (intent)
281 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: 25 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/matching/task_queue_partition_manager.go 14 introduced LOC · 2 ranges

Open complete file

356 }
357
358 > func (pm *taskQueuePartitionManagerImpl) checkPartitionCounts(ctx context.Context, forWrite bool) error { task_queue_partition_manager.go
359 > normal, ok := pm.partition.(*tqid.NormalPartition)
360 > if !ok {
361 return nil // only normal partitions do dynamic scaling
362 }
455 }
456
457 > func (pm *taskQueuePartitionManagerImpl) sendPartitionCountTrailer(ctx context.Context) { task_queue_partition_manager.go
458 > // note this sends the trailer even if there is no scale info (i.e. dynamic partition
459 > // scaling is not enabled). that will instruct clients to fall back to dynamic config.
460 > scaleInfo := pm.userDataManager.PartitionScale()
461 > err := matching.PartitionCounts{
462 > Read: scaleInfo.GetRead(),
463 > Write: scaleInfo.GetWrite(),
464 > BacklogCap: number.Compact8(scaleInfo.GetBacklogCap()),
465 > BacklogCount: []byte(scaleInfo.GetBacklogCounts()),
466 > }.SetTrailer(ctx)
467 > if err != nil {
468 // TODO(dp): this is very noisy in unit tests, figure out how to log it only in non-test
469 pm.throttledLogger.Debug("error setting partition count trailer", tag.Error(err))
go.temporal.io/server/api/taskqueue/v1/message.pb.go 7 introduced LOC · 5 ranges

Open complete file

956 }
957
958 > func (x *PartitionScaleInfo) GetWrite() int32 { message.pb.go
959 > if x != nil {
960 return x.Write
961 }
962 > return 0 message.pb.go
963 }
964
965 > func (x *PartitionScaleInfo) GetBacklogCounts() []byte { message.pb.go
966 > if x != nil {
967 return x.BacklogCounts
968 }
969 > return nil message.pb.go
970 }
971
974 return x.BacklogCap
975 }
976 > return 0 message.pb.go
977 }
978
go.temporal.io/server/client/matching/partition_counts.go 4 introduced LOC · 2 ranges

Open complete file

57 }
58
59 > func (pc PartitionCounts) SetTrailer(ctx context.Context) error { partition_counts.go
60 > v, err := pc.encode(true) // include backlog info in trailer (server -> client)
61 > if err != nil {
62 return err
63 }
64 > return grpc.SetTrailer(ctx, metadata.Pairs(partitionCountsTrailerName, v)) partition_counts.go
65 }
66