[ERROR] (zkrb.c:834: errno: Bad file descriptor) select returned: -1 #37

Closed
eric opened this Issue Mar 22, 2013 · 1 comment

Projects

None yet

2 participants

@eric
Member
eric commented Mar 22, 2013

Every once in a while on long-running processes we see an infinite number of these messages until we restart the process:

[ERROR] (zkrb.c:834: errno: Bad file descriptor) select returned: -1

I noticed that the return value isn't checked in ext/zkrb.c:784:

  zookeeper_interest(zk->zh, &fd, &interest, &tv);

I would guess that that is the reason why ext/zkrb.c:808 is returning -1:

  rc = rb_thread_select(maxfd+1, &rfds, &wfds, &efds, &tv);
@eric eric added a commit to eric/zookeeper that referenced this issue Mar 22, 2013
@eric eric Add additional error reporting ddb1413
@slyphon
Contributor
slyphon commented Mar 27, 2013

Gah, I'll need to do some housekeeping soon.

On Friday, March 22, 2013, Eric Lindvall wrote:

Every once in a while on long-running processes we see an infinite number
of these messages until we restart the process:

[ERROR](zkrb.c:834: errno: Bad file descriptor) select returned: -1

I noticed that the return value isn't checked in ext/zkrb.c:784https://github.com/slyphon/zookeeper/blob/master/ext/zkrb.c#L784
:

zookeeper_interest(zk->zh, &fd, &interest, &tv);

I would guess that that is the reason why ext/zkrb.c:808https://github.com/slyphon/zookeeper/blob/master/ext/zkrb.c#L808is returning
-1:

rc = rb_thread_select(maxfd+1, &rfds, &wfds, &efds, &tv);


Reply to this email directly or view it on GitHubhttps://github.com/slyphon/zookeeper/issues/37
.

(sent from my mobile device)

@eric eric closed this Mar 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment