Skip to content

ddtrace breaks Dir.glob on gcsfuse filesystems #3450

Closed

Description

Current behaviour

irb(main):001:0> Dir.ancestors
=> [Dir, Enumerable, ActiveSupport::Dependencies::ZeitwerkIntegration::RequireDependency, Datadog::Profiling::Ext::Forking::Kernel, ActiveSupport::ForkTracker::CoreExtPrivate, ActiveSupport::ForkTracker::CoreExt, ActiveSupport::ToJsonWithActiveSupportEncoder, Object, Delayed::MessageSending, PP::ObjectMixin, JSON::Ext::Generator::GeneratorMethods::Object, ActiveSupport::Dependencies::Loadable, ActiveSupport::Tryable, Kernel, BasicObject]
irb(main):002:0> Dir.glob('/gcsfuse/t*')
=> []

Expected behaviour

irb(main):001:0> Dir.ancestors
=> [Dir, Enumerable, ActiveSupport::Dependencies::ZeitwerkIntegration::RequireDependency, ActiveSupport::ForkTracker::CoreExtPrivate, ActiveSupport::ForkTracker::CoreExt, ActiveSupport::ToJsonWithActiveSupportEncoder, Object, Delayed::MessageSending, PP::ObjectMixin, JSON::Ext::Generator::GeneratorMethods::Object, ActiveSupport::Dependencies::Loadable, ActiveSupport::Tryable, Kernel, BasicObject]
irb(main):002:0> Dir.glob('/gcsfuse/t*')
=> ["/gcsfuse/test.html", "/gcsfuse/test.txt"]

Steps to reproduce
Mount bucket via gcsfuse, load rails with ddtrace, call Dir.glob on any path under the gcsfuse mount point (other fs work as expected).

Environment

  • ddtrace version: 1.20.0
  • Configuration block (Datadog.configure ...):
Datadog.configure do |c|
 if (service_name = ENV["DD_SERVICE"])
   c.tracing.instrument :rails, service_name: service_name
   c.env = ENV.fetch("DD_ENV")
 end
end
  • Ruby version: 2.7.7
  • Operating system: Debian 11
  • Relevant library versions: Rails 6.1.7.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugInvolves a bugcommunityWas opened by a community member

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions