Azure / Azure/Azure-Spring-Apps
partitionOwnershipExpirationInterval setting not applied
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 9
- Fork
- 11
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Describe the bug**
We are using **spring-cloud-azure-starter-eventhubs** version 7.4.0. We have configured rebalancing and partition ownership expiration internal as per documentation:
```
spring:
cloud:
azure:
eventhubs:
processor:
load-balancing:
partition-ownership-expiration-interval: 30s
update-interval: 10s
```
We can clearly see in logs that load balancing is performed every 10s, as configured, but partition ownership is only re-assigned after the default 2 minutes. The configuration property is ignored.
**To Reproduce**
Create an eventhubs consumer with above configuration. It is sufficient to make it listen to a topic with only one partition configured. Then stop the pod/instance, at which point a new instance will automatically be started up. In the logs, it can be seen that the new instance performs load balancing every 10s, but only after 2 minutes it obtains ownership of the partition that was released by the earlier terminated listener.
**Expected behavior**
The new consumer should be granted ownership of the partition after 30s, as per configuration.
**Screenshots**
n/a
**Additional context**
n/a
**Can we contact you for additional details?**
Y
If yes, please send us your contact information to AzureSpringCloud-Talk@service.microsoft.com and include the issue number in the email title.
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
Hướng nghiên cứu
Bắt đầu bằng cách truy vết cấu hình processor của Spring Cloud Azure Event Hubs cho partition-ownership-expiration-interval và thiết lập cân bằng tải của nó. Tái hiện với một topic có một partition, khoảng thời gian hết hạn 30 giây và một instance đã bị dừng; được coi là hoàn tất khi consumer thay thế nhận được ownership sau khoảng 30 giây thay vì hai phút mặc định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, spring, spring-boot
- Lĩnh vực
- cloud, distributed-systems
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100