From d79fe4f17471ebd3fb26f6058e23d95271fc0ac1 Mon Sep 17 00:00:00 2001 From: pavel-zotov Date: Fri, 22 Sep 2023 13:28:35 +0300 Subject: [PATCH] Prepare to run tests against FB 6.x major version. Created prototypes for firebird.conf --- configs/fb60_all.conf | 84 +++++++++++++++++++++++++++++++++++++++++++ configs/fb60_cs.conf | 11 ++++++ configs/fb60_sc.conf | 14 ++++++++ configs/fb60_ss.conf | 28 +++++++++++++++ 4 files changed, 137 insertions(+) create mode 100644 configs/fb60_all.conf create mode 100644 configs/fb60_cs.conf create mode 100644 configs/fb60_sc.conf create mode 100644 configs/fb60_ss.conf diff --git a/configs/fb60_all.conf b/configs/fb60_all.conf new file mode 100644 index 00000000..5d1cf24c --- /dev/null +++ b/configs/fb60_all.conf @@ -0,0 +1,84 @@ +# Common parameters for all 6.x ServerMode values. +# +################################################## + +# Parameter BugCheckAbort must be 1 to allow dumps be saved when FB crashes. +# Crashes will be intercepted by WER if registry has following key and parameters: +# HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\firebird.exe\ +# Parameter 'DumpType', type: DWORD, value: 2 +# Parameter 'DumpFolder', type: EXPAND_SZ, value: directory for storing dumps +# Parameter 'DumpCount', type: DWORD, value: at least 3. +# +# Also, one need to check HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug. +# Often it has parameter 'Debugger', type = REG_SZ, with value like this: +# "C:\WINDOWS\system32\vsjitdebugger.exe" -p %ld -e %ld" +# In that case such parameter must be removed or renamed. +# +# Following *must* present in the registry to disable any pop-up window when program crashes: +# key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\ +# parameter: 'DontShowUI', type: DWORD, value: 2 +# +BugCheckAbort = 1 + +# See parameter 'PORT_FOR_LISTENING' in QA_rundaily.conf: +# +RemoteServicePort = !PORT_FOR_LISTENING! + +UseFileSystemCache = true + +InlineSortThreshold = 1000 + +# Valid values: [0...1000]. If set to zero, pool is disabled. Default: 0. +# Actual value was taken from %~dpn0.conf: +# +ExtConnPoolSize = 10 + +# Set the time before destroyng inactive external connection, seconds. Valid values: [1...86400]. Default: 7200 seconds. +# Actual value was taken from %~dpn0.conf: +# +ExtConnPoolLifeTime = 10 + +# 05-sep-2019, FB 4.x+: intentionally change ReadConsistency with NON-DEFAULT value in order to have ability +# to use BOTH isolation levels for transactions that are to be started in READ COMMITTED mode: +# 1. READ COMMITTED READ CONSISTENCY +# 2. READ COMMITTED [NO] RECORD_VERSION +# See test for CORE-5953, "Statement level read consistency in read-committed transactions": +# we test there result for BOTH modes of RC isolation level. +# +ReadConsistency = 0 + + +# Added 13.04.2019: start implementing tests for verifying DB encryption tasks +# Encryption demo plugin was supplied by IBSurgeon, see !ENCRYPTION_PLUGIN_FOLDER! +# +WireCrypt = Enabled +KeyHolderPlugin = fbSampleKeyHolder + +MaxUnflushedWrites = -1 +MaxUnflushedWriteTime = -1 + +ExternalFileAccess = Full + +# See parameter 'TEMP_DIR' in QA_rundaily.conf: +# +TempDirectories=!TEMP_DIR! + +AuthServer = Srp, Win_Sspi, Legacy_Auth +UserManager = Srp, Legacy_UserManager + + +MaxIdentifierByteLength = 252 +MaxIdentifierCharLength = 63 +WireCryptPlugin = ChaCha, Arc4 + +StatementTimeout = 7200 + +ConnectionIdleTimeout = 0 +ClearGTTAtRetaining = 0 +ClientBatchBuffer = 131072 +SnapshotsMemSize = 64K +TipCacheBlockSize = 4M + +# Added 03-apr-2023: +ParallelWorkers = 1 +MaxParallelWorkers = 8 diff --git a/configs/fb60_cs.conf b/configs/fb60_cs.conf new file mode 100644 index 00000000..7c8563cc --- /dev/null +++ b/configs/fb60_cs.conf @@ -0,0 +1,11 @@ +# Parameters specific to 6.x Classic +#################################### + +ServerMode = Classic +DefaultDBCachePages = 2048 +TempCacheLimit = 128K + +# Parameters for tests which must use XNET/WNET +# connection protocols (rather than INET one): +IpcName = xnet_fb6x_cs + diff --git a/configs/fb60_sc.conf b/configs/fb60_sc.conf new file mode 100644 index 00000000..94c3c8c7 --- /dev/null +++ b/configs/fb60_sc.conf @@ -0,0 +1,14 @@ +# Parameters specific to 6.x SuperClassic +######################################### + +ServerMode = SuperClassic +DefaultDBCachePages = 2048 + +# Common for all connections in SC: +# +TempCacheLimit = 1G + +# Parameters for tests which must use XNET/WNET +# connection protocols (rather than INET one): +IpcName = xnet_fb6x_sc + diff --git a/configs/fb60_ss.conf b/configs/fb60_ss.conf new file mode 100644 index 00000000..8278db41 --- /dev/null +++ b/configs/fb60_ss.conf @@ -0,0 +1,28 @@ +# Parameters specific to 6.x SuperServer +######################################## + +ServerMode = Super + +# Increased 11.04.2021 after discuss with dimitr +# See mailbox pz@ibase.ru, 11-apr-2021. +# DefaultDBCachePages = 100K + +# Reduced 06.12.2022 otherwise dumps will have +# too big size and will be rotated too frequent. +# Discussed with Alex +# See mailbox p519446@yandex.ru, 16-nov-2022 +# +DefaultDBCachePages = 10K + + +# Common for all connections in SS: +# +# Increased 11.04.2021 after discuss with dimitr +# See e-mail pz@ibase.ru, 11-apr-2021. +# +TempCacheLimit = 1G + +# Parameters for tests which must use XNET/WNET +# connection protocols (rather than INET one): +IpcName = xnet_fb6x_ss +