paging_iterator.go ×3

Frontier kind: Code frontier

unlabeled · c_feb744ea70ce

12 tests · 22 LOC · 1 file · introduces 0 tests · 11 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges11 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
9 ranges22 lines · 1 file · Browse complete extent
All tests (intent)
12 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.

Introduced files, introduced tests, and structurally relevant concept specializationfx.go ×1 · 4 introduced LOCfx.go ×1TestNewServer · 0 introduced LOCTestNewServermetric_client.go ×3 · 18 introduced LOCmetric_client.go ×3logger.go ×1 · 2 introduced LOClogger.go ×1onebox.go ×75 · 1256 introduced LOConebox.go ×75reader.go ×2 · 8 introduced LOCreader.go ×2workflow_state_replicator.go ×2 · 3 introduced LOCworkflow_state_replicato…TestSelectTasks_Error_NoLoadedTasks · 0 introduced LOCTestSelectTasks_Error_No…slice.go ×1 · 4 introduced LOCslice.go ×1dlq_v2_service.go ×2 · 3 introduced LOCdlq_v2_service.go ×2slice.go ×1 · 1 introduced LOCslice.go ×1iterator.go ×1 · 4 introduced LOCiterator.go ×1task.go ×3 · 12 introduced LOCtask.go ×3TestIteration_Err_NotBegining · 0 introduced LOCTestIteration_Err_NotBeg…TestIteration_Err_Beginging · 0 introduced LOCTestIteration_Err_Beging…paging_iterator.go ×2 · 3 introduced LOCpaging_iterator.go ×2paging_iterator.go ×4 · 8 introduced LOCpaging_iterator.go ×4TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/persistence/v1/executions.pb.go · 5768 LOCv1/executions.pb.gogo.temporal.io/server/api/persistence/v1/namespaces.pb.go · 560 LOCv1/namespaces.pb.gogo.temporal.io/server/client/history/client_gen.go · 1548 LOChistory/client_gen.gogo.temporal.io/server/client/history/metric_client.go · 119 LOChistory/metric_client.gogo.temporal.io/server/common/cluster/metadata.go · 612 LOCcluster/metadata.gogo.temporal.io/server/common/collection/paging_iterator.go · 103 LOCcollection/paging_iterat…go.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/membership/static/fx.go · 36 LOCstatic/fx.gogo.temporal.io/server/common/membership/static/monitor.go · 78 LOCstatic/monitor.gogo.temporal.io/server/common/membership/static/service_resolver.go · 117 LOCstatic/service_resolver.…go.temporal.io/server/common/metrics/metricstest/capture_handler.go · 145 LOCmetricstest/capture_hand…go.temporal.io/server/common/persistence/persistence-tests/persistence_test_base.go · 448 LOCpersistence-tests/persis…go.temporal.io/server/common/persistence/persistence-tests/setup.go · 141 LOCpersistence-tests/setup.…go.temporal.io/server/common/persistence/sql/task_queues.go · 259 LOCsql/task_queues.gogo.temporal.io/server/common/persistence/visibility/visibility_manager_impl.go · 619 LOCvisibility/visibility_ma…go.temporal.io/server/common/persistence/visibility/visibility_manager_rate_limited.go · 185 LOCvisibility/visibility_ma…go.temporal.io/server/common/persistence/visibility/visiblity_manager_metrics.go · 237 LOCvisibility/visiblity_man…go.temporal.io/server/common/rpc/interceptor/dc_redirection_policy.go · 221 LOCinterceptor/dc_redirecti…go.temporal.io/server/common/rpc/interceptor/namespace_logger.go · 61 LOCinterceptor/namespace_lo…go.temporal.io/server/common/rpc/rpc.go · 413 LOCrpc/rpc.gogo.temporal.io/server/common/searchattribute/test_provider.go · 161 LOCsearchattribute/test_pro…go.temporal.io/server/common/testing/taskpoller/taskpoller.go · 680 LOCtaskpoller/taskpoller.gogo.temporal.io/server/common/testing/testhooks/test_impl.go · 103 LOCtesthooks/test_impl.gogo.temporal.io/server/service/frontend/fx.go · 1057 LOCfrontend/fx.gogo.temporal.io/server/service/frontend/http_api_server.go · 506 LOCfrontend/http_api_server…go.temporal.io/server/service/frontend/workflow_handler.go · 7521 LOCfrontend/workflow_handle…go.temporal.io/server/service/fx.go · 180 LOCservice/fx.gogo.temporal.io/server/service/history/fx.go · 529 LOChistory/fx.gogo.temporal.io/server/service/history/ndc/workflow_state_replicator.go · 2074 LOCndc/workflow_state_repli…go.temporal.io/server/service/history/queues/iterator.go · 112 LOCqueues/iterator.gogo.temporal.io/server/service/history/queues/reader.go · 578 LOCqueues/reader.gogo.temporal.io/server/service/history/queues/slice.go · 513 LOCqueues/slice.gogo.temporal.io/server/service/history/shard/context_impl.go · 2369 LOCshard/context_impl.gogo.temporal.io/server/service/matching/db.go · 995 LOCmatching/db.gogo.temporal.io/server/service/matching/matching_engine.go · 3939 LOCmatching/matching_engine…go.temporal.io/server/service/worker/scanner/executions/task.go · 277 LOCexecutions/task.gogo.temporal.io/server/temporal/fx.go · 1273 LOCtemporal/fx.gogo.temporal.io/server/temporaltest/logger.go · 41 LOCtemporaltest/logger.gogo.temporal.io/server/tests/testcore/clients.go · 343 LOCtestcore/clients.gogo.temporal.io/server/tests/testcore/context.go · 31 LOCtestcore/context.gogo.temporal.io/server/tests/testcore/flag.go · 37 LOCtestcore/flag.gogo.temporal.io/server/tests/testcore/functional_test_base.go · 762 LOCtestcore/functional_test…go.temporal.io/server/tests/testcore/onebox.go · 883 LOCtestcore/onebox.gogo.temporal.io/server/tests/testcore/replication_stream_recorder.go · 330 LOCtestcore/replication_str…go.temporal.io/server/tests/testcore/shared_cluster_t.go · 152 LOCtestcore/shared_cluster_…go.temporal.io/server/tests/testcore/test_cluster.go · 639 LOCtestcore/test_cluster.gogo.temporal.io/server/tests/testcore/test_cluster_pool.go · 379 LOCtestcore/test_cluster_po…go.temporal.io/server/tests/testcore/test_env.go · 681 LOCtestcore/test_env.gogo.temporal.io/server/tests/testcore/utils.go · 126 LOCtestcore/utils.gogo.temporal.io/server/tools/tdbg/dlq_v2_service.go · 473 LOCtdbg/dlq_v2_service.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestIteration_Err_Beginging · introduced test · go.temporal.io/server/common/collection/TestPagingIteratorSuite/TestIteration_Err_BegingingTestIteration_Err_Beging…TestIteration_Err_NotBegining · introduced test · go.temporal.io/server/common/collection/TestPagingIteratorSuite/TestIteration_Err_NotBeginingTestIteration_Err_NotBeg…Test_ApplyWorkflowState_BrandNew · introduced test · go.temporal.io/server/service/history/ndc/TestWorkflowReplicatorSuite/Test_ApplyWorkflowState_BrandNewTest_ApplyWorkflowState_…TestSelectTasks_Error_NoLoadedTasks · introduced test · go.temporal.io/server/service/history/queues/TestSliceSuite/TestSelectTasks_Error_NoLoadedTasksTestSelectTasks_Error_No…TestSelectTasks_Error_WithLoadedTasks · introduced test · go.temporal.io/server/service/history/queues/TestSliceSuite/TestSelectTasks_Error_WithLoadedTasksTestSelectTasks_Error_Wi…TestRun_PaginationError · introduced test · go.temporal.io/server/service/worker/scanner/executions/TestTaskTestSuite/TestRun_PaginationErrorTestRun_PaginationErrorTestNewServer · introduced test · go.temporal.io/server/temporal/TestNewServerTestNewServerTestNewServerWithJSONEncoding · introduced test · go.temporal.io/server/temporal/TestNewServerWithJSONEncodingTestNewServerWithJSONEnc…without_OTEL_Collector_running · introduced test · go.temporal.io/server/temporal/TestNewServerWithOTEL/without_OTEL_Collector_runningwithout_OTEL_Collector_r…ExampleNewServer · introduced test · go.temporal.io/server/temporaltest/ExampleNewServerExampleNewServerTestWorkerServiceHealthCheck · introduced test · go.temporal.io/server/tests/testcore/TestFunctionalTestBaseSuite/TestWorkerServiceHealthCheckTestWorkerServiceHealthC…GetDLQTasks_error · introduced test · go.temporal.io/server/tools/tdbg/TestDLQCommand_V2/GetDLQTasks_errorGetDLQTasks_errorFocused concept · paging_iterator.go ×3 · 11 introduced LOCpaging_iterator.go ×3

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.

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

go.temporal.io/server/common/collection/paging_iterator.go 11 introduced LOC · 3 ranges

Open complete file

50 // pagination encounters error
51 if iter.pageErr != nil {
52 > return true paging_iterator.go
53 > }
54
55 // still have local cached item to return
73
74 if iter.pageErr != nil {
75 > err := iter.pageErr paging_iterator.go
76 > iter.pageErr = nil
77 > var v V
78 > return v, err
79 > }
80
81 // we have cached events
96 iter.pageErr = nil
97 } else {
98 > iter.pageItems = nil paging_iterator.go
99 > iter.pageToken = nil
100 > iter.pageErr = err
101 > }
102 iter.nextPageItemIndex = 0
103 }