Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2788

Forge batch run with large script randomly breaks down after 10 mins of running - ***ERROR*** Error while executing 'run'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • 3.x Future
    • 3.9.1.Final, 3.9.2.Final
    • None
    • Hide

      I have converted my script to populate the forge script with randomized data and have attached them. To reproduce first run:

      forge -b -e "run all.forge.init.fsh"
      

      this will initialize the project. Next this is where the error happens. You will want to run:

      forge -b -e "run all.forge.update.fsh"
      

      In the all.forge.update.fsh file I have randomized all data but the error will still happen. You have to leave it for 5 - 10 mins for it to happen. Seems like there is some sort of memory leak which happens on large batch runs and it just craps out after a while.

      For the commands that it failed on I have tried running them individually and they all work fine.

      Also in the forge.bat I have set the environment variable VERBOSE=true

      Show
      I have converted my script to populate the forge script with randomized data and have attached them. To reproduce first run: forge -b -e "run all.forge.init.fsh" this will initialize the project. Next this is where the error happens. You will want to run: forge -b -e "run all.forge.update.fsh" In the all.forge.update.fsh file I have randomized all data but the error will still happen. You have to leave it for 5 - 10 mins for it to happen. Seems like there is some sort of memory leak which happens on large batch runs and it just craps out after a while. For the commands that it failed on I have tried running them individually and they all work fine. Also in the forge.bat I have set the environment variable VERBOSE=true

    Description

      During a large batch run forge randomly crashes and throws an exception. Have noticed this happening at random points in the script. See error.txt for full log :

      [ss-rest-services-generated]$ ***ERROR*** Error while executing 'run'
      java.util.concurrent.TimeoutException: Timeout expired waiting for command [java-new-field --named HGAYZDUWSBMKERNITPOQJXCLF --target-class com.soprasteria.api.model.OIJCFPNHDGLMZAUYTEVWKQRBS --type String --access-type private --generate-getter --generate-setter --update-to-string
      ] to execute.
      	at org.jboss.forge.addon.script.impl.ForgeScriptEngine.execute(ForgeScriptEngine.java:225)
      	at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:131)
      	at org.jboss.forge.addon.script.impl.ForgeScriptEngine.eval(ForgeScriptEngine.java:71)
      	at org.jboss.forge.addon.script.ui.RunCommand.execute(RunCommand.java:146)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
      	at org.jboss.forge.addon.script.ui.RunCommand_$$_jvst260_113.execute(RunCommand_$$_jvst260_113.java)
      	at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:94)
      	at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:97)
      	at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:88)
      	at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311)
      	at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      ***ERROR*** Execution timed out.
      exit
      DONE
      
      Process finished with exit code 0
      

      Attachments

        1. all.forge.init.fsh
          0.4 kB
        2. all.forge.update.fsh
          779 kB
        3. error.txt
          235 kB

        Activity

          People

            Unassigned Unassigned
            alexss138 Alex Ferguson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: