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

Update to use BufferedStorageBackend to read txmeta files #242

Merged
merged 6 commits into from
May 7, 2024

Conversation

chowbao
Copy link
Contributor

@chowbao chowbao commented May 7, 2024

Replaces GCSBackend with the released BufferedStorageBackend ledgerbackend reader in the go monorepo

  • Update parameters needed for BufferedStorageBackend
  • Save common parameters in a struct instead of passing individual values
    • This should be the case for all parameters; TODO in a separate PR
  • The param datastore-url is now datastore-path as the backend only takes the path
  • Network added to env vars

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
golang/github.com/stellar/[email protected] environment, filesystem, network, shell, unsafe 0 16.2 MB

🚮 Removed packages: golang/github.com/stellar/[email protected]

View full report↗︎

Copy link
Contributor

@sydneynotthecity sydneynotthecity left a comment

Choose a reason for hiding this comment

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

Nothing blocking the merge. Changes look good

Might be worthwhile for us to discuss the operator experience for stellar-etl since we're also discussing for Ledger Exporter. Having the flags called through multiple methods feels weird now that we're deleting our extract from genesis code. Specifically, it might be worthwhile for us to collapse MustCommonFlags and MustArchiveFlags

env := utils.GetEnvironmentDetails(isTest, isFuture, datastoreUrl)
commonArgs := utils.MustCommonFlags(cmd.Flags(), cmdLogger)
cmdLogger.StrictExport = commonArgs.StrictExport
env := utils.GetEnvironmentDetails(commonArgs.IsTest, commonArgs.IsFuture, commonArgs.DatastorePath)
Copy link
Contributor

Choose a reason for hiding this comment

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

not blocking for this PR: wdty about passing an env arg instead of IsTest and IsFuture? I think we'd need to plan the breaking change with Goldsky, but might be a better UX

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that'd be good. We need to refactor a lot of the params TBH

Hubble-386 although it doesn't have a description lol

cmd/export_assets.go Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Todo: This export process may be less useful now that we save raw XDR to GCS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm that's true. Throwing it in the ticket lol
Hubble-386

}

// TODO: In the future CompressionType should be removed as it won't be configurable
BSBackendConfig := ledgerbackend.BufferedStorageBackendConfig{
Copy link
Contributor

Choose a reason for hiding this comment

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

lol, BSBackendConfig :eyeroll:

internal/utils/main.go Outdated Show resolved Hide resolved
internal/utils/main.go Show resolved Hide resolved
@chowbao chowbao merged commit 2de3397 into master May 7, 2024
2 checks passed
@sydneynotthecity sydneynotthecity deleted the update-to-bufferedStorageBackend branch July 15, 2024 13:01
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.

2 participants