Named trace session (launched by fbsvcmgr with non-empty value for 'trc_name' parameter) can not be stopped using its name [CORE4876] #1943
Labels
affect-version: 2.5.0
affect-version: 2.5.1
affect-version: 2.5.2 Update 1
affect-version: 2.5.2
affect-version: 2.5.3 Update 1
affect-version: 2.5.3
affect-version: 2.5.4
affect-version: 3.0 Alpha 1
affect-version: 3.0 Alpha 2
affect-version: 3.0 Beta 1
affect-version: 3.0 Beta 2
component: svcmgr
fix-version: 2.5.5
fix-version: 3.0 RC1
priority: major
qa: cannot be tested
type: bug
Submitted by: @pavel-zotov
From the output of 'fbsvcmgr -?' one may see:
. . .
action_trace_stop:
trc_name [string value]
trc_id [numeric value]
. . .
But it seems that we can`t specify key-value pair like 'trc_name <my_trace_session>' in order to STOP previously launched trace.
Following is what I did in cmd.exe having prepared trivial config for trace ('tmp_trace.cfg'):
Step #1
C:\...> start fbsvcmgr localhost:service_mgr user SYSDBA password masterkey action_trace_start trc_cfg .\tmp_trace.cfg trc_name my_favorite_trace_ssn_01
// OK, new window will be opened with launched trace session
Step #2
C:\...> fbsvcmgr localhost:service_mgr user SYSDBA password masterkey action_trace_list
/*
Output:
Session ID: 2
name: my_favorite_trace_ssn_01
user:
date: 2015-07-15 15:28:52
flags: active, trace
*/
Step #3
C:\...> fbsvcmgr localhost:service_mgr user SYSDBA password masterkey action_trace_stop my_favorite_trace_ssn_01
Error: parameter "NAME" is incompatible with action "STOP"
So, either this option should be excluded from output of fbsvcmgr (and this will be really BAD!) or `action_trace_stop` should be pretty clever to stop trace sessions by their names (and I'm strongly voting for 2nd case :)).
Commits: d511444 e1f3ac4 FirebirdSQL/fbt-repository@0daa2e3 FirebirdSQL/fbt-repository@e749070
====== Test Details ======
Implementing has no sense: there is no more such option in fbsvcmgr as " trc_name [string value] "
The text was updated successfully, but these errors were encountered: