Uploaded image for project: 'Spring Data REST'
  1. Spring Data REST
  2. DATAREST-1518

All the repositories start to respond 404 after some period of time (10-12 hours)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 19.4

      Description

      Consider the SpringBoot application with multiple SpringDataRest repositories. Since the migration to Spring Boot 2.2.6.RELEASE (and accordingly Spring Data REST 3.2.6-RELEASE) we have an issue with application starting to respond 404 on all the repository requests after some undetermined period of time (10-12 hours). 
      Remote debug shows, this happens because cache field of the class PersistentEntitiesResourceMappings does not return any values and therefore RepositoryRestHandlerMapping.exportsTopLevelResourceFor() method returns false. This results to 404 error.
      Restarting the application helps and then cache field gets properly initialized but after some period of time same issue occurs again.

      Do you have any ideas why PersistentEntitiesResourceMappings.cache can loose values?

       

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              abinet abinet
              Last updater:
              abinet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: