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

Handle both of stat and timer watchers are enabled and steady growing file case #3364

Merged
merged 7 commits into from
May 14, 2021

Commits on May 11, 2021

  1. Handle both of stat and timer watchers are enabled and steady growing

    files case
    
    In this case, timer watcher tells file contents every 1 seconds and file
    contents changes is also notified from stats watcher.
    
    In such circumstances, if some tailing files are steadily growing,
    previous implementation does not prevent log ingestion for written
    contents which is notified by stat watcher.
    
    This commit also prevents log ingestion in such cases.
    
    Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
    cosmo0920 committed May 11, 2021
    Configuration menu
    Copy the full SHA
    27bb805 View commit details
    Browse the repository at this point in the history
  2. Handle bytes limits more elastically

    Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
    cosmo0920 committed May 11, 2021
    Configuration menu
    Copy the full SHA
    34fcda1 View commit details
    Browse the repository at this point in the history
  3. in_tail: Simplify checking read_bytes_limit_per_second

    Signed-off-by: Takuro Ashie <ashie@clear-code.com>
    ashie committed May 11, 2021
    Configuration menu
    Copy the full SHA
    4f921a3 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2021

  1. in_tail: test: Add testcases for already reached bytes limits

    Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
    cosmo0920 committed May 13, 2021
    Configuration menu
    Copy the full SHA
    bc11e6c View commit details
    Browse the repository at this point in the history
  2. in_tail: test: Add writing files before checking bytes limits case

    Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
    cosmo0920 committed May 13, 2021
    Configuration menu
    Copy the full SHA
    bee9125 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2021

  1. test_in_tail: Fix some inappropriate tests for throttling feature

    * Check elapsed time
    * Check exact number of emitted events
    * Check inotify is surely emitted
    * Remove a needless test.
    
    Signed-off-by: Takuro Ashie <ashie@clear-code.com>
    ashie committed May 14, 2021
    Configuration menu
    Copy the full SHA
    0d0e116 View commit details
    Browse the repository at this point in the history
  2. test_in_tail: Fix a failed test on windows & mac

    Because they doesn't support inotify.
    
    Signed-off-by: Takuro Ashie <ashie@clear-code.com>
    ashie committed May 14, 2021
    Configuration menu
    Copy the full SHA
    d4d0118 View commit details
    Browse the repository at this point in the history