2 @message |
AssertionError: Server must be configured for parallel work. Check values of ParallelWorkers and MaxParallelWorkers
assert (1 >= 2)
LOG DETAILS:
2024-12-24 20:31:12.345
2024-12-24 20:31:12.349 act = <firebird.qa.plugin.Action object at [hex]>
2024-12-24 20:31:12.354 tmp_sql = PosixPath('/var/tmp/qa_2024/test_11529/tmp_2668.sql')
2024-12-24 20:31:12.359 tmp_log = PosixPath('/var/tmp/qa_2024/test_11529/tmp_2668.log')
2024-12-24 20:31:12.365 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2024-12-24 20:31:12.371
2024-12-24 20:31:12.377 @pytest.mark.es_eds
2024-12-24 20:31:12.382 @pytest.mark.version('>=5.0.0')
2024-12-24 20:31:12.387 def test_1(act: Action, tmp_sql: Path, tmp_log: Path, capsys):
2024-12-24 20:31:12.392
2024-12-24 20:31:12.397 if act.vars['server-arch'] != 'SuperServer':
2024-12-24 20:31:12.403 pytest.skip("Applies only to SuperServer")
2024-12-24 20:31:12.408
2024-12-24 20:31:12.413 with act.db.connect() as con:
2024-12-24 20:31:12.419 cur = con.cursor()
2024-12-24 20:31:12.424 sql = """
2024-12-24 20:31:12.430 select
2024-12-24 20:31:12.436 cast(max(iif(g.rdb$config_name = 'ParallelWorkers', g.rdb$config_value, null)) as int) as cfg_par_workers
2024-12-24 20:31:12.441 ,cast(max(iif(g.rdb$config_name = 'MaxParallelWorkers', g.rdb$config_value, null)) as int) as cfg_max_par_workers
2024-12-24 20:31:12.446 from rdb$database
2024-12-24 20:31:12.451 left join rdb$config g on g.rdb$config_name in ('ParallelWorkers', 'MaxParallelWorkers')
2024-12-24 20:31:12.456 """
2024-12-24 20:31:12.461 cur.execute(sql)
2024-12-24 20:31:12.466 cfg_par_workers, cfg_max_par_workers = cur.fetchone()
2024-12-24 20:31:12.470
2024-12-24 20:31:12.475 > 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"
2024-12-24 20:31:12.481 E AssertionError: Server must be configured for parallel work. Check values of ParallelWorkers and MaxParallelWorkers
2024-12-24 20:31:12.485 E assert (1 >= 2)
2024-12-24 20:31:12.491
2024-12-24 20:31:12.496 tests/bugs/gh_7304_test.py:85: AssertionError
2024-12-24 20:31:12.502 ---------------------------- Captured stdout setup -----------------------------
2024-12-24 20:31:12.507 Creating db: localhost:/var/tmp/qa_2024/test_11529/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_11529/tmp_2668.sql')
tmp_log = PosixPath('/var/tmp/qa_2024/test_11529/tmp_2668.log')
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>
@pytest.mark.es_eds
@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:85: AssertionError
|