cockroachdb / cockroachdb/sqlalchemy-cockroachdb

test_retry_non_txn slow with serializable&non-pushable

Đang mở
#3 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
156
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Adding to @bdarnell's comment in `test_retry_non_txn`:

```
# The write/write can't-push test cases take 15 seconds each.
# TODO: why? because the go version uses Store.SetRangeRetryOptions?
#(Methods.Put, data_pb2.SNAPSHOT, False, 1),
#(Methods.Put, data_pb2.SERIALIZABLE, False, 1),
# Read/write conflicts.
```

I have found that the test cases present still incur a 15sec wait for me, unless I comment the last one:

```
test_cases = [
# Write/write conflicts.
(Methods.Put, data_pb2.SNAPSHOT, True, 2),
(Methods.Put, data_pb2.SERIALIZABLE, True, 2),
# The write/write can't-push test cases take 15 seconds each.
# TODO: why? because the go version uses Store.SetRangeRetryOptions?
#(Methods.Put, data_pb2.SNAPSHOT, False, 1),
#(Methods.Put, data_pb2.SERIALIZABLE, False, 1),
# Read/write conflicts.
(Methods.Get, data_pb2.SNAPSHOT, True, 1),
(Methods.Get, data_pb2.SERIALIZABLE, True, 2),
(Methods.Get, data_pb2.SNAPSHOT, False, 1),
#(Methods.Get, data_pb2.SERIALIZABLE, False, 1),
]
```

This test appears to be reliably slow (~19sec for all tests) with the last case, and fast (~4sec for all tests) without it.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.