activity_state_replicator.go ×5

Frontier kind: Code frontier

unlabeled · c_124a7adac2e3

13 tests · 4149 LOC · 187 files · introduces 0 tests · 18 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges18 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
615 ranges4149 lines · 187 files · Browse complete extent
All tests (intent)
13 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: 18 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/ndc/activity_state_replicator.go 14 introduced LOC · 5 ranges

Open complete file

388 mutableState historyi.MutableState,
389 incomingVersionHistory *historyspb.VersionHistory,
390 > ) (bool, error) { activity_state_replicator.go
391 >
392 > currentVersionHistory, err := versionhistory.GetCurrentVersionHistory(
393 > mutableState.GetExecutionInfo().GetVersionHistories(),
394 > )
395 > if err != nil {
396 return false, err
397 }
398
399 > lastLocalItem, err := versionhistory.GetLastVersionHistoryItem(currentVersionHistory) activity_state_replicator.go
400 > if err != nil {
401 return false, err
402 }
403
404 > lastIncomingItem, err := versionhistory.GetLastVersionHistoryItem(incomingVersionHistory) activity_state_replicator.go
405 > if err != nil {
406 return false, err
407 }
408
409 > lcaItem, err := versionhistory.FindLCAVersionHistoryItem(currentVersionHistory, incomingVersionHistory) activity_state_replicator.go
410 > if err != nil {
411 return false, err
412 }
419 // case 2-1: local version history has the higher version and discard the incoming event
420 // case 2-2: incoming version history has the higher version and resend the missing incoming events
421 > if versionhistory.IsLCAVersionHistoryItemAppendable(currentVersionHistory, lcaItem) || activity_state_replicator.go
422 > versionhistory.IsLCAVersionHistoryItemAppendable(incomingVersionHistory, lcaItem) {
423 // case 1
424 if scheduledEventID > lcaItem.GetEventId() {
go.temporal.io/server/service/history/interfaces/mutable_state_mock.go 4 introduced LOC · 1 range

Open complete file

2924
2925 // GetWorkflowStateStatus indicates an expected call of GetWorkflowStateStatus.
2926 > func (mr *MockMutableStateMockRecorder) GetWorkflowStateStatus() *gomock.Call { mutable_state_mock.go
2927 > mr.mock.ctrl.T.Helper()
2928 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowStateStatus", reflect.TypeOf((*MockMutableState)(nil).GetWorkflowStateStatus))
2929 > }
2930
2931 // GetWorkflowTaskByID mocks base method.