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.
Files changed (48) hide show
  1. {testgres-1.15.1/testgres.egg-info → testgres-1.15.2}/PKG-INFO +1 -1
  2. {testgres-1.15.1 → testgres-1.15.2}/src/__init__.py +1 -1
  3. {testgres-1.15.1 → testgres-1.15.2}/src/logger.py +1 -1
  4. {testgres-1.15.1 → testgres-1.15.2}/src/node.py +13 -5
  5. {testgres-1.15.1 → testgres-1.15.2/testgres.egg-info}/PKG-INFO +1 -1
  6. {testgres-1.15.1 → testgres-1.15.2}/LICENSE +0 -0
  7. {testgres-1.15.1 → testgres-1.15.2}/README.md +0 -0
  8. {testgres-1.15.1 → testgres-1.15.2}/pyproject.toml +0 -0
  9. {testgres-1.15.1 → testgres-1.15.2}/setup.cfg +0 -0
  10. {testgres-1.15.1 → testgres-1.15.2}/src/api.py +0 -0
  11. {testgres-1.15.1 → testgres-1.15.2}/src/backup.py +0 -0
  12. {testgres-1.15.1 → testgres-1.15.2}/src/cache.py +0 -0
  13. {testgres-1.15.1 → testgres-1.15.2}/src/config.py +0 -0
  14. {testgres-1.15.1 → testgres-1.15.2}/src/connection.py +0 -0
  15. {testgres-1.15.1 → testgres-1.15.2}/src/consts.py +0 -0
  16. {testgres-1.15.1 → testgres-1.15.2}/src/decorators.py +0 -0
  17. {testgres-1.15.1 → testgres-1.15.2}/src/defaults.py +0 -0
  18. {testgres-1.15.1 → testgres-1.15.2}/src/enums.py +0 -0
  19. {testgres-1.15.1 → testgres-1.15.2}/src/exceptions.py +0 -0
  20. {testgres-1.15.1 → testgres-1.15.2}/src/impl/file_line_reader.py +0 -0
  21. {testgres-1.15.1 → testgres-1.15.2}/src/impl/internal_utils.py +0 -0
  22. {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/internal_platform_utils.py +0 -0
  23. {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/internal_platform_utils_factory.py +0 -0
  24. {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/linux/internal_platform_utils.py +0 -0
  25. {testgres-1.15.1 → testgres-1.15.2}/src/impl/platforms/win32/internal_platform_utils.py +0 -0
  26. {testgres-1.15.1 → testgres-1.15.2}/src/impl/port_manager__generic.py +0 -0
  27. {testgres-1.15.1 → testgres-1.15.2}/src/impl/port_manager__generic2.py +0 -0
  28. {testgres-1.15.1 → testgres-1.15.2}/src/impl/port_manager__this_host.py +0 -0
  29. {testgres-1.15.1 → testgres-1.15.2}/src/node_app.py +0 -0
  30. {testgres-1.15.1 → testgres-1.15.2}/src/port_manager.py +0 -0
  31. {testgres-1.15.1 → testgres-1.15.2}/src/pubsub.py +0 -0
  32. {testgres-1.15.1 → testgres-1.15.2}/src/raise_error.py +0 -0
  33. {testgres-1.15.1 → testgres-1.15.2}/src/standby.py +0 -0
  34. {testgres-1.15.1 → testgres-1.15.2}/src/utils.py +0 -0
  35. {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/SOURCES.txt +0 -0
  36. {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/dependency_links.txt +0 -0
  37. {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/requires.txt +0 -0
  38. {testgres-1.15.1 → testgres-1.15.2}/testgres.egg-info/top_level.txt +0 -0
  39. {testgres-1.15.1 → testgres-1.15.2}/tests/test_api.py +0 -0
  40. {testgres-1.15.1 → testgres-1.15.2}/tests/test_config.py +0 -0
  41. {testgres-1.15.1 → testgres-1.15.2}/tests/test_os_ops_common.py +0 -0
  42. {testgres-1.15.1 → testgres-1.15.2}/tests/test_os_ops_local.py +0 -0
  43. {testgres-1.15.1 → testgres-1.15.2}/tests/test_os_ops_remote.py +0 -0
  44. {testgres-1.15.1 → testgres-1.15.2}/tests/test_raise_error.py +0 -0
  45. {testgres-1.15.1 → testgres-1.15.2}/tests/test_testgres_common.py +0 -0
  46. {testgres-1.15.1 → testgres-1.15.2}/tests/test_testgres_local.py +0 -0
  47. {testgres-1.15.1 → testgres-1.15.2}/tests/test_testgres_remote.py +0 -0
  48. {testgres-1.15.1 → testgres-1.15.2}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres
3
- Version: 1.15.1
3
+ Version: 1.15.2
4
4
  Summary: Testing utility for PostgreSQL and its extensions
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -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.1"
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
- execute_utility2(self._os_ops, _params, self.utils_log_file)
1335
-
1336
- self._manually_started_pm_pid = None
1337
-
1338
- self._maybe_stop_logger()
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres
3
- Version: 1.15.1
3
+ Version: 1.15.2
4
4
  Summary: Testing utility for PostgreSQL and its extensions
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
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