Skip to content

Commit ce3baf0

Browse files
josh-newmanjcharum
authored andcommitted
bigslice: ensure non-zero partition size
Summary: This fixes a crash when using a custom chunk size. Test Plan: Ran a bigslice pipeline that used to crash (with chunk size flag set to 1). Reviewers: jcharumilind Reviewed By: jcharumilind Differential Revision: https://phabricator.grailbio.com/D52965 fbshipit-source-id: b32cc5f
1 parent 9f4a5d3 commit ce3baf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec/bigmachine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ func (w *worker) Run(ctx context.Context, req taskRunRequest, reply *taskRunRepl
926926
}
927927
return nil
928928
case task.NumPartition > 1:
929-
var psize = *defaultChunksize / 100
929+
var psize = (*defaultChunksize + 99) / 100
930930
var (
931931
partitionv = make([]frame.Frame, task.NumPartition)
932932
lens = make([]int, task.NumPartition)

0 commit comments

Comments
 (0)