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

fix grpc ingestor (backward compat) #262

Merged
merged 2 commits into from
Sep 13, 2024
Merged

fix grpc ingestor (backward compat) #262

merged 2 commits into from
Sep 13, 2024

Conversation

jt-dd
Copy link
Contributor

@jt-dd jt-dd commented Sep 12, 2024

With the introduction of metadata.json in v1.5.0, we need to have retro compatibility with old dumps. So I clean the old args and patch with the key path to extract the metadata information.

@jt-dd jt-dd requested a review from a team as a code owner September 12, 2024 16:26
Copy link
Contributor

@Minosity-VR Minosity-VR left a comment

Choose a reason for hiding this comment

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

little question but should be good

@@ -124,7 +124,7 @@ func (g *IngestorAPI) Ingest(_ context.Context, path string) error {
if err != nil {
log.I.Warnf("no metadata has been parsed (old dump format from v1.4.0 or below do not embed metadata information): %v", err)
// Backward Compatibility: Extracting the metadata from the path
dumpMetadata, err := dump.ParsePath(archivePath)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure to understand why this change it needed, in the unit test iirc you did an example with the .tar.gz file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because the archivePath is an hardcoden string, so we need to parse the key which contains the clustername and runid

@jt-dd jt-dd merged commit 9b3f259 into main Sep 13, 2024
8 checks passed
@jt-dd jt-dd deleted the jt-dd/fix-grpc-ingestor branch September 13, 2024 08:07
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