aws-samples / aws-samples/amazon-keyspaces-java-driver-helpers

AmazonKeyspacesFixedRateThrottler: Detected a synchronous API call on a driver thread, failing because this can cause deadlocks.

未关闭
#7 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
10
派生
6
PR 合并指标
30 天内没有已合并 PR

描述

Class `AmazonKeyspacesFixedRateThrottler` doesn't seem to work. The error is,

```
2024-04-23 01:08:22,107 ERROR [main] log.GlueLogger (GlueLogger.scala:error(7)): ERROR: Detected connectivity issue. Check the reference conf file/Glue connection for the source, the job is aborted java.io.IOException: Failed to open native connection to Cassandra at Profile based config at CassandraConnector.conf :: Error instantiating class com.aws.ssa.keyspaces.throttler.AmazonKeyspacesFixedRateThrottler (specified by advanced.throttler.class): Detected a synchronous API call on a driver thread, failing because this can cause deadlocks.
```

Here's the configuration block I'm using,

```
advanced.throttler {
class = com.aws.ssa.keyspaces.throttler.AmazonKeyspacesFixedRateThrottler
max-requests-per-second = 100
number-of-hosts = 3
register-timeout = 15 seconds
}
```

贡献指南

打开贡献指南

调研方向

Start by reproducing the failure with the AmazonKeyspacesFixedRateThrottler configuration shown in the issue and trace where the throttler is instantiated. Determine why synchronous API calls occur on the driver thread; done means the configuration initializes without the reported deadlock-prevention error.

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, java
领域
backend, databases
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。