Project

General

Profile

Actions

Feature #6507

closed

librados shouldn't block indefinitely when cluster doesn't respond

Added by Wido den Hollander over 10 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
librados
Target version:
-
% Done:

0%

Spent time:
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Currently calls like rados_connect(), rados_ioctx_create(), rados_read() block for ever if the Ceph cluster isn't responding.

A parameter which configures a timeout would be useful in a lot of situations so applications can fail when the Ceph cluster is not responding rather then simply hang for ever.

My use-case here is libvirt, when it calls a storagePoolRefresh it tries to query for RBD images, but if the Ceph cluster isn't responding libvirt will eventually lock up.


Files

radostimeout.c (1.31 KB) radostimeout.c Wido den Hollander, 02/03/2014 02:41 AM
Actions

Also available in: Atom PDF