when clients connection increase will throw error: can't convert nil into an exact number
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
No source file, test, stack trace, or expected fix is named. Start by reproducing the two ApacheBench commands against the reported Thin setup and capture the full error; trace the nil-to-number conversion to its source. Done means the higher-concurrency request no longer raises this error, with a regression test if the failure can be isolated.
Written by the indexing model from the issue text.
Description
I use ab to test:
1 concurrency works fine
ab -c 1 -n 100 http://server/api/v1/products.json
10 concurrency works will error
ab -c 10 -n 100 http://server/api/v1/products.json
my server is 4GB memory, I use thin as server, 3 thin process, 1024 connection for per thin process. database pool set to 3 * 1024 = 3072
- Dominant language
- Ruby
- Stars
- 10k
- Forks
- 1.2k
- Avg merge
- 14h 38m
- Merged PRs (30d)
- 92
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby-grape/grape
-
feature request you can help
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
ruby-grape/grape#2487 · 2 comments · 2 reactions ·
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
ruby-grape/grape#2562 · 4 comments ·
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 25/100
ruby-grape/grape#2522 · 3 comments ·
-
bug?
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ruby-grape/grape#2473 · 6 comments · 1 reaction ·
-
chore discuss!
Difficulty 5/5 Over a week Newbie friendliness 25/100
ruby-grape/grape#2446 · 7 comments · 1 reaction ·
All issues in ruby-grape/grape
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100