history_node_util.go ×2

Frontier kind: Code frontier

unlabeled · c_f9d435c3138c

70 tests · 5006 LOC · 172 files · introduces 0 tests · 23 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges23 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
965 ranges5006 lines · 172 files · Browse complete extent
All tests (intent)
70 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.

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

go.temporal.io/server/common/persistence/history_node_util.go 9 introduced LOC · 2 ranges

Open complete file

34 )
35 if err != nil {
36 > return nil, err history_node_util.go
37 > }
38
39 nodesToTrim := trimNodes(nodeIDToNodes, nodeChain)
72 // sanity check node ID <-> transaction ID being unique
73 if !ok || node.nodeID != tailNodeID {
74 > return nil, serviceerror.NewInternal( history_node_util.go
75 > fmt.Sprintf("unable to find or verify the tail history node, node ID: %v, transaction ID: %v",
76 > tailNodeID,
77 > tailTransactionID,
78 > ),
79 > )
80 > }
81
82 var nodes []historyNodeMetadata
go.temporal.io/server/common/persistence/execution_manager.go 8 introduced LOC · 1 range

Open complete file

1123 }
1124
1125 > mutableStateLastNodeID := executionInfo.LastFirstEventId execution_manager.go
1126 > mutableStateLastNodeTransactionID := executionInfo.LastFirstEventTxnId
1127 > if _, err := m.TrimHistoryBranch(ctx, &TrimHistoryBranchRequest{
1128 > ShardID: shardID,
1129 > BranchToken: branchToken,
1130 > NodeID: mutableStateLastNodeID,
1131 > TransactionID: mutableStateLastNodeTransactionID,
1132 > }); err != nil {
1133 // best effort trim
1134 m.logger.Error("ExecutionManager unable to trim history branch",
go.temporal.io/server/common/persistence/history_manager.go 3 introduced LOC · 1 range

Open complete file

289 )
290 if err != nil {
291 > m.logger.Debug("unable to trim history branch due to existing history node not fully onboarded", tag.Error(err)) history_manager.go
292 > return &TrimHistoryBranchResponse{}, nil
293 > }
294
295 for _, node := range nodesToTrim {
go.temporal.io/server/common/persistence/tests/execution_mutable_state.go 3 introduced LOC · 1 range

Open complete file

2698 }
2699
2700 > func (s *ExecutionMutableStateSuite) AssertHEPrefixWithDB(branchToken []byte, events ...[]*p.WorkflowEvents) { execution_mutable_state.go
2701 > s.assertHEWithDB(branchToken, events, true)
2702 > }
2703
2704 func (s *ExecutionMutableStateSuite) assertHEWithDB(