task_queue_partition_manager.go ×5

Frontier kind: Code frontier

unlabeled · c_af86dc694e07

61 tests · 4267 LOC · 176 files · introduces 0 tests · 22 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges22 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
787 ranges4267 lines · 176 files · Browse complete extent
All tests (intent)
61 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: 22 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/matching/task_queue_partition_manager.go 12 introduced LOC · 5 ranges

Open complete file

2265 }
2266
2267 > userData, userDataChanged, err := pm.userDataManager.GetUserData() task_queue_partition_manager.go
2268 > if err != nil {
2269 return nil, nil, nil, 0, nil, err
2270 }
2271
2272 > data := userData.GetData().GetVersioningData() task_queue_partition_manager.go
2273 >
2274 > var buildId, redirectBuildId string
2275 > var versionSet string
2276 > switch dir := directive.GetBuildId().(type) {
2277 case *taskqueuespb.TaskVersionDirective_UseAssignmentRules:
2278 // Need to assign build ID. Assignment rules take precedence, fallback to version sets if no matching rule is found
2301 }
2302
2303 > redirectBuildId = FindRedirectBuildId(buildId, data.GetRedirectRules()) task_queue_partition_manager.go
2304 >
2305 > if pm.partition.Kind() == enumspb.TASK_QUEUE_KIND_STICKY {
2306 // We may kick off this worker if there's a new default build ID in the version set.
2307 // unknownBuild flag is ignored because we don't have any special logic for it anymore. unknown build can
2345 }
2346
2347 > return spoolQueue, syncMatchQueue, userDataChanged, taskDispatchRevisionNumber, targetDeploymentVersion, err task_queue_partition_manager.go
2348 }
2349
go.temporal.io/server/api/taskqueue/v1/message.pb.go 5 introduced LOC · 3 ranges

Open complete file

100 func (x *TaskVersionDirective) GetBuildId() isTaskVersionDirective_BuildId {
101 if x != nil {
102 > return x.BuildId message.pb.go
103 > }
104 return nil
105 }
116 func (x *TaskVersionDirective) GetAssignedBuildId() string {
117 if x != nil {
118 > if x, ok := x.BuildId.(*TaskVersionDirective_AssignedBuildId); ok { message.pb.go
119 return x.AssignedBuildId
120 }
132 func (x *TaskVersionDirective) GetDeployment() *v11.Deployment {
133 if x != nil {
134 > return x.Deployment message.pb.go
135 > }
136 return nil
137 }
go.temporal.io/server/service/matching/version_rule_helpers.go 5 introduced LOC · 2 ranges

Open complete file

617 // FindRedirectBuildId follows chain of redirect rules starting from the given sourceBuildId and returns the final
618 // target build ID that should be used for redirect. Returns sourceBuildId if no applicable redirect rules exist.
619 > func FindRedirectBuildId(sourceBuildId string, rules []*persistencespb.RedirectRule) string { version_rule_helpers.go
620 > outer:
621 > for {
622 > for _, r := range rules {
623 if r.GetDeleteTimestamp() != nil {
624 continue