Skip to content

Commit 6c23f50

Browse files
Reduce query size limit (#886)
1 parent a9f7b16 commit 6c23f50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/internal_event_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import (
4141
)
4242

4343
const (
44-
queryResultSizeLimit = 10000000 // 10M
44+
queryResultSizeLimit = 2000000 // 2MB
4545
)
4646

4747
// Assert that structs do indeed implement the interfaces

test/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (ts *IntegrationTestSuite) TestLargeQueryResultError() {
339339

340340
queryErr, ok := err.(*shared.QueryFailedError)
341341
ts.True(ok)
342-
ts.Equal("query result size (20000000) exceeds limit (10000000)", queryErr.Message)
342+
ts.Equal("query result size (3000000) exceeds limit (2000000)", queryErr.Message)
343343
ts.Nil(value)
344344
}
345345

test/workflow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ func (w *Workflows) SimplestWorkflow(ctx workflow.Context) (string, error) {
397397

398398
func (w *Workflows) LargeQueryResultWorkflow(ctx workflow.Context) (string, error) {
399399
err := workflow.SetQueryHandler(ctx, "large_query", func() ([]byte, error) {
400-
result := make([]byte, 20000000)
400+
result := make([]byte, 3000000)
401401
rand.Read(result)
402402
return result, nil
403403
})

0 commit comments

Comments
 (0)