Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
yirutang committed Nov 10, 2023
1 parent cebe9b9 commit 388ee54
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1573,17 +1573,18 @@ public void testLargeRequest() throws IOException, InterruptedException, Executi
StreamWriter.newBuilder(parent.toString() + "/_default")
.setWriterSchema(CreateProtoSchemaWithColField())
.build()) {
List<Integer> sizeSet = Arrays.asList(15 * 1024 * 1024);
List<Integer> sizeSet = Arrays.asList(15 * 1024 * 1024, 1024);
List<ApiFuture<AppendRowsResponse>> responseList =
new ArrayList<ApiFuture<AppendRowsResponse>>();
Random r = new Random();
for (int i = 0; i < 50; i++) {
int size = sizeSet.get(r.nextInt(2));
LOG.info("Sending size: " + size);
responseList.add(
streamWriter.append(
CreateProtoRows(
new String[] {
new String(new char[sizeSet.get(0)])
.replace('\u0000', (char) (r.nextInt(26) + 'a'))
new String(new char[size]).replace('\u0000', (char) (r.nextInt(26) + 'a'))
})));
}
for (int i = 0; i < 50; i++) {
Expand Down

0 comments on commit 388ee54

Please sign in to comment.