google-nomulus/javatests/google/registry/proxy
jianglai 0e64015cdf Improve logs in the GCP proxy
Tweaked a few logging levels to not spam error level logs. Also make it easy to debug issues in case relay retry fails.

[1] Put non-fatal exceptions that should be logged at warning in their explicit sets. Also always use the root cause to determine if an exception is non-fatal, because sometimes the actual causes are wrapped inside other exceptions.

[2] Record the cause of a relay failure, and record if a relay retry is successful. This way we can look at the log and figure out if a relay is eventually successful.

[3] Add a log when the frontend connection from the client is terminated.

[4] Alway close the relay channel when a relay has failed, which, depend on if the channel is frontend or backend, will reconnect and trigger a retry.

[5] Lastly changed failure test to use assertThrows instead of fail.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=208649916
2018-08-20 13:58:30 -04:00
..
handler Improve logs in the GCP proxy 2018-08-20 13:58:30 -04:00
metric Fix proxy metrics instrumentation bug 2018-05-30 12:18:54 -04:00
quota Clean up some code quality issues in GCP proxy 2018-03-19 18:44:12 -04:00
testdata Open source GCP proxy 2017-11-21 19:19:03 -05:00
BUILD Update Netty version 2018-08-10 13:46:48 -04:00
CertificateModuleTest.java Improve logs in the GCP proxy 2018-08-20 13:58:30 -04:00
EppProtocolModuleTest.java Improve logs in the GCP proxy 2018-08-20 13:58:30 -04:00
GcpJsonFormatterTest.java Clean up some code quality issues in GCP proxy 2018-03-19 18:44:12 -04:00
HealthCheckProtocolModuleTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
HttpsRelayProtocolModuleTest.java Open source GCP proxy 2017-11-21 19:19:03 -05:00
ProtocolModuleTest.java Add tests for web whois protocols module 2018-08-10 13:46:48 -04:00
ProxyModuleTest.java Improve logs in the GCP proxy 2018-08-20 13:58:30 -04:00
TestUtils.java Refine tests in GCP proxy 2018-08-10 13:46:48 -04:00
WebWhoisProtocolsModuleTest.java Add tests for web whois protocols module 2018-08-10 13:46:48 -04:00
WhoisProtocolModuleTest.java Improve logs in the GCP proxy 2018-08-20 13:58:30 -04:00