This app replicates the bug reported at getappmap/appmap-ruby#349.
- Using the appmap gem
- Using the latest graphql gem
config.active_support.isolation_level = :fiber
in application.rb
git clone git@github.com:coderberry/appmap-test-app-fiber-graphql.git
cd appmap-test-app-fiber-graphql
bin/setup
bin/rails db:migrate
bin/rails db:seed
bin/rails s
Open http://locahost:3000/graphiql) and execute the following query 5 times:
query {
localCounts
}
Ensure you are viewing the Rails server logs and sumbmit the request a 6th time. The request will hang and you will see that the connection pool was not cleaned up.
Example: