DefaultRetryPolicy - 写入超时

DefaultRetryPolicy - write timeout

DefaultRetryPolicy 的文档说

This policy retries queries in only two cases:

On a read timeout, if enough replicas replied but data was not retrieved. On a write timeout, if we timeout while writing the distributed log used by batch statements. This retry policy is conservative in that it will never retry with a different consistency level than the one of the initial operation.

这是否意味着当我在不使用任何自定义重试策略的情况下执行简单的 session.execute(BoundStatement) 并获得写入超时时,默认重试策略将启动并且将重试以再次写入数据? "distributed log used by batch statements" 是什么意思?

如果您没有指定任何特定的重试策略,驱动程序将使用 DefaultRetryPolicy

默认情况下,写入超时重试适用于记录批处理操作(记录批处理强制执行原子性)。

在非批处理的情况下,写超时不会发生重试