ConcurrencyError: Detected invalid array contents due to unsynchronized modifications with concurrent users
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- observability
Research direction
Start by reading trashed/instruments/ruby_gc_profiler.rb and trashed/meter.rb, following the stacktrace through measure, start, and instrument!. Reproduce the ConcurrencyError with concurrent users and inspect the timer and profiler state involved; done means the reported invalid array contents error no longer occurs under that workload.
Written by the indexing model from the issue text.
Description
Stacktrace (most recent call first):
org/jruby/RubyArray.java:1613:in `each'
org/jruby/RubyEnumerable.java:977:in `each_with_index'
trashed/instruments/ruby_gc_profiler.rb:12:in `measure'
timings[:"#{captured}.time"] ||= 1000 * GC::Profiler.total_time
trashed/instruments/ruby_gc_profiler.rb:7:in `start'
measure state, timings, gauges, :OOBGC
trashed/meter.rb:31:in `instrument!'
@timers.each { |i| i.start state, timings, gauges }
- Dominant language
- Ruby
- Stars
- 193
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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 basecamp/trashed
All issues in basecamp/trashed
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100