task_queue_partition_manager.go ×7

Frontier kind: Code frontier

unlabeled · c_cf93c11a4c5d

48 tests · 4679 LOC · 184 files · introduces 0 tests · 16 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges16 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
893 ranges4679 lines · 184 files · Browse complete extent
All tests (intent)
48 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: 16 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/matching/task_queue_partition_manager.go 16 introduced LOC · 7 ranges

Open complete file

761 }
762 } else if pollMetadata.workerVersionCapabilities.GetUseVersioning() {
763 > // V1 & V2 versioning task_queue_partition_manager.go
764 > userData, _, err := pm.userDataManager.GetUserData()
765 > if err != nil {
766 return nil, false, err
767 }
768
769 > versioningData := userData.GetData().GetVersioningData() task_queue_partition_manager.go
770 > buildId := pollMetadata.workerVersionCapabilities.GetBuildId()
771 > if buildId == "" {
772 return nil, false, serviceerror.NewInvalidArgument("build ID must be provided when using worker versioning")
773 }
774
775 > if pm.partition.Kind() == enumspb.TASK_QUEUE_KIND_STICKY { task_queue_partition_manager.go
776 // In the sticky case we always use the unversioned queue
777 // For the old API, we may kick off this worker if there's a newer one.
793 // tasks as no redirect happen in a sticky queue.
794 versionSetUsed = true
796 > // default queue should stay alive even if requests go to other queues
797 > dbq.MarkAlive()
798 >
799 > var versionSet string
800 > if versioningData.GetVersionSets() != nil {
801 versionSet, err = pm.getVersionSetForPoll(pollMetadata.workerVersionCapabilities, versioningData)
802 if err != nil {
806
807 // use version set if found, otherwise assume user is using new API
808 > if versionSet != "" { task_queue_partition_manager.go
809 versionSetUsed = true
810 dbq, err = pm.getVersionedQueue(ctx, versionSet, "", nil, true)
812 activeRules := getActiveRedirectRules(versioningData.GetRedirectRules())
813 terminalBuildId := findTerminalBuildId(buildId, activeRules)