// On other errors: ask backlog manager to re-spool to persistence
if tr.backlogMgr.respoolTaskAfterError(task.event.Data) != nil {
return // task queue will unload now
Frontier kind: Code frontier
unlabeled · c_5261d1b75df2
45 tests · 3608 LOC · 152 files · introduces 0 tests · 38 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/TestRequestPrioritiesOrderedgo.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingEvery 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: 38 introduced LOC across 13 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
// On other errors: ask backlog manager to re-spool to persistence
if tr.backlogMgr.respoolTaskAfterError(task.event.Data) != nil {
return // task queue will unload now
}
defer tr.lock.Unlock()
tr.backlogAge.record(task.event.Data.CreateTime, -1)
numAcked := tr.ackTaskLocked(task.event.TaskId)
tr.maybeGCLocked()
// use == so we just signal once when we cross this threshold
// TODO(pri): is this safe? maybe we need to improve this
if tr.loadedTasks == tr.backlogMgr.config.GetTasksReloadAt() {
tr.SignalTaskLoading()
}
tr.backlogMgr.db.updateAckLevelAndBacklogStats(tr.subqueue, tr.ackLevel, -numAcked, tr.backlogAge.oldestTime())
pri_task_reader.go
}
}
wasAlreadyAcked, found := tr.outstandingTasks.Get(taskId)
if !softassert.That(tr.logger, found, "completed task not found in oustandingTasks") {
return 0
}
if !softassert.That(tr.logger, !wasAlreadyAcked.(bool), "completed task was already acked") {
pri_task_reader.go
return 0
}
tr.loadedTasks--
// Adjust the ack level as far as we can
var numAcked int64
for {
minId, acked := tr.outstandingTasks.Min()
if minId == nil || !acked.(bool) {
break
}
tr.outstandingTasks.Remove(minId)
numAcked += 1
}
// Also if we're completely drained, we can move the ack level up to the read level.
tr.ackLevel = tr.readLevel
}
}
// gc
if !tr.shouldGCLocked() {
return
}
}
if tr.inGC {
return false
return false
return true
}