You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 23:53:16 UTC

[GitHub] [beam] kennknowles opened a new issue, #19405: SyntheticSource option forceNumInitialBundles is not optional in all cases

kennknowles opened a new issue, #19405:
URL: https://github.com/apache/beam/issues/19405

   It fails when numRecords is between 1 and  3.
   
   I noticed it by running SyntheticDataPublisher:
   ```
   
   ./gradlew :beam-sdks-java-load-tests:run -PloadTest.args='--pubSubTopic=projects/apache-beam-io-testing/topics/loadtests 
   --sourceOptions={"numRecords":2}' -PloadTest.mainClass="org.apache.beam.sdk.loadtests.SyntheticDataPublisher"
   ```
   
    
   
   The exception:
   
    
   ```
   
   Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit
        
     at org.apache.beam.sdk.io.synthetic.BundleSplitter.getRelativeBundleSizes(BundleSplitter.java:60)
    
         at org.apache.beam.sdk.io.synthetic.BundleSplitter.getBundleSizes(BundleSplitter.java:39)
      
       at org.apache.beam.sdk.io.synthetic.SyntheticBoundedSource.split(SyntheticBoundedSource.java:146)
    
         at org.apache.beam.runners.direct.BoundedReadEvaluatorFactory$InputProvider.getInitialInputs(BoundedReadEvaluatorFactory.java:214)
    
         at org.apache.beam.runners.direct.ReadEvaluatorFactory$InputProvider.getInitialInputs(ReadEvaluatorFactory.java:89)
    
         at org.apache.beam.runners.direct.RootProviderRegistry.getInitialInputs(RootProviderRegistry.java:76)
    
         at org.apache.beam.runners.direct.ExecutorServiceParallelExecutor.start(ExecutorServiceParallelExecutor.java:155)
    
         at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:208)
           at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:67)
    
         at org.apache.beam.sdk.Pipeline.run(Pipeline.java:313)
           at org.apache.beam.sdk.Pipeline.run(Pipeline.java:299)
    
         at org.apache.beam.sdk.loadtests.SyntheticDataPublisher.main(SyntheticDataPublisher.java:150)
   
   ```
   
    
   
   Imported from Jira [BEAM-7497](https://issues.apache.org/jira/browse/BEAM-7497). Original Jira may contain additional context.
   Reported by: kasiak.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org