Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-5632

NoMethodError: undefined method `each' for nil:NilClass

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.9 CR1, 2.9 GA
    • 2.9 ER1
    • Zync
    • None
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Engineering

      ApplicationRecord.retry_record_not_unique returns nil when it fails with ActiveRecord::RecordNotUnique more than once, which can happen in case of a race condition involving 3+ jobs trying to process entries that maps to the same tenant/integration type. Particularly, this makes https://github.com/3scale/zync/blob/d1d6360de9064adcf5e0e3c7b810b381edc4a87a/app/jobs/process_entry_job.rb#L27 to fail with:

      NoMethodError: undefined method `each' for nil:NilClass
      

              Unassigned Unassigned
              mcassola Guilherme Cassolato
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: