metadata_manager.go ×2

Frontier kind: Code frontier

unlabeled · c_9bcd89564882

19 tests · 3808 LOC · 173 files · introduces 0 tests · 41 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges41 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
665 ranges3808 lines · 173 files · Browse complete extent
All tests (intent)
19 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.

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

go.temporal.io/server/common/persistence/metadata_manager.go 27 introduced LOC · 2 ranges

Open complete file

220 ctx context.Context,
221 currentClusterName string,
222 > ) error { metadata_manager.go
223 > _, err := m.CreateNamespace(ctx, &CreateNamespaceRequest{
224 > Namespace: &persistencespb.NamespaceDetail{
225 > Info: &persistencespb.NamespaceInfo{
226 > Id: primitives.SystemNamespaceID,
227 > Name: primitives.SystemLocalNamespace,
228 > State: enumspb.NAMESPACE_STATE_REGISTERED,
229 > Description: "Temporal internal system namespace",
230 > Owner: "[email protected]",
231 > },
232 > Config: &persistencespb.NamespaceConfig{
233 > Retention: durationpb.New(primitives.SystemNamespaceRetention),
234 > HistoryArchivalState: enumspb.ARCHIVAL_STATE_DISABLED,
235 > VisibilityArchivalState: enumspb.ARCHIVAL_STATE_DISABLED,
236 > },
237 > ReplicationConfig: &persistencespb.NamespaceReplicationConfig{
238 > ActiveClusterName: currentClusterName,
239 > Clusters: []string{currentClusterName},
240 > },
241 > FailoverVersion: common.EmptyVersion,
242 > FailoverNotificationVersion: -1,
243 > },
244 > IsGlobalNamespace: false,
245 > })
246 >
247 > if err != nil {
248 if _, ok := err.(*serviceerror.NamespaceAlreadyExists); !ok {
249 return err
250 }
251 }
252 > return nil metadata_manager.go
253 }
254
go.temporal.io/server/common/persistence/persistence_metric_clients.go 9 introduced LOC · 1 range

Open complete file

1342 ctx context.Context,
1343 currentClusterName string,
1344 > ) (retErr error) { persistence_metric_clients.go
1345 > caller := headers.GetCallerInfo(ctx).CallerName
1346 > startTime := time.Now().UTC()
1347 > defer func() {
1348 > p.healthSignals.Record(CallerSegmentMissing, time.Since(startTime), retErr)
1349 > p.recordRequestMetrics(metrics.PersistenceInitializeSystemNamespaceScope, caller, time.Since(startTime), retErr)
1350 > p.recordDataLossMetrics(metrics.PersistenceInitializeSystemNamespaceScope, caller, retErr, "", "")
1351 > }()
1352 > return p.persistence.InitializeSystemNamespaces(ctx, currentClusterName)
1353 }
1354
go.temporal.io/server/common/persistence/persistence_retryable_clients.go 5 introduced LOC · 2 ranges

Open complete file

902 ctx context.Context,
903 currentClusterName string,
905 > op := func(ctx context.Context) error {
906 > return p.persistence.InitializeSystemNamespaces(ctx, currentClusterName)
907 > }
908
909 > return backoff.ThrottleRetryContext(ctx, op, p.policy, p.isRetryable) persistence_retryable_clients.go
910 }
911