testgres 1.15.1__tar.gz → 1.15.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {testgres-1.15.1/testgres.egg-info → testgres-1.15.2}/PKG-INFO +1 -1
- {testgres-1.15.1 → testgres-1.15.2}/src/__init__.py +1 -1
- {testgres-1.15.1 → testgres-1.15.2}/src/logger.py +1 -1
- {testgres-1.15.1 → testgres-1.15.2}/src/node.py +13 -5
- {testgres-1.15.1 → testgres-1.15.2/testgres.egg-info}/PKG-INFO +1 -1
- {testgres-1.15.1 → testgres-1.15.2}/LICENSE +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/README.md +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/pyproject.toml +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/setup.cfg +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/api.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/backup.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/cache.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/config.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/connection.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/consts.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/decorators.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/defaults.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/enums.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/exceptions.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/file_line_reader.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/internal_utils.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/internal_platform_utils.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/internal_platform_utils_factory.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/linux/internal_platform_utils.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/win32/internal_platform_utils.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/port_manager__generic.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/port_manager__generic2.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/impl/port_manager__this_host.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/node_app.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/port_manager.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/pubsub.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/raise_error.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/standby.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/src/utils.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/SOURCES.txt +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/dependency_links.txt +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/requires.txt +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/top_level.txt +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_api.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_config.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_os_ops_common.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_os_ops_local.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_os_ops_remote.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_raise_error.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_testgres_common.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_testgres_local.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_testgres_remote.py +0 -0
- {testgres-1.15.1 → testgres-1.15.2}/tests/test_utils.py +0 -0
|
@@ -57,7 +57,7 @@ from testgres.operations.os_ops import OsOperations, ConnectionParams
|
|
|
57
57
|
from testgres.operations.local_ops import LocalOperations
|
|
58
58
|
from testgres.operations.remote_ops import RemoteOperations
|
|
59
59
|
|
|
60
|
-
__version__ = "1.15.
|
|
60
|
+
__version__ = "1.15.2"
|
|
61
61
|
|
|
62
62
|
__all__ = [
|
|
63
63
|
"get_new_node",
|
|
@@ -31,7 +31,7 @@ class TestgresLogger(threading.Thread):
|
|
|
31
31
|
assert type(log_file_encoding) is str
|
|
32
32
|
assert os_ops is None or isinstance(os_ops, OsOperations)
|
|
33
33
|
|
|
34
|
-
threading.Thread.__init__(self)
|
|
34
|
+
threading.Thread.__init__(self, daemon=True)
|
|
35
35
|
|
|
36
36
|
if os_ops is None:
|
|
37
37
|
os_ops = tconf.os_ops
|
|
@@ -638,6 +638,12 @@ class PostgresNode(object):
|
|
|
638
638
|
assert type(with_force) is bool
|
|
639
639
|
assert max_attempts > 0
|
|
640
640
|
|
|
641
|
+
try:
|
|
642
|
+
self._try_shutdown_internal(max_attempts, with_force)
|
|
643
|
+
finally:
|
|
644
|
+
self._maybe_stop_logger()
|
|
645
|
+
|
|
646
|
+
def _try_shutdown_internal(self, max_attempts, with_force):
|
|
641
647
|
attempts = 0
|
|
642
648
|
|
|
643
649
|
# try stopping server N times
|
|
@@ -1331,11 +1337,13 @@ class PostgresNode(object):
|
|
|
1331
1337
|
"stop"
|
|
1332
1338
|
] + params # yapf: disable
|
|
1333
1339
|
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1340
|
+
try:
|
|
1341
|
+
execute_utility2(self._os_ops, _params, self.utils_log_file)
|
|
1342
|
+
self._manually_started_pm_pid = None
|
|
1343
|
+
finally:
|
|
1344
|
+
# always stop the reader thread, even if pg_ctl stop failed,
|
|
1345
|
+
# so it can't leak into interpreter shutdown.
|
|
1346
|
+
self._maybe_stop_logger()
|
|
1339
1347
|
return self
|
|
1340
1348
|
|
|
1341
1349
|
def kill(self, someone=None):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|