pri_task_writer.go ×3

Frontier kind: Code frontier

unlabeled · c_9a7774709dd4

5 tests · 25836 LOC · 622 files · introduces 0 tests · 14 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges14 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5340 ranges25836 lines · 622 files · Browse complete extent
All tests (intent)
5 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.

2 files ranked by introduced lines: 14 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/matching/pri_task_writer.go 8 introduced LOC · 3 ranges

Open complete file

141 state, err := w.renewLeaseWithRetry(foreverRetryPolicy, common.IsPersistenceTransientError)
142 if err != nil {
143 > w.backlogMgr.initState(taskQueueState{}, err) pri_task_writer.go
144 > return err
145 > }
146 w.taskIDBlock = rangeIDToTaskIDBlock(state.rangeID, w.config.RangeSize)
147 w.currentTaskIDBlock = w.taskIDBlock
152 func (w *priTaskWriter) taskWriterLoop() {
153 if w.initState() != nil {
154 > return pri_task_writer.go
155 > }
156
157 var reqs []*writeTaskRequest
204 err := backoff.ThrottleRetryContext(w.backlogMgr.tqCtx, op, retryPolicy, retryErrors)
205 if err != nil {
206 > metrics.LeaseFailurePerTaskQueueCounter.With(w.backlogMgr.metricsHandler).Record(1) pri_task_writer.go
207 > return newState, err
208 > }
209 return newState, nil
210 }
go.temporal.io/server/service/matching/pri_backlog_manager.go 6 introduced LOC · 1 range

Open complete file

150
151 if err != nil {
152 > // We can't recover from here without starting over, so unload the whole task queue. pri_backlog_manager.go
153 > // Skip final update since we never initialized.
154 > c.skipFinalUpdate.Store(true)
155 > c.pqMgr.UnloadFromPartitionManager(unloadCauseInitError)
156 > return
157 > }
158
159 // Pass scale info back to physical tq from unversioned (default) queue.