apache / apache/pulsar-client-cpp

Flaky test: ProducerTest.testWaitForExclusiveProducer

Đang mở
#135 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C++
Star
71
Fork
90
Merge trung bình
2 giờ 33 phút
Pull request đã merge (30 ngày)
3

Mô tả

[example failure](https://github.com/apache/pulsar-client-cpp/actions/runs/3589998748/jobs/6042967481)

```
FAILED TESTS (1/376):
166 ms: ./pulsar-tests ProducerTest.testWaitForExclusiveProducer (try #1)
```

```
[ RUN ] ProducerTest.testWaitForExclusiveProducer
2022-12-01 06:25:37.989 INFO [140250769911488] ClientConnection:189 | [ -> pulsar://localhost:6650] Create ClientConnection, timeout=10000
2022-12-01 06:25:37.989 INFO [140250769911488] ConnectionPool:97 | Created connection for pulsar://localhost:6650
2022-12-01 06:25:37.991 INFO [140250766808640] ClientConnection:379 | [[::1]:37744 -> [::1]:6650] Connected to broker
2022-12-01 06:25:37.997 INFO [140250766808640] HandlerBase:72 | [persistent://public/default/testWaitForExclusiveProducer1669875937, p-name-1] Getting connection from pool
2022-12-01 06:25:38.038 INFO [140250766808640] ProducerImpl:190 | [persistent://public/default/testWaitForExclusiveProducer1669875937, p-name-1] Created producer on broker [[::1]:37744 -> [::1]:6650]
2022-12-01 06:25:38.043 INFO [140250769911488] ProducerImpl:721 | [persistent://public/default/testWaitForExclusiveProducer1669875937, p-name-1] Closing producer for topic persistent://public/default/testWaitForExclusiveProducer1669875937
2022-12-01 06:25:38.044 INFO [140250766808640] ProducerImpl:687 | [persistent://public/default/testWaitForExclusiveProducer1669875937, p-name-1] Closed producer 0
2022-12-01 06:25:38.045 INFO [140250766808640] HandlerBase:72 | [persistent://public/default/testWaitForExclusiveProducer1669875937, p-name-2] Getting connection from pool
2022-12-01 06:25:38.053 INFO [140250766808640] ProducerImpl:190 | [persistent://public/default/testWaitForExclusiveProducer1669875937, p-name-2] Created producer on broker [[::1]:37744 -> [::1]:6650]
/home/runner/work/pulsar-client-cpp/pulsar-client-cpp/tests/ProducerTest.cc:331: Failure
Expected equality of these values:
ResultOk
Which is: Ok
producer2.send(MessageBuilder().setContent("content").build())
Which is: ProducerNotInitialized
```

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với tests/ProducerTest.cc tại dòng 331 và chạy ProducerTest.testWaitForExclusiveProducer, sử dụng lỗi CI được liên kết làm cơ sở. Theo dõi quá trình khởi tạo và chuỗi send của producer2 để xác định tại sao send có thể quan sát thấy ProducerNotInitialized. Hoàn thành có nghĩa là bài kiểm thử luôn vượt qua một cách ổn định trong khi vẫn giữ nguyên hành vi producer độc quyền.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp
Lĩnh vực
testing
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
32/100

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.