RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1411695 - Buffering in omfile flushing incomplete messages [ rsyslog v8 ]
Summary: Buffering in omfile flushing incomplete messages [ rsyslog v8 ]
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rsyslog
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jiří Vymazal
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On: rsyslog-rhel74-rebase
Blocks: 1408473
TreeView+ depends on / blocked
 
Reported: 2017-01-10 10:21 UTC by Jiří Vymazal
Modified: 2017-01-12 07:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-12 07:27:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed patch (1.11 KB, patch)
2017-01-10 10:21 UTC, Jiří Vymazal
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Github rsyslog rsyslog issues 1297 0 None closed Broken flushOnTXEnd option in omfile 2020-07-08 05:49:44 UTC
Red Hat Bugzilla 1399569 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1399569

Description Jiří Vymazal 2017-01-10 10:21:08 UTC
Created attachment 1239043 [details]
proposed patch

Description of problem:
After solving https://bugzilla.redhat.com/show_bug.cgi?id=1399569 there remains the original issue where in case of flushOnTXEnd switch OFF omfile would upon reaching buffer size limit flush only buffer size thus leaving incomplete message in log file. Proposed patches solves this, also sent upstream (see linked GitHub issue)

Version-Release number of selected component (if applicable):
rsyslog-8.23.0-5.fc25.x86_64

How reproducible:
always

Steps to Reproduce:
1. put "local0.info action(type="omfile" file="/var/log/rsyslog.test.log" IOBufferSize="1k" FlushOnTXEnd="off")" into rsyslog.conf file
2. log enough messages with -p local0.info to reach buffer size
3. look at /var/log/rsyslog.test.log 

Actual results:
last flushed message is incomplete

Expected results:
all flushed messages are complete

Additional info:

Comment 2 Jiří Vymazal 2017-01-12 07:27:14 UTC
I communicated with upstream that with this combination of switches the partial lines writing is actually intended behavior because of performance reasons, see https://github.com/rsyslog/rsyslog/pull/1353#issuecomment-271910634. Closing, if need from customer or somebody has other problems with this behavior, please reopen.


Note You need to log in before you can comment on or make changes to this bug.