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

in_tail: expect ENOENT during stat (try to fix #3274 and #3224) #3275

Merged
merged 4 commits into from
Mar 4, 2021

Commits on Mar 2, 2021

  1. in_tail: tw setup: expect ENOENT during stat() (fix fluent#3274)

    Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
    jgehrcke committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    c33ccd2 View commit details
    Browse the repository at this point in the history
  2. in_tail: path exp: expect ENOENT during stat() (fix fluent#3224)

    Signed-off-by: Dr. Jan-Philip Gehrcke <jp@opstrace.com>
    jgehrcke committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    48ff30d View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2021

  1. in_tail: Detach and close watcher explicitly on failure at #start_wat…

    …chers
    
    Watchers should be detached and closed explicitly due to Cool.io
    objects.
    
    Signed-off-by: Hiroshi Hatake <hatake@clear-code.com>
    cosmo0920 committed Mar 3, 2021
    Configuration menu
    Copy the full SHA
    d066aa2 View commit details
    Browse the repository at this point in the history
  2. in_tail: Fix an invalid path reference

    Fix the following error:
    
    Error: test_should_delete_file_pos_entry_for_non_existing_file_with_follow_inodes(TailInputTest::inode_processing): NoMethodError: undefined method `path' for nil:NilClass
    C:/projects/fluentd/lib/fluent/plugin/in_tail.rb:326:in `rescue in block in expand_paths'
    C:/projects/fluentd/lib/fluent/plugin/in_tail.rb:318:in `block in expand_paths'
    C:/projects/fluentd/lib/fluent/plugin/in_tail.rb:315:in `each'
    C:/projects/fluentd/lib/fluent/plugin/in_tail.rb:315:in `expand_paths'
    C:/projects/fluentd/lib/fluent/plugin/in_tail.rb:224:in `start'
    C:/projects/fluentd/lib/fluent/test/driver/base.rb:114:in `instance_start'
    C:/projects/fluentd/lib/fluent/test/driver/base.rb:77:in `run'
    C:/projects/fluentd/lib/fluent/test/driver/base_owner.rb:130:in `run'
    C:/projects/fluentd/test/plugin/test_in_tail.rb:1439:in `test_should_delete_file_pos_entry_for_non_existing_file_with_follow_inodes'
         1436:       }
         1437:
         1438:       d = create_driver(config, false)
      => 1439:       d.run
         1440:
         1441:       pos_file = File.open("#{TMP_DIR}/tail.pos", "r")
         1442:       pos_file.pos = 0
    
    Signed-off-by: Takuro Ashie <ashie@clear-code.com>
    ashie committed Mar 3, 2021
    Configuration menu
    Copy the full SHA
    419ef50 View commit details
    Browse the repository at this point in the history