druid/docs
TSFenwick 1487f558b1
Use a simple class to sanitize JDBC exceptions and also log them (#11843)
* Use a simple class to sanitize sanitizable errors and log them

The purpose of this is to sanitize JDBC errors, but can sanitize other errors
if they implement SanitizableError Interface

add a class to log errors and sanitize them
added a simple test that tests out that the error gets sanitized
add @NonNull annotation to serverconfig's ErrorResponseTransfromStrategy

* return less information as part of too many connections, and instead only log specific details

This is so an end user gets relevant information but not too much info since they might now how
many brokers they have

* return only runtime exceptions

added new error types that need to be sanitized
also sanitize deprecated and unsupported exceptions.

* dont reqrewite exceptions unless necessary for checked exceptions

add docs
avoid blanket turning all exceptions into runtime exceptions

* address comments, to fix up docs.

add more javadocs
add support UOE sanitization

* use try catch instead and sanitize at public methods

* checkstyle fixes

* throw noSuchStatement and NoSuchConnection as Avatica is affected by those

* address comments. move log error back to druid meta

clean up bad formatting and commented code. add missed catch for NoSuchStatementException
clean up comments for error handler and add comment explainging not wanting to santize avatica exceptions

* alter test to reflect new error message
2021-11-16 13:13:03 -08:00
..
_bin De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
assets Design/architecture doc touchups (#11762) 2021-10-04 11:09:35 -07:00
comparisons Update druid-vs-kudu.md (#11470) 2021-07-21 22:58:14 +08:00
configuration Use a simple class to sanitize JDBC exceptions and also log them (#11843) 2021-11-16 13:13:03 -08:00
dependencies remove ZooKeeper 3.4 support + pass tests with Java 15 (#11073) 2021-05-25 12:49:49 -07:00
design Add more metrics for Jetty server thread pool usage (#11113) 2021-11-07 16:51:44 +05:30
development Docs: Splits Kafka topic. Adds detailed example for kafka inputFormat (#11912) 2021-11-12 13:02:23 -08:00
ingestion Remove stale warning for HTTP inputSource (#11907) 2021-11-13 10:27:14 +08:00
misc Add SQL functions to format numbers into human readable format (#10635) 2021-08-13 10:27:49 -07:00
operations Docs: Splits Kafka topic. Adds detailed example for kafka inputFormat (#11912) 2021-11-12 13:02:23 -08:00
querying Fixing a few typos and style issues (#11883) 2021-11-16 10:13:35 -08:00
tutorials docker mem reqs (#11827) 2021-10-25 12:23:25 -07:00