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

Details

    • Bug
    • Resolution: Done
    • 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

    Description

      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
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: