Skip to content

Commit fd86a7c

Browse files
committed
address review comments
1 parent d801a9c commit fd86a7c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

encoding/codecv7_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"math/big"
1010
"math/rand"
1111
"net/http"
12-
_ "net/http"
1312
_ "net/http/pprof"
1413
"strings"
1514
"testing"
@@ -22,8 +21,8 @@ import (
2221
"github.com/stretchr/testify/require"
2322
)
2423

25-
// TestDecodeAllDeadlock tests the decompression of random bytes to trigger deadlock in zstd library.
26-
24+
// TestDecodeAllDeadlock tests the decompression of random bytes to trigger deadlock in zstd library
25+
// with setting of zstd.WithDecoderConcurrency(2).
2726
func TestDecodeAllDeadlock(t *testing.T) {
2827
t.Skip("Skip test that triggers deadlock in zstd library")
2928

encoding/da.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func decompressScrollBlobToBatch(compressedBytes []byte) ([]byte, error) {
552552
batchOfBytes := make([]byte, readBatchSize)
553553

554554
r := bytes.NewReader(compressedBytes)
555-
zr, err := zstd.NewReader(r)
555+
zr, err := zstd.NewReader(r, zstd.WithDecoderConcurrency(1))
556556
if err != nil {
557557
return nil, err
558558
}

0 commit comments

Comments
 (0)