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

apache / carbondata / 1544 / 1
76%
master: 76%

Build:
DEFAULT BRANCH: master
Ran 22 Feb 2019 10:42AM UTC
Files 1027
Run time 837min
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

22 Feb 2019 10:42AM UTC coverage: 76.205% (-2.9%) from 79.121%
1544.1

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

Source Files on job 1544.1
  • Tree
  • List 0
  • Changed 215
  • Source Changed 68
  • Coverage Changed 158
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1544
  • 9672a103 on github
  • Prev Job for on master (#1543.1)
  • Next Job for on master (#1545.1)
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