| From: | Sehrope Sarkuni <noreply(at)github(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | [pgjdbc/pgjdbc] 807ddb: test: Fix typo in assert message |
| Date: | 2021-03-17 10:48:45 |
| Message-ID: | pgjdbc/pgjdbc/push/refs/heads/master/00774d-5fce1b@github.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 807ddbf9b7f127f4f6fe7ae51d0654ac708ef4e6
https://github.com/pgjdbc/pgjdbc/commit/807ddbf9b7f127f4f6fe7ae51d0654ac708ef4e6
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M pgjdbc/src/test/java/org/postgresql/replication/ReplicationConnectionTest.java
Log Message:
-----------
test: Fix typo in assert message
Commit: 7a4ed1eaa07e55b4268cbbddd21e82610e7f0b7a
https://github.com/pgjdbc/pgjdbc/commit/7a4ed1eaa07e55b4268cbbddd21e82610e7f0b7a
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
Log Message:
-----------
test: Change TestUtil.getBackendPid(...) to use value in unwrapped PGConnection
Change TestUtil.getBackendPid(...) to use the value in the unwrapped PGConnection
rather than executing a query to determine the connections backedn process id. This
has the advantage of being both faster and usable when the connection is not in a
queryable state such as during a COPY operation.
Commit: 37a63cb6e93afa3926353ed068adb3a35fe20d6f
https://github.com/pgjdbc/pgjdbc/commit/37a63cb6e93afa3926353ed068adb3a35fe20d6f
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M pgjdbc/src/test/java/org/postgresql/replication/ReplicationConnectionTest.java
Log Message:
-----------
test: Have ReplicationConnectionTest use TestUtil.terminateBackend(...)
Commit: 237c685c99cfc210201c342d770dfdd6132ea198
https://github.com/pgjdbc/pgjdbc/commit/237c685c99cfc210201c342d770dfdd6132ea198
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
Log Message:
-----------
test: Add helper methods to check and wait for backend process termination
Commit: 5fce1bb8fb3c73147aab38b8f42d6ea9a4557b50
https://github.com/pgjdbc/pgjdbc/commit/5fce1bb8fb3c73147aab38b8f42d6ea9a4557b50
Author: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
Date: 2021-03-17 (Wed, 17 Mar 2021)
Changed paths:
M pgjdbc/src/test/java/org/postgresql/replication/ReplicationConnectionTest.java
M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java
Log Message:
-----------
test: Refactor TestUtil.terminateBackend(...) to wait for backend process to exit
Changes terminateBackend(...) method public signature to take the connection that is being
terminated and use it's properties to create a new privileged connection to use for requesting
process termination. If terminated, wait up to the default wait time for the backend process
to actually exit before returning back to the caller. This way callers need not add their own
looping logic to ensure the backend has actually been killed as pg_terminate_backend(...) only
sends the termination signal, it does not actually wait for the process to terminate.
Also moves the CopyTest termination call outside the try-catch so errors during the cancelation
are not swallowed by the test itself.
Compare: https://github.com/pgjdbc/pgjdbc/compare/00774d14b4c9...5fce1bb8fb3c
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Prasanth | 2021-03-18 22:20:23 | Exception while updating result set |
| Previous Message | Chatterjee, Ankush | 2021-03-17 10:00:00 | Bug regarding PostgreSQL JDBC driver truncating microseconds to milliseconds |