-
Notifications
You must be signed in to change notification settings - Fork 208
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
Refactor lambda code to share code between processor and sink #5196
Conversation
//lambdaLatencyMetric.record(latency.toMillis(), TimeUnit.MILLISECONDS); | ||
//totalFlushedEvents += eventCount; | ||
|
||
convertLambdaResponseToEvent(resultRecords, response, flushedBuffer, successHandler); |
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.
We dont need this for sink and hence should not be in common code.
@JsonPropertyDescription("Codec configuration for parsing Lambda responses") | ||
@JsonProperty("response_codec") | ||
@Valid | ||
private PluginModel responseCodecConfig; |
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.
we dont need this for sink ; should be specific to processor
33ba83f
to
c9c6648
Compare
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Srikanth Govindarajan <srigovs@amazon.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Srikanth Govindarajan <srigovs@amazon.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Srikanth Govindarajan <srigovs@amazon.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Srikanth Govindarajan <srigovs@amazon.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Srikanth Govindarajan <srigovs@amazon.com> Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
c9c6648
to
99fc7cd
Compare
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
Signed-off-by: Kondaka <krishkdk@amazon.com>
@@ -58,4 +114,183 @@ public void waitForFutures(List<CompletableFuture<Void>> futureList) { | |||
} | |||
} | |||
} | |||
|
|||
public List<Record<Event>> sendRecords(Collection<Record<Event>> records, |
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.
if we move everything to common code, lambda processor and sink becomes very tightly coupled?
Description
Refactor lambda code to share code between processor and sink
Issues Resolved
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.