controller_impl.go ×3

Frontier kind: Joint frontier

unlabeled · c_9be63fea28d6

1 test · 5423 LOC · 188 files · introduces 1 test · 15 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges15 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
971 ranges5423 lines · 188 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

go.temporal.io/server/service/history/shard/controller_impl.go 8 introduced LOC · 3 ranges

Open complete file

247 // Check again with exclusive lock
248 if shard, ok := c.historyShards[shardID]; ok {
249 > if shard.IsValid() { controller_impl.go
250 > return shard, nil
251 > }
252
253 // If the shard was invalid and still in the historyShards map, the
254 // shardClosedCallback call is in-flight, and will call finishStop.
255 > _ = c.removeShardLocked(shardID, shard) controller_impl.go
256 }
257
288 }
289 if expected != nil && current != expected {
290 > // the shard comparison is a defensive check to make sure we are deleting controller_impl.go
291 > // what we intend to delete.
292 > return nil
293 > }
294
295 delete(c.historyShards, shardID)
go.temporal.io/server/service/history/shard/context_impl.go 7 introduced LOC · 2 ranges

Open complete file

1745
1746 if s.errorByState() != nil {
1747 > // if not in acquired state, this function will be called again context_impl.go
1748 > // later when shard is re-acquired.
1749 > s.wUnlock()
1750 > return
1751 > }
1752
1753 maxReplicationTaskID := s.getMaxReplicationTaskID()
1948 op := func() error {
1949 if !s.IsValid() {
1950 > return s.newShardClosedErrorWithShardID() context_impl.go
1951 > }
1952
1953 // Initial load of shard metadata