Implement future for the DataSource.getConnection()
DataSource.getConnection() submit a new submission to connect with the Database Server. If any connection-exception is reported for e.g. "password authentication failed for user -"; there is no design to report this exception to the calling thread.
I can see, PGConnection.attachErrorHandler() implementation. Is this for the same purpose?
If such connection exceptions are thrown, we need to close the connection and report exception to all the attached submissions to that connection.
Please correct me if I am wrong in my understanding!
This sounds correct, there is some printstacktrace calls in protocolV3 class that i had thought should generate errors to that errorhandler.
The hard part is to setup a testning framework for that type of errors I think.
Den ons 13 juni 2018 20:08Shashank Singh [email protected] skrev:
DataSource.getConnection() submit a new submission to connect with the Database Server. If any connection-exception is reported for e.g. "password authentication failed for user -"; there is no design to report this exception to the calling thread.
I can see, PGConnection.attachErrorHandler() implementation. Is this for the same purpose?
If such connection exceptions are thrown, we need to close the connection and report exception to all the attached submissions to that connection.
Please correct me if I am wrong in my understanding!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pgjdbc/pgsql2/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AAniHoHCEqTIamBAZXJwJvaKHBgGc4Gzks5t8VU6gaJpZM4Umrdv .