-
Notifications
You must be signed in to change notification settings - Fork 1
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
#38 http client and config #73
Conversation
JaCoCo agent module code coverage report - spark:2 - scala 2.12.12
|
JaCoCo server module code coverage report - scala 2.12.12
|
2d70633
to
6ce84d5
Compare
6ce84d5
to
8b1de63
Compare
agent/src/main/scala/za/co/absa/atum/agent/dispacther/Dispatcher.scala
Outdated
Show resolved
Hide resolved
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.
This looks good to me.
- fixing typo in package name - add template for local config
basicRequest | ||
.body(s"$checkpointKey $measureResult") | ||
.post(serverUri) | ||
.send(backend) |
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.
How would retries work? I never used sttp
library but I quickly checked it and it looks awesome!
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.
There is no direct retry support, but it could be implemented using: https://github.com/softwaremill/retry or https://github.com/hipjim/scala-retry
Regarding the error handling, I think we have two options:
To me it seems the number 1 makes more sense but at the end it depends on the requirements on Atum. |
Yah, in terms of |
# Conflicts: # agent/src/main/scala/za/co/absa/atum/agent/AtumAgent.scala
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.
I like it.
I could imagine:
- a dispatcher that would accumulate the results locally, for testing purposes
- dispatcher not built directly in
AtumAgent
but in a factory - the
HttpDispatcher
doing a quick ping to the server on creation to fail fast (no endpoint for it now anyway)
And obviously the base trait's methods will change. PR is 😎
*
Eventually probably |
@@ -0,0 +1,6 @@ | |||
|
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.
This I would removed though.
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.
done
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.
- code reviewed
- pulled
- built
- run
fixes #38
dispatcher
as an abstraction for publishing data, currently to http nad console, later kafka and other destination can be addedother possible improvements
We need to have some discussion about how we want to handle error in the context of Spark.