2 @message |
AssertionError: Server must be configured for parallel work. Check values of ParallelWorkers and MaxParallelWorkers
assert (1 >= 2)
LOG DETAILS:
2025-07-01 14:54:20.389
2025-07-01 14:54:20.395 act = <firebird.qa.plugin.Action object at [hex]>
2025-07-01 14:54:20.401 tmp_sql = PosixPath('/var/tmp/qa_2024/test_11538/tmp_2668.sql')
2025-07-01 14:54:20.407 tmp_log = PosixPath('/var/tmp/qa_2024/test_11538/tmp_2668.log')
2025-07-01 14:54:20.413 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-07-01 14:54:20.418
2025-07-01 14:54:20.424 @pytest.mark.trace
2025-07-01 14:54:20.430 @pytest.mark.version('>=5.0.0')
2025-07-01 14:54:20.437 def test_1(act: Action, tmp_sql: Path, tmp_log: Path, capsys):
2025-07-01 14:54:20.444
2025-07-01 14:54:20.450 if act.vars['server-arch'] != 'SuperServer':
2025-07-01 14:54:20.456 pytest.skip("Applies only to SuperServer")
2025-07-01 14:54:20.462
2025-07-01 14:54:20.468 with act.db.connect() as con:
2025-07-01 14:54:20.474 cur = con.cursor()
2025-07-01 14:54:20.482 sql = """
2025-07-01 14:54:20.488 select
2025-07-01 14:54:20.494 cast(max(iif(g.rdb$config_name = 'ParallelWorkers', g.rdb$config_value, null)) as int) as cfg_par_workers
2025-07-01 14:54:20.501 ,cast(max(iif(g.rdb$config_name = 'MaxParallelWorkers', g.rdb$config_value, null)) as int) as cfg_max_par_workers
2025-07-01 14:54:20.507 from rdb$database
2025-07-01 14:54:20.514 left join rdb$config g on g.rdb$config_name in ('ParallelWorkers', 'MaxParallelWorkers')
2025-07-01 14:54:20.521 """
2025-07-01 14:54:20.527 cur.execute(sql)
2025-07-01 14:54:20.534 cfg_par_workers, cfg_max_par_workers = cur.fetchone()
2025-07-01 14:54:20.541
2025-07-01 14:54:20.548 > assert cfg_par_workers >=2 and cfg_max_par_workers >= cfg_par_workers, "Server must be configured for parallel work. Check values of ParallelWorkers and MaxParallelWorkers"
2025-07-01 14:54:20.555 E AssertionError: Server must be configured for parallel work. Check values of ParallelWorkers and MaxParallelWorkers
2025-07-01 14:54:20.565 E assert (1 >= 2)
2025-07-01 14:54:20.575
2025-07-01 14:54:20.583 tests/bugs/gh_7304_test.py:107: AssertionError
2025-07-01 14:54:20.589 ---------------------------- Captured stdout setup -----------------------------
2025-07-01 14:54:20.595 Creating db: localhost:/var/tmp/qa_2024/test_11538/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
|
3 #text |
act = <firebird.qa.plugin.Action pytest object at [hex]>
tmp_sql = PosixPath('/var/tmp/qa_2024/test_11538/tmp_2668.sql')
tmp_log = PosixPath('/var/tmp/qa_2024/test_11538/tmp_2668.log')
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>
@pytest.mark.trace
@pytest.mark.version('>=5.0.0')
def test_1(act: Action, tmp_sql: Path, tmp_log: Path, capsys):
if act.vars['server-arch'] != 'SuperServer':
pytest.skip("Applies only to SuperServer")
with act.db.connect() as con:
cur = con.cursor()
sql = """
select
cast(max(iif(g.rdb$config_name = 'ParallelWorkers', g.rdb$config_value, null)) as int) as cfg_par_workers
,cast(max(iif(g.rdb$config_name = 'MaxParallelWorkers', g.rdb$config_value, null)) as int) as cfg_max_par_workers
from rdb$database
left join rdb$config g on g.rdb$config_name in ('ParallelWorkers', 'MaxParallelWorkers')
"""
cur.execute(sql)
cfg_par_workers, cfg_max_par_workers = cur.fetchone()
> assert cfg_par_workers >=2 and cfg_max_par_workers >= cfg_par_workers, "Server must be configured for parallel work. Check values of ParallelWorkers and MaxParallelWorkers"
E AssertionError: Server must be configured for parallel work. Check values of ParallelWorkers and MaxParallelWorkers
E assert (1 >= 2)
tests/bugs/gh_7304_test.py:107: AssertionError
|