Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"fb_lock_print -ia" output is not flushed to a file between iterations [CORE2354] #2777

Closed
firebird-automations opened this issue Mar 6, 2009 · 12 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Saulius Vabalas (svabalas)

FB CS 1.5 or 2.1.RC1 on Linux. Can not redirect "fb_lock_print -ia 10 9999" output to a file. For some reason standard
redirection does not work, all output is going only into console. Is there any trick to do that, some special switch or it's a "random feature" of this
utility?

Update: Problem is output does not get flushed to a file between iterations.

Commits: 118a70a a931ffe cc69cf7

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Works for me.

fbs bin #⁠ ./fb_lock_print -ia 1 5 >a
fbs bin #⁠ cat a
19:00:28 acquire/s acqwait/s %acqwait acqrtry/s rtrysuc/s
19:00:29 0 0 0 0 0
19:00:30 0 0 0 0 0
19:00:31 0 0 0 0 0
19:00:32 0 0 0 0 0
19:00:33 0 0 0 0 0

Average: 0 0 0 0 0

And must say there is no special output processing - just fprintf(stdout, .....)

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Cannot Reproduce [ 5 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Saulius Vabalas (svabalas)

Apparently file is flushed only when fb_lock_print finishes execution. If it gets killed - output file is empty. In my case (see params 10 9999) output file stays at 0 size all the time. What I need is to run "fb_lock_print -ia 10 9999" to a file to collect statistics and at the same time wanna tail that file from different session to review historical results. Can output file be flushed between iterations like "iostat" does?

@firebird-automations
Copy link
Collaborator Author

Modified by: Saulius Vabalas (svabalas)

description: FB CS 1.5 or 2.1.RC1 on Linux. Can not redirect "fb_lock_print -ia 10 9999" output to a file. For some reason standard
redirection does not work, all output is going only into console. Is there any trick to do that, some special switch or it's a "random feature" of this
utility?

=>

FB CS 1.5 or 2.1.RC1 on Linux. Can not redirect "fb_lock_print -ia 10 9999" output to a file. For some reason standard
redirection does not work, all output is going only into console. Is there any trick to do that, some special switch or it's a "random feature" of this
utility?

Update: Problem is output does not get flushed to a file between iterations.

summary: "fb_lock_print -ia" output redirection to a file does not work => "fb_lock_print -ia" output is not flushed to a file between iterations

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

Pavel, I'm not sure this ticket must be closed, as there's an extra feedback provided by the reporter after Alex's resolution. I'm assigning it to Alex to decide whether it should be re-opened for fixing or not.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Agreed, for this particular utility requirement to flash buffer is correct.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Closed [ 6 ] => Reopened [ 4 ]

resolution: Cannot Reproduce [ 5 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Reopened [ 4 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 Beta 1 [ 10251 ]

Fix Version: 2.1.3 [ 10302 ]

Fix Version: 2.0.6 [ 10303 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants