File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -23379,6 +23379,12 @@ playground_topic_produce_command() {
2337923379 then
2338023380 log "💫 --record-size is set, forcing --no-null"
2338123381 no_null="true"
23382+
23383+ if [ $nb_messages -ge 100000 ] && [ $record_size -ge 10000 ]
23384+ then
23385+ logwarn "💫 --record-size with high value $record_size and --nb-messages $nb_messages is high, forcing --max-nb-messages-to-generate to 100"
23386+ max_nb_messages_to_generate=100
23387+ fi
2338223388 fi
2338323389
2338423390 function identify_schema() {
Original file line number Diff line number Diff line change @@ -168,6 +168,12 @@ if [ "$record_size" != 0 ]
168168then
169169 log " 💫 --record-size is set, forcing --no-null"
170170 no_null=" true"
171+
172+ if [ $nb_messages -ge 100000 ] && [ $record_size -ge 10000 ]
173+ then
174+ logwarn " 💫 --record-size with high value $record_size and --nb-messages $nb_messages is high, forcing --max-nb-messages-to-generate to 100"
175+ max_nb_messages_to_generate=100
176+ fi
171177fi
172178
173179function identify_schema() {
You can’t perform that action at this time.
0 commit comments