-
Notifications
You must be signed in to change notification settings - Fork 35
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
[SDCISA-13736, SDCISA-13746] Fix YAGNI error handling in Scheduler.java #556
[SDCISA-13736, SDCISA-13746] Fix YAGNI error handling in Scheduler.java #556
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #556 +/- ##
=============================================
+ Coverage 47.44% 47.47% +0.02%
- Complexity 1790 1791 +1
=============================================
Files 225 225
Lines 11815 11820 +5
Branches 1237 1239 +2
=============================================
+ Hits 5606 5611 +5
+ Misses 5715 5714 -1
- Partials 494 495 +1 ☔ View full report in Codecov by Sentry. |
String queueName = "scheduler-" + name; | ||
JsonObject enqueOp = buildEnqueueOperation(queueName, request.toJsonObject().put(QueueClient.QUEUE_TIMESTAMP, System.currentTimeMillis()).encode()); | ||
vertx.eventBus().request(redisquesAddress, enqueOp, (Handler<AsyncResult<Message<JsonObject>>>) event -> { | ||
if( event.failed() ){ |
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 format issue
JsonObject enqueOp = buildEnqueueOperation(queueName, request.toJsonObject().put(QueueClient.QUEUE_TIMESTAMP, System.currentTimeMillis()).encode()); | ||
vertx.eventBus().request(redisquesAddress, enqueOp, (Handler<AsyncResult<Message<JsonObject>>>) event -> { | ||
if( event.failed() ){ | ||
if( log.isWarnEnabled() ) log.warn("Could not enqueue request '{}' '{}'", queueName, request.getUri(), new Exception(event.cause())); |
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.
Do we need to wrap the cause in an exception?
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.
Just imagine how the stack would look like if we don't. HINT: Our code here WILL NOT be in that stack.
Fix YAGNI error handling in Scheduler.java