Aiven-Open / Aiven-Open/cloud-storage-connectors-for-apache-kafka

GcsSinkTaskGroupByTopicPartitionPropertiesTest.limited takes very long time

未關閉
#261 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
GCS
主要語言
Java
星號
58
分支
39
平均合併
2 天 10 小時
30 天內合併 PR
5

描述

After upgrade to `google-cloud-nio:0.123.24` (and associated `google-cloud-storage:2.4.5`), `GcsSinkTaskGroupByTopicPartitionPropertiesTest.limited` started running very long time. It used to be a couple of minutes, but is unknown (I wan't patient enough to wait beyond 20 minutes).

Some crude profiling of [this line](https://github.com/aiven/gcs-connector-for-apache-kafka/blob/master/src/test/java/io/aiven/kafka/connect/common/grouper/GcsSinkTaskGroupByTopicPartitionPropertiesTest.java#L84)
```java
Instant started = Instant.now();
task.flush(null);
System.out.println(Duration.between(started, Instant.now()).toMillis());
```
shows that the time in `flush` grew about 10x.
No significant difference in profiles collected by `async-profiler` in `cpu` and `wall` modes.

The test will be disabled and should be enabled once this is fixed.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。