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

chore: generateTransformationMessage is its own concurrent step #5449

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Sidddddarth
Copy link
Member

Description

generateTransformationMessage is its own concurrent step.
Includes:

  1. store to arc, esch
  2. tracking plan validation

Linear Ticket

Resolves PIPE-1719

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@Sidddddarth Sidddddarth changed the title chore: remove parallel scan flag in processor chore: generateTransformationMessage is its own concurrent step Jan 22, 2025
Base automatically changed from chore.removeParallelScanFlag to master January 24, 2025 07:47
@Sidddddarth Sidddddarth force-pushed the chore.newProcessorStep_generateTransformationMessage branch from 727f6dc to eb3998c Compare January 26, 2025 05:27
Copy link

codecov bot commented Jan 26, 2025

Codecov Report

Attention: Patch coverage is 87.03704% with 7 lines in your changes missing coverage. Please review.

Project coverage is 74.91%. Comparing base (6e69bd9) to head (440c4c9).

Files with missing lines Patch % Lines
processor/processor.go 87.80% 4 Missing and 1 partial ⚠️
processor/worker.go 84.61% 1 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ktgowtham ktgowtham left a 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.

hasMore: false,
rsourcesStats: rsourcesStats,
})
transMessage, err = proc.generateTransformationMessage(proc.processJobsForDest(
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's possible yeah

@@ -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)
Copy link
Contributor

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

@Sidddddarth Sidddddarth requested a review from mihir20 February 4, 2025 02:11
Copy link
Contributor

@mihir20 mihir20 left a 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?

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.

3 participants