[ https://issues.apache.org/jira/browse/HUDI-473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17113893#comment-17113893 ]
Bhavani Sudha commented on HUDI-473: ------------------------------------ [~zhangpu-paul] I believe you can reproduce this exception when doing dataGen.generateUpdates before calling any other dataGen's methods(including dataGen.generateInserts) . This is happening because numExistingKeys would be 0 since no Inserts happened yet. This class QuickStartUtils is meant specifically for [Hudi quickstart page|https://hudi.apache.org/docs/quick-start-guide.html] and works on the assumption a user trying the quickstart page would first try insert and then update. Also the usage assumes some one is trying this in a single process. If you are already using it in that way, can you paste the spark-shell command you are using when you got this exception? I can debug this further. Otherwise, I think this exception is expected. > IllegalArgumentException in QuickstartUtils > -------------------------------------------- > > Key: HUDI-473 > URL: https://issues.apache.org/jira/browse/HUDI-473 > Project: Apache Hudi (incubating) > Issue Type: Improvement > Components: Usability > Reporter: zhangpu > Assignee: Bhavani Sudha > Priority: Minor > Labels: bug-bash-0.6.0, starter > > First call dataGen.generateInserts to write the data,Then another process > call dataGen.generateUpdates ,Throws the following exception: > Exception in thread "main" java.lang.IllegalArgumentException: bound must be > positive > at java.util.Random.nextInt(Random.java:388) > at > org.apache.hudi.QuickstartUtils$DataGenerator.generateUpdates(QuickstartUtils.java:163) > Is the design reasonable? -- This message was sent by Atlassian Jira (v8.3.4#803005)