Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-108

jberet hangs if the partition plan defines the number of threads as 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Alpha3
    • 1.1.0.Alpha2
    • None
    • None
    • Hide
      unzip the maven project
      mvn compile
      mvn -P ri exec:java
      mvn -P jberet exec:java
      
      Show
      unzip the maven project mvn compile mvn -P ri exec:java mvn -P jberet exec:java

      Jberet hangs if the getThreads call of the partition plan returns 0.

      The library hangs in StepExecutionRunner (around line 288)

                if (i >= numOfThreads) {
                      completedPartitionThreads.take();
                }
      

      The maven project attached shows the difference between RI and jberet

      The javadoc says for PartitionPlan::getThreads

      Gets maximum number of threads requested to use to run partitions for this step. A value of '0' requests the batch implementation to use the partition count as the thread count. Note the batch runtime is not required to use * this full number of threads; it may not have this many available, and may use less.

              elguardian@gmail.com Enrique González Martínez (Inactive)
              elguardian@gmail.com Enrique González Martínez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: