Skip to content

Commit

Permalink
Fix StackOverflowException in TableOperationSpanBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ndimiduk committed Jan 31, 2022
1 parent ee95e43 commit f719ca4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ private static Set<Operation> unpackRowOperations(final Row row) {
}
if (row instanceof RowMutations) {
final RowMutations mutations = (RowMutations) row;
ops.addAll(unpackRowOperations(mutations));
final List<Operation> operations = mutations.getMutations()
.stream()
.map(TableOperationSpanBuilder::valueFrom)
.collect(Collectors.toList());
ops.addAll(operations);
}
return ops;
}
Expand Down

0 comments on commit f719ca4

Please sign in to comment.