Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-2657

@Indexed causes Drop and Create Index which impacts applications

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
    • Environment:
      SpringDataMongo 2.1.8.Release

      Description

      SpringDataMongo 2.1.8.Release

      Mongo DB version 4.0.16-enterprise

      Actual result:: Upon Startup of application, Spring Data Mongo  recreates the index even after index being already present 

      Expected result: If Index already exists, then the index creation should not happen

      Java Class defined::

      @Document(collection = "example")
      @JsonIgnoreProperties
      public class ExampleTO 

      { @Indexed private String textId; }

       

      Application has 2 shards, 10 microservices access the same database collection but few applications do not have read prefrences but other applications have read preferences as seconday

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              cherrycharan HARI
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: