-
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-10974] Adjust error reporting #546
[SDCISA-13736, SDCISA-10974] Adjust error reporting #546
Conversation
- Log concealed errors. - Uncover some submarines. - Cache some refs in locals. - Replace nonsense iteration construct. - Add some static/final modifiers.
539191b
to
c181099
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #546 +/- ##
=============================================
- Coverage 47.61% 47.59% -0.03%
- Complexity 1786 1789 +3
=============================================
Files 225 225
Lines 11736 11767 +31
Branches 1228 1233 +5
=============================================
+ Hits 5588 5600 +12
- Misses 5660 5673 +13
- Partials 488 494 +6 ☔ View full report in Codecov by Sentry. |
gateleen-core/src/main/java/org/swisspush/gateleen/core/util/LockUtil.java
Show resolved
Hide resolved
gateleen-core/src/main/java/org/swisspush/gateleen/core/lua/LuaScriptState.java
Outdated
Show resolved
Hide resolved
gateleen-core/src/main/java/org/swisspush/gateleen/core/lua/LuaScriptState.java
Outdated
Show resolved
Hide resolved
gateleen-core/src/main/java/org/swisspush/gateleen/core/lua/LuaScriptState.java
Outdated
Show resolved
Hide resolved
gateleen-core/src/main/java/org/swisspush/gateleen/core/lua/LuaScriptState.java
Outdated
Show resolved
Hide resolved
@@ -776,6 +797,8 @@ public boolean writeQueueFull() { | |||
|
|||
@Override | |||
public HttpClientRequest drainHandler(Handler<Void> handler) { | |||
log.warn("Happy debugging, as this impl will just ignore your drainHandler anyway", |
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 expect or actually know that it we would log this newly added warning only in some rare edge cases, right?
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 have no idea when it is called. And that's exactly the point why I add this log. As soon someone calls this method (if at all), it is a guarantee for a hung-up request (eg timeout) with totally useless error messages where the stack points somewhere into vertx. The issue is, it is hard to predict when (if at all) this method is called due to indirections and abstractions.
gateleen-core/src/main/java/org/swisspush/gateleen/core/http/BufferBridge.java
Outdated
Show resolved
Hide resolved
This applies some (unrelated) changes requested in swisspost#546 .
…s-20240105-1528 Conflicts: gateleen-core/src/main/java/org/swisspush/gateleen/core/http/BufferBridge.java
…lyFindings-20240105-1528 Conflicts: gateleen-core/src/main/java/org/swisspush/gateleen/core/lua/LuaScriptState.java
No description provided.