pingcap/go-ycsb

Retry after connection timeout

fnikolai opened this issue · 0 comments

For postgresql there is a race condition between the time the database is up and running, and the time YCSB start sending keys.

Given the lack of a retry mechanism, the client fails immediately with the following error.

create db postgresql failed dial tcp 10.110.13.248:26257: connect: connection refused

A simple retry mechanism with backoff time would solve it.