You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Shelley Lynn Hughes-Godfrey (JIRA)" <ji...@apache.org> on 2017/11/03 18:18:00 UTC

[jira] [Created] (GEODE-3953) Lucene create index can fail due to comparison of fieldnames as an array

Shelley Lynn Hughes-Godfrey created GEODE-3953:
--------------------------------------------------

             Summary: Lucene create index can fail due to comparison of fieldnames as an array
                 Key: GEODE-3953
                 URL: https://issues.apache.org/jira/browse/GEODE-3953
             Project: Geode
          Issue Type: Bug
          Components: lucene
            Reporter: Shelley Lynn Hughes-Godfrey


Note that Arrays.equals() fails if the entries are in a different order ... but order here is not significant and we should not fail the profile comparison
{noformat}
    // Verify fields are the same
    if (!Arrays.equals(remoteProfile.getFieldNames(), getFieldNames())) {
      return LocalizedStrings.LuceneService_CANNOT_CREATE_INDEX_0_ON_REGION_1_WITH_FIELDS_2_BECAUSE_ANOTHER_MEMBER_DEFINES_THE_SAME_INDEX_WITH_FIELDS_3
          .toString(getIndexName(), regionPath, Arrays.toString(getFieldNames()),
              Arrays.toString(remoteProfile.getFieldNames()));
    }
{noformat}





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)