Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-644

Integration test failure: ERROR: AddColumn 'class_SyncStringOnly.%3'

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      Found with SyncedRealmTests#connectWithInitialSchema when trying to upgrade to latest test image in https://github.com/realm/realm-java/pull/6968

      06-27 16:12:46.470 V/REALM_SYNC( 3481): Connection[2]: Session[2]: Transforming local changeset [1/1] through 15 incoming changeset(s) with 4 conflict group(s)
      06-27 16:12:46.471 D/REALM_SYNC( 3481): Connection[2]: Session[2]: Finished transforming 1 local changesets through 15 incoming changesets (28 vs 63 instructions, in 4 conflict groups)
      06-27 16:12:46.472 V/REALM_SYNC( 3481): Connection[2]: Session[2]: sync::create_table_with_primary_key(group, "class_SyncStringOnly", 15, "_id", 0);
      06-27 16:12:46.472 V/REALM_SYNC( 3481): Connection[2]: Session[2]: sync::create_table_with_primary_key(group, "class_mongo_data", 15, "_id", 1);
      06-27 16:12:46.472 V/REALM_SYNC( 3481): Connection[2]: Session[2]: sync::create_table_with_primary_key(group, "class_SyncStringOnly", 15, "_id", 0);
      06-27 16:12:46.473 E/REALM_SYNC( 3481): Connection[2]: Session[2]: Failed to parse, or apply received changeset: ERROR: AddColumn 'class_SyncStringOnly.%3' which already exists
      

      Root cause is unclear, but seems to be related to somehow running all the tests. So most likely a previous test is creating these instructions. SyncStringOnly is not part of the default schema, and is only used in SyncSessionTests and EncryptedSynchronizedRealmTests`, but running these locally before running this test has not proved a viable path or reproducing.

      See also https://jira.mongodb.org/browse/RSYNC-130

            Assignee:
            clemente.tort@mongodb.com Clemente Tort Barbero
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: