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 metadata collect on error #8901

Merged
merged 2 commits into from
Mar 30, 2025
Merged

Fix metadata collect on error #8901

merged 2 commits into from
Mar 30, 2025

Conversation

nopcoder
Copy link
Contributor

Closes #8900

@nopcoder nopcoder requested a review from idanovo March 30, 2025 14:53
@nopcoder nopcoder self-assigned this Mar 30, 2025
@nopcoder nopcoder added bug Something isn't working include-changelog PR description should be included in next release changelog exclude-changelog PR description should not be included in next release changelog and removed exclude-changelog PR description should not be included in next release changelog labels Mar 30, 2025
@nopcoder nopcoder requested a review from guy-har March 30, 2025 14:54
@@ -268,5 +268,5 @@ func (m *KVMetadataManager) GetMetadata(ctx context.Context) (map[string]string,
metadata[SetupTimestampKeyName] = setupTS.UTC().Format(time.RFC3339)
}

return metadata, err
return metadata, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to return nil instead of err if you are already not failing for it when calling this function later

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true, but I wanted to note that this is ok, as not all metadata is collected

Copy link

E2E Test Results - Quickstart

12 passed

Copy link

E2E Test Results - DynamoDB Local - Local Block Adapter

13 passed, 1 skipped

@nopcoder nopcoder enabled auto-merge (squash) March 30, 2025 15:17
@nopcoder nopcoder merged commit 9b91263 into master Mar 30, 2025
41 checks passed
@nopcoder nopcoder deleted the fix/metadata-collect branch March 30, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation ID not loaded without setup
3 participants