Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-11972

JobStoreImpl should skip over malformed records to allow nexus to start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: Database
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      Sprint 89

      Description

      In the case where jobs end up malformed in the config database, as such:

      orientdb {db=config}> select from quartz_job_detail
      
      +----+-----+---------+-----+---------+---------+-----------+--------------------------------------------------------------------------------------------------+
      |#   |@RID |@CLASS   |group|value_typ|name     |job_type   |value_data                                                                              |
      +----+-----+---------+-----+---------+---------+-----------+--------------------------------------------------------------------------------------------------+
      |0   |#28:1|quartz...|nexus|org.qu...|641223...|org.sona...|{name=64122393-52ca-4013-9651-483bce8252a0, group=nexus, description=Health Check: maven-centra...|
      |1   |#28:3|quartz...|     |         |         |           |                                                                              |
      |2   |#28:4|quartz...|nexus|org.qu...|7b7806...|org.sona...|{name=7b7806df-8e25-4273-9572-8ffdedab76c0, group=nexus, description=Health Check: Pypi, jobCla...|
      +----+-----+---------+-----+---------+---------+-----------+--------------------------------------------------------------------------------------------------+
      

      3 item(s) found. Query executed in 0.003 sec(s).}}

      and/or

      orientdb {db=config}> select from quartz_trigger
      
      +----+-----+---------+-----+-------+---------+---------+---------+---------+-----------+-------------------------------------------------------------------------+
      |#   |@RID |@CLASS   |group|state  |job_group|calendar_|name     |job_name |value_type |value_data |
      +----+-----+---------+-----+-------+---------+---------+---------+---------+-----------+-------------------------------------------------------------------------+
      |0   |#42:1|quartz...|nexus|WAITING|nexus    |         |641223...|641223...|org.quar...|{name=64122393-52ca-4013-9651-483bce8252a0, group=nexus, jobName=64122...|
      |1   |#42:3|quartz...|     |       |         |         |         |         |       | |
      |2   |#42:4|quartz...|nexus|WAITING|nexus    |         |7b7806...|7b7806...|org.quar...|{name=7b7806df-8e25-4273-9572-8ffdedab76c0, group=nexus, jobName=7b780...|
      +----+-----+---------+-----+-------+---------+---------+---------+---------+-----------+-------------------------------------------------------------------------+}}
      

      The empty records (#28:3 and #42:3) caused an NPE which stopped nexus from starting:

        Attachments

          Activity

            People

            Assignee:
            bradbeck Brad Beck
            Reporter:
            wwannemacher Wes Wannemacher
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title