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

services/horizon: Add DISABLE_SOROBAN_INGEST flag to skip soroban ingestion processing #5176

Conversation

urvisavla
Copy link
Contributor

@urvisavla urvisavla commented Jan 20, 2024

PR Checklist

PR Structure

  • This PR has reasonably narrow scope (if not, break it down into smaller PRs).
  • This PR avoids mixing refactoring changes with feature changes (split into two PRs
    otherwise).
  • This PR's title starts with name of package that is most changed in the PR, ex.
    services/friendbot, or all or doc if the changes are broad or impact many
    packages.

Thoroughness

  • This PR adds tests for the most critical parts of the new functionality or fixes.
  • I've updated any docs (developer docs, .md
    files, etc... affected by this change). Take a look in the docs folder for a given service,
    like this one.

Release planning

  • I've updated the relevant CHANGELOG (here for Horizon) if
    needed with deprecations, added features, breaking changes, and DB schema changes.
  • I've decided if this PR requires a new major/minor version according to
    semver, or if it's mainly a patch change. The PR is targeted at the next
    release branch if it's not a patch change.

What

Added DISABLE_SOROBAN_INGEST_PROCESSORS flag to optionally skip Soroban related ingestion processing. It's set to false by default. #5175 provides specs on specific processes and storage points that are elided.

Why

Fixes #5175

Known limitations

Manually tested. So would be good to add unit tests to validate the flag and correct processing skipping.

@urvisavla urvisavla force-pushed the 5175/skip-soroban-ingestion-flag branch 2 times, most recently from dd36e94 to 572fc72 Compare January 21, 2024 01:52
@urvisavla urvisavla force-pushed the 5175/skip-soroban-ingestion-flag branch from 572fc72 to a11e6d7 Compare January 21, 2024 02:20
@urvisavla urvisavla force-pushed the 5175/skip-soroban-ingestion-flag branch from a11e6d7 to 66342bb Compare January 21, 2024 02:25
@urvisavla urvisavla marked this pull request as ready for review January 21, 2024 02:30
@urvisavla urvisavla marked this pull request as draft January 21, 2024 02:48
@urvisavla urvisavla marked this pull request as ready for review January 21, 2024 03:12
…processors to prevent making changes in the individual processors.
@urvisavla urvisavla force-pushed the 5175/skip-soroban-ingestion-flag branch from 0860eb6 to e5db60b Compare January 23, 2024 01:57
@sreuland sreuland requested review from Shaptic and 2opremio January 24, 2024 22:01
Copy link
Contributor

@Shaptic Shaptic left a comment

Choose a reason for hiding this comment

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

Straightforward solution and nice test coverage! 👏 :shipit:
Coupla small nitpicks below ⬇️ but it's good to merge as-is imo!

services/horizon/internal/flags.go Outdated Show resolved Hide resolved
@sreuland sreuland changed the title services/horizon: Add DISABLE_SOROBAN_INGEST_PROCESSORS flag to skip soroban ingestion processing services/horizon: Add DISABLE_SOROBAN_INGEST flag to skip soroban ingestion processing Jan 25, 2024
@sreuland sreuland merged commit bfaf9e1 into stellar:release-horizon-v2.28.0 Jan 25, 2024
28 checks passed
sreuland pushed a commit to sreuland/go that referenced this pull request Jan 29, 2024
sreuland added a commit to sreuland/go that referenced this pull request Feb 14, 2024
sreuland added a commit that referenced this pull request Feb 14, 2024
* Revert "services/horizon: Add DISABLE_SOROBAN_INGEST flag to skip soroban ingestion processing (#5176)"

This reverts commit bfaf9e1.

* #5189: added optional SKIP_TXMETA parameter to not persist tx meta in transaction model, removed DISABLE_SOROBAN_INGEST, use SKIP_META instead
sreuland added a commit to sreuland/go that referenced this pull request Feb 20, 2024
* Revert "services/horizon: Add DISABLE_SOROBAN_INGEST flag to skip soroban ingestion processing (stellar#5176)"

This reverts commit bfaf9e1.

* stellar#5189: added optional SKIP_TXMETA parameter to not persist tx meta in transaction model, removed DISABLE_SOROBAN_INGEST, use SKIP_META instead
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.

4 participants