}
if dbq != syncMatchQueue {
// default queue should stay alive even if requests go to other queues
task_queue_partition_manager.go
dbq.MarkAlive()
}
res, err := syncMatchQueue.DispatchQueryTask(ctx, task)
Frontier kind: Code frontier
unlabeled · c_9982597e7273
3 tests · 5525 LOC · 195 files · introduces 0 tests · 16 LOC · 1 file
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.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 16 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
}
if dbq != syncMatchQueue {
// default queue should stay alive even if requests go to other queues
task_queue_partition_manager.go
dbq.MarkAlive()
}
res, err := syncMatchQueue.DispatchQueryTask(ctx, task)
// Preventing Query tasks from being dispatched to a drained version with no workers
if isQuery {
if err := pm.checkQueryBlackholed(deploymentData, deployment); err != nil {
task_queue_partition_manager.go
return nil, nil, nil, 0, nil, err
}
deploymentData *persistencespb.DeploymentData,
deployment *deploymentpb.Deployment,
// Only perform this check on the root partition.
// Forwarding (polls/tasks/queries) moves “up” the partition tree, so the root is the convergence point.
// Checking non-root partitions can incorrectly conclude “no pollers” simply because the pollers are on
// a different partition and have not been forwarded here (yet), leading to false blackhole errors.
if !pm.partition.IsRoot() {
return nil
}
// Check old format
if versionData.GetVersion() != nil && worker_versioning.DeploymentVersionFromDeployment(deployment).Equal(versionData.GetVersion()) {
if versionData.GetStatus() == enumspb.WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED && len(pm.GetAllPollerInfo()) == 0 {
// Check new format
if workerDeploymentData, ok := deploymentData.GetDeploymentsData()[deployment.GetSeriesName()]; ok {
task_queue_partition_manager.go
if workerDeploymentData.GetVersions() != nil && workerDeploymentData.GetVersions()[deployment.GetBuildId()] != nil &&
workerDeploymentData.GetVersions()[deployment.GetBuildId()].GetStatus() == enumspb.WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED && len(pm.GetAllPollerInfo()) == 0 {
return serviceerror.NewFailedPreconditionf(ErrBlackholedQuery, deployment.GetBuildId(), deployment.GetBuildId())
}
}
}