| commit | 5b03ce5efd1fa7947ef9bfdffb740ce9d49da2a3 | [log] [tgz] |
|---|---|---|
| author | Tamas Cservenak <tamas@cservenak.net> | Thu Nov 14 14:26:02 2024 +0100 |
| committer | GitHub <noreply@github.com> | Thu Nov 14 14:26:02 2024 +0100 |
| tree | ed6d50dde247294c5104f7dc43f35d9c69e2921d | |
| parent | c32b8c9236389ee04ab5d0aac3d206f8bb1b2f36 [diff] |
[MRESOLVER-627] Improve transport selection and logging (#599) In previous releases transport selection was really secretive and broken, as it considered invalid configuration as "protocol not supported" and Resolver did not log anything or worse, silently skipped to new transport. Changes: * transport provider: was logging ONLY if transport selection failed (no transport was selected), changed to continuously log (in DEBUG) why a transport was ignored and next selection performed. Also, in case of total failure, exceptions are added now as suppressed ones instead just lost. * multiple transporter factories: smaller fixes for earlier protocol detection (file is exception to support cases like JIMFS), and when client creation is attempted but it fails due runtime exception, fail the whole process (like bad enum in JDK transport config). * before all transporter "blanket" threw NoTransporterEx and Basic connector was "protecting" caller from it, hence to continue doing so, no basic connector "blankets" all runtime and non-runtime exceptions coming from transport to "early report" problem as it happens in basic connector ctor. --- https://issues.apache.org/jira/browse/MRESOLVER-627
You have found a bug or you have an idea for a cool new feature? Contributing code is a great way to give something back to the open source community. Before you dig right into the code, there are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
git diff --check before committing.[MRESOLVER-XXX] - Subject of the JIRA Ticket Optional supplemental description.
mvn -Prun-its verify to assure nothing else was accidentally broken.If you plan to contribute on a regular basis, please consider filing a contributor license agreement.
For changes of a trivial nature to comments and documentation, it is not always necessary to create a new ticket in JIRA. In this case, it is appropriate to start the first line of a commit with ‘(doc)’ instead of a ticket number.