Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

fix(fluent bit): make input plugin read from head of file #2158

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

SanyaKochhar
Copy link
Contributor

Description: This change updates the Fluent Bit input plugin to make it read from the head of the log file rather than the tail. Reading from the tail was causing the first few logs to be missed.

Affected area:

  • New Functionality [ ]
  • Documentation [ ]
  • Install [ ]
  • Control Plane [ ]
  • CLI Tool [ ]
  • Certificate Management [ ]
  • Networking [ ]
  • Metrics [ ]
  • SMI Policy [ ]
  • Security [ ]
  • Tests [ ]
  • CI System [ ]
  • Performance [ ]
  • Other [x]

Please answer the following questions with yes/no.

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
    no, no

@SanyaKochhar SanyaKochhar requested a review from a team as a code owner December 8, 2020 00:49
@codecov-io
Copy link

codecov-io commented Dec 8, 2020

Codecov Report

Merging #2158 (d1ec77a) into main (c0410a8) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2158      +/-   ##
==========================================
+ Coverage   58.23%   58.25%   +0.01%     
==========================================
  Files         145      145              
  Lines        6127     6127              
==========================================
+ Hits         3568     3569       +1     
+ Misses       2556     2555       -1     
  Partials        3        3              
Impacted Files Coverage Δ
pkg/envoy/route/config.go 96.03% <0.00%> (+0.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0410a8...d1ec77a. Read the comment docs.

michelleN
michelleN previously approved these changes Dec 8, 2020
Copy link
Contributor

@michelleN michelleN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to catch this scenario in an e2e test as a follow up.

nshankar13
nshankar13 previously approved these changes Dec 8, 2020
@nshankar13
Copy link
Contributor

lgtm

@SanyaKochhar
Copy link
Contributor Author

SanyaKochhar commented Dec 8, 2020

Would be great to catch this scenario in an e2e test as a follow up.

@michelleN agreed, I've been trying to figure out how to test this and other scenarios where logs could be missed but haven't been able to find an efficient way yet. Opened this issue to track it #2159

Signed-off-by: Sanya Kochhar <kochhars@microsoft.com>
@SanyaKochhar SanyaKochhar merged commit ee39c0a into openservicemesh:main Dec 8, 2020
@SanyaKochhar SanyaKochhar deleted the missing-logs branch December 8, 2020 18:33
michelleN pushed a commit to michelleN/osm that referenced this pull request Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants