Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2391

Optimization feature cannot triggered by enabling the document-optimization-child-count-target in Wildfly configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.2.0.Final
    • 4.1.0.Final
    • Storage
    • None

    Description

      Using the following Wildfly configuration:

         <repository name="sample"
            document-optimization-child-count-target="1000"
            document-optimization-child-count-tolerance="10"
            document-optimization-initial-time="02:00"
            document-optimization-interval="24"
            document-optimization-thread-pool="modeshape-opt"
      />
      

      causes exception:

          16:16:35,448 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.modeshape.sample.repository: org.jboss.msc.service.StartException in service jboss.modeshape.sample.repository: org.modeshape.jcr.ConfigurationException: The configuration for the 'sample' repository has problems: ERROR: Error at storage.optimization : The 'optimization' field on 'storage' is not defined in the schema and the schema does not allow additional properties.  
              at org.modeshape.jboss.service.RepositoryService.start(RepositoryService.java:193)  
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]  
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]  
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_20]  
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_20]  
              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_20]  
          Caused by: org.modeshape.jcr.ConfigurationException: The configuration for the 'sample' repository has problems: ERROR: Error at storage.optimization : The 'optimization' field on 'storage' is not defined in the schema and the schema does not allow additional properties.  
              at org.modeshape.jcr.ModeShapeEngine.deploy(ModeShapeEngine.java:480)  
              at org.modeshape.jcr.ModeShapeEngine.deploy(ModeShapeEngine.java:452)  
              at org.modeshape.jboss.service.RepositoryService.start(RepositoryService.java:191)  
              ... 5 more  
      
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            mustafamizrak@gmail.com Mustafa Mizrak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: