• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / carbondata / 1544
76%

Build:
DEFAULT BRANCH: master
Ran 22 Feb 2019 10:42AM UTC
Jobs 1
Files 1027
Run time 1511min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1544

push

jenkins

xuchuanyin
[CARBONDATA-3107] Optimize error/exception coding for better debugging

Some error log in carbon is only a single line of conclusion message
(like "Dataload failed"), and when we look into codes may found that
is newly created exception without original exception, so more jobs
need to be done to find the root cause.

To better locate the root cause when carbon fails, this PR propose to
keep the original throwable for logging when wrapping it to another
exception, and also log stack trace alone with error message.

   Changes in this PR follows these rules: (`e` is an exception)

   | Code Sample | Problem | Suggest Modification |
   | --- | --- | --- |
   | `LOGGER.error(e);` | no stack trace(e is taken as message instead of throwable) | `LOGGER.error(e.getMessage(), e);` |
   | `LOGGER.error(e.getMessage());` | no stack trace | `LOGGER.error(e.getMessage(), e);` |
   | `catch ... throw new Exception("Error occur")` | useless message, no stack trace | `throw new Exception(e)` |
   | `catch ... throw new Exception(e.getMessage())` | no stack trace | `throw new Exception(e)` |
   | `catch ... throw new Exception(e.getMessage(), e)` | no need to call `getMessage()` | `throw new Exception(e)` |
   | `catch ... throw new Exception("Error occur: " + e.getMessage(), e)` | useless message | `throw new Exception(e)` |
   | `catch ... throw new Exception("DataLoad fail: " + e.getMessage())` | no stack trace | `throw new Exception("DataLoad fail: " + e.getMessage(), e)` |

   Some exceptions, such as MalformedCarbonCommandException,
   InterruptException, NumberFormatException, InvalidLoadOptionException
   and NoRetryException, do not have Constructor using `Throwable`,
   so this PR does not change it.

This closes #2878

60162 of 78948 relevant lines covered (76.2%)

0.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1544.1 22 Feb 2019 10:42AM UTC 0
76.2
Source Files on build 1544
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #1544
  • 9672a103 on github
  • Prev Build on master (#1543)
  • Next Build on master (#1545)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc