-
Notifications
You must be signed in to change notification settings - Fork 133
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
Load script fixes #884
Load script fixes #884
Conversation
848fe13
to
da94e3e
Compare
func getS3Object(s3Client *s3.S3, input *s3.GetObjectInput) *s3.GetObjectOutput { | ||
obj, err := s3Client.GetObject(input) | ||
|
||
func processFile(file *os.File, filePath string) (int, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure where this function is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All non-blocking comments, so merging for now to unblock the current CVE release. Please respond/address-in-a-followup-PR when you can.
break | ||
} | ||
if err != nil { | ||
fmt.Println("[TEST ERROR] Malform log entry. Unmarshal Error:", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we no longer printing the failing entry?
s3RecordCounter++ | ||
value, err := strconv.ParseUint(recordId, 10, 32) | ||
if err != nil { | ||
fmt.Println("[TEST ERROR] Malform log entry. ParseUint Error:", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, why are we parsing the recordId now instead of using the raw value?
} | ||
recordIdUint := uint32(value) | ||
inputMap[recordIdUint] = struct{}{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Does this value need to be a struct, or would a true
provide the same results? Seems the latter would be more memory-efficient.
Summary
Issue #, if available:
Testing
make debug
succeeded:Integ tests succeeded:
New tests cover the changes:
Description for the changelog
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.