-
Notifications
You must be signed in to change notification settings - Fork 642
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
Issue #1428: exception when parsing timestamp #1429
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1429 +/- ##
============================================
+ Coverage 57.69% 57.75% +0.05%
- Complexity 1916 1917 +1
============================================
Files 161 161
Lines 9006 9009 +3
Branches 1359 1359
============================================
+ Hits 5196 5203 +7
+ Misses 3335 3332 -3
+ Partials 475 474 -1
|
Fixes #1428 |
Issue fabric8io#1428: Update LogRequestor.java to deal with stack trace coverage tests Signed-off-by: Jeffrey Bennett <[email protected]>
squashed and signed-off |
Kudos, SonarCloud Quality Gate passed! |
Thanks for the fix (and sorry for the delay) but I think we should also check, which the extraction of the timestamp fails in the first place. Happy to add a fallback (not sure about using the current timestamp though as there can be a considerable drift between the local time and the server time), but I suspect that the log line that causes the error matched the Could you check what concrete log line caused the error? Maybe the regexp could be adapt to pick up the concrete value. (btw the "Error" part in the exception provided in the original issue also looks a bit suspicious) |
Hi Roland-
I made a cursory attempt at the time to determine the log-line that generated the issue, but was never able to pin it down precisely - lots of spam and a messy business process. I am no longer at this gig, so ability to recheck it at this point is not possible for me. I do know the fix provided "worked for me" - seemed to turn a hard-exception into code-that-runs.
On Sunday, March 7, 2021, 04:57:00 AM EST, Roland Huß <[email protected]> wrote:
Thanks for the fix (and sorry for the delay) but I think we should also check, which the extraction of the timestamp fails in the first place. Happy to add a fallback (not sure about using the current timestamp though as there can be a considerable drift between the local time and the server time), but I suspect that the log line that causes the error matched the LOG_LINE regexp, but in an undesired way (i.e. the output of the log might have changed).
Could you check what concrete log line caused the error? Maybe the regexp could be adapt to pick up the concrete value. (btw the "Error" part in the exception provided in the original issue also looks a bit suspicious)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
yeah, no worries. I think we can more or less apply this fix but also log out a warning with the full log line in case we hit this. So hopefully we can fine tune the regexp in retrospective then. |
Sorry, there are conflict, not sure how to resolve those (it's very likely JMockit vs. Mockito ...) |
Fixes #1428
If parsing fails, use default timestamp instead