Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Access] Add support for indexing execution data on Observers #5256

Conversation

AndriiDiachuk
Copy link
Contributor

@AndriiDiachuk AndriiDiachuk commented Jan 19, 2024

This PR includes implementations for the following issue:

Add execution state checkpoint and indexing support for the Observer node (#4848).

This branch was merged with #5253 as it needs some parts for the issue above.

@AndriiDiachuk AndriiDiachuk marked this pull request as ready for review January 22, 2024 12:47
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2024

Codecov Report

Attention: Patch coverage is 36.73469% with 93 lines in your changes are missing coverage. Please review.

Project coverage is 55.79%. Comparing base (1656e98) to head (615bd99).

Files Patch % Lines
...chronization/indexer/collection_executed_metric.go 14.63% 68 Missing and 2 partials ⚠️
...dule/state_synchronization/indexer/indexer_core.go 64.28% 12 Missing and 3 partials ⚠️
engine/access/ingestion/engine.go 75.00% 5 Missing ⚠️
module/metrics/noop.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5256      +/-   ##
==========================================
- Coverage   55.84%   55.79%   -0.06%     
==========================================
  Files        1030     1031       +1     
  Lines      100843   100860      +17     
==========================================
- Hits        56320    56274      -46     
- Misses      40186    40255      +69     
+ Partials     4337     4331       -6     
Flag Coverage Δ
unittests 55.79% <36.73%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't review all of the changes since I know some are duplicated from #5253.

Added a couple comments about where to place the collection handler, but this looks pretty close

cmd/observer/node_builder/observer_builder.go Outdated Show resolved Hide resolved
cmd/observer/node_builder/observer_builder.go Outdated Show resolved Hide resolved
cmd/observer/node_builder/observer_builder.go Show resolved Hide resolved
cmd/observer/node_builder/observer_builder.go Outdated Show resolved Hide resolved
engine/access/ingestion/engine.go Outdated Show resolved Hide resolved
module/state_synchronization/indexer/indexer_core.go Outdated Show resolved Hide resolved
module/state_synchronization/indexer/indexer_core.go Outdated Show resolved Hide resolved
module/state_synchronization/indexer/indexer_core.go Outdated Show resolved Hide resolved
module/state_synchronization/indexer/indexer_core.go Outdated Show resolved Hide resolved
engine/access/ingestion/engine.go Show resolved Hide resolved
engine/access/ingestion/engine.go Show resolved Hide resolved
engine/access/ingestion/engine.go Outdated Show resolved Hide resolved
cmd/observer/node_builder/observer_builder.go Outdated Show resolved Hide resolved
@AndriiDiachuk
Copy link
Contributor Author

@peterargue Ready for a new round of review.

@AndriiDiachuk AndriiDiachuk requested a review from peterargue March 4, 2024 14:45
Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a couple small comments, but otherwise this looks ready to go

Copy link
Contributor

@peterargue peterargue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. can you add indexing to the default localnet config for observers here:
https://github.com/onflow/flow-go/blob/master/integration/localnet/builder/bootstrap.go#L473

"--execution-data-indexing-enabled=true",
"--execution-state-dir=/data/execution-state",

@AndriiDiachuk
Copy link
Contributor Author

looks good. can you add indexing to the default localnet config for observers here: https://github.com/onflow/flow-go/blob/master/integration/localnet/builder/bootstrap.go#L473

"--execution-data-indexing-enabled=true",
"--execution-state-dir=/data/execution-state",

@peterargue It was added couple if lines above. But I moved all together now.

@peterargue
Copy link
Contributor

@peterargue It was added couple if lines above. But I moved all together now.

Thanks. Not sure how I missed that

@peterargue peterargue enabled auto-merge March 9, 2024 13:14
@peterargue peterargue added this pull request to the merge queue Mar 11, 2024
Merged via the queue into onflow:master with commit 50761d4 Mar 11, 2024
55 checks passed
peterargue added a commit that referenced this pull request Mar 15, 2024
…support-for-indexing-execution-data

[Access] Add support for indexing execution data on Observers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants