-
Notifications
You must be signed in to change notification settings - Fork 322
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
chore: generateTransformationMessage is its own concurrent step #5449
base: master
Are you sure you want to change the base?
chore: generateTransformationMessage is its own concurrent step #5449
Conversation
727f6dc
to
eb3998c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5449 +/- ##
=======================================
Coverage 74.91% 74.91%
=======================================
Files 458 458
Lines 63260 63276 +16
=======================================
+ Hits 47389 47401 +12
- Misses 13220 13222 +2
- Partials 2651 2653 +2 ☔ View full report in Codecov by Sentry. |
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.
Changes look good to me.
processor/processor.go
Outdated
hasMore: false, | ||
rsourcesStats: rsourcesStats, | ||
}) | ||
transMessage, err = proc.generateTransformationMessage(proc.processJobsForDest( |
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 related to this PR. but there's a possibility of duplicate persistence of jobs in events schema and archival?
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.
It's possible yeah
processor/processor.go
Outdated
@@ -1734,7 +1734,7 @@ func (proc *Handle) processJobsForDest(partition string, subJobs subJob) (*trans | |||
for _, batchEvent := range jobList { | |||
var eventParams types.EventParams | |||
if err := jsonfast.Unmarshal(batchEvent.Parameters, &eventParams); err != nil { | |||
return nil, err | |||
panic(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.
lets return error from here, we can handle error at 1 place only in worker.go
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.
should we keep this change behind a flag?
Description
generateTransformationMessage is its own concurrent step.
Includes:
Linear Ticket
Resolves PIPE-1719
Security