You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Jeffrey Wang <jw...@palantir.com> on 2011/06/23 23:55:19 UTC

hinted handoff sleeping

Hey all,

 

We're running a slightly patched version of 0.7.3 on a cluster of 5 nodes.
I've been noticing a number of messages in our logs which look like this
(after a node goes "down" and comes back up, usually just due to a GC):

 

2011-06-23 14:46:35,381 INFO [HintedHandoff:1]
org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpoint(HintedHa
ndOffManager.java:290) {USER='',IP=''} - Sleeping 32649ms to stagger hint
delivery

 

The interesting thing is that we have hinted_handoff_enabled = false in the
YAML configuration, so it always says 0 rows are handed off (later, after
the sleep). Thus this sleeping seems quite wasteful. Is this part of the
code supposed to be reach even with hinted handoff disabled? Thanks.

 

-Jeffrey

 


Re: hinted handoff sleeping

Posted by Jonathan Ellis <jb...@gmail.com>.
(1) you should upgrade to a stable release instead of a frankenbuild

(2) hh_enabled just controls whether it creates new hints.  it will
still attempt to deliver existing ones.  this is essentially free if
no such hints exist.

tldr: it's harmless.

On Thu, Jun 23, 2011 at 4:55 PM, Jeffrey Wang <jw...@palantir.com> wrote:
> Hey all,
>
>
>
> We’re running a slightly patched version of 0.7.3 on a cluster of 5 nodes.
> I’ve been noticing a number of messages in our logs which look like this
> (after a node goes “down” and comes back up, usually just due to a GC):
>
>
>
> 2011-06-23 14:46:35,381 INFO [HintedHandoff:1]
> org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpoint(HintedHandOffManager.java:290)
> {USER='',IP=''} - Sleeping 32649ms to stagger hint delivery
>
>
>
> The interesting thing is that we have hinted_handoff_enabled = false in the
> YAML configuration, so it always says 0 rows are handed off (later, after
> the sleep). Thus this sleeping seems quite wasteful. Is this part of the
> code supposed to be reach even with hinted handoff disabled? Thanks.
>
>
>
> -Jeffrey
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

RE: hinted handoff sleeping

Posted by Jeffrey Wang <jw...@palantir.com>.
No, it's always been off. No hints are being delivered ever, but the HintedHandoffManager still does some stuff when nodes come back online.

-Jeffrey

-----Original Message-----
From: Ryan King [mailto:ryan@twitter.com] 
Sent: Thursday, June 23, 2011 3:00 PM
To: user@cassandra.apache.org
Subject: Re: hinted handoff sleeping

On Thu, Jun 23, 2011 at 2:55 PM, Jeffrey Wang <jw...@palantir.com> wrote:
> Hey all,
>
>
>
> We’re running a slightly patched version of 0.7.3 on a cluster of 5 nodes.
> I’ve been noticing a number of messages in our logs which look like this
> (after a node goes “down” and comes back up, usually just due to a GC):
>
>
>
> 2011-06-23 14:46:35,381 INFO [HintedHandoff:1]
> org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpoint(HintedHandOffManager.java:290)
> {USER='',IP=''} - Sleeping 32649ms to stagger hint delivery
>
>
>
> The interesting thing is that we have hinted_handoff_enabled = false in the
> YAML configuration, so it always says 0 rows are handed off (later, after
> the sleep). Thus this sleeping seems quite wasteful. Is this part of the
> code supposed to be reach even with hinted handoff disabled? Thanks.

Did you previously run with HH on? That config setting prohibits new
hints from being created, but doesn't prevent existing ones from being
delivered.

-ryan

Re: hinted handoff sleeping

Posted by Ryan King <ry...@twitter.com>.
On Thu, Jun 23, 2011 at 2:55 PM, Jeffrey Wang <jw...@palantir.com> wrote:
> Hey all,
>
>
>
> We’re running a slightly patched version of 0.7.3 on a cluster of 5 nodes.
> I’ve been noticing a number of messages in our logs which look like this
> (after a node goes “down” and comes back up, usually just due to a GC):
>
>
>
> 2011-06-23 14:46:35,381 INFO [HintedHandoff:1]
> org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpoint(HintedHandOffManager.java:290)
> {USER='',IP=''} - Sleeping 32649ms to stagger hint delivery
>
>
>
> The interesting thing is that we have hinted_handoff_enabled = false in the
> YAML configuration, so it always says 0 rows are handed off (later, after
> the sleep). Thus this sleeping seems quite wasteful. Is this part of the
> code supposed to be reach even with hinted handoff disabled? Thanks.

Did you previously run with HH on? That config setting prohibits new
hints from being created, but doesn't prevent existing ones from being
delivered.

-ryan