Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-92405

Investigate CannotIndexParallelArrays exception being encountered during validation

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney
    • Execution Team 2024-07-22

      In the linked HELP ticket, there appears to be a cluster that is encountering the exception "

      color: Color value is invalid

      cannot index parallel array" while running validate. This is interesting because we perform checks when inserting documents/creating indexes to make sure that we do not index on parallel arrays: for example, the following would not be allowed:

      db.coll.insert(a: [1, 2], b: [1, 2]
      // This errors with CannotIndexParallelArrays
      db.coll.createIndex({a:1, b:1}) 

      As part of this ticket, we should investigate how it's possible that this index was created and was caught during validation. It also is interesting that this exception seems to be thrown while trying to access index keys here, which calls into here, ultimately leading to our exception being thrown from here

      In the HELP ticket, it is mentioned that this is preventing other inconsistencies from being found, because its causing validation to stop and return. The other part of this ticket would look into whether it would be safe to handle this error and proceed with validation.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: