cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Podkowinski (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-11960) Hints are not seekable
Date Wed, 22 Jun 2016 11:45:58 GMT


Stefan Podkowinski commented on CASSANDRA-11960:

I just noticed that {{HintsReader.PagesIterator}} will create pages based on the current position
in the data input. My approach assumed that we could just skip pages from the iterator to
resume dispatching hints from the last send page. But this won't work as long as you are not
actually consuming the pages and you'll always get the first hint as long as you don't move
the input ahead. So I'm wondering if the whole approach really makes sense or if we need to
bite the bullet and make the reader seekable, if thats possible.

> Hints are not seekable
> ----------------------
>                 Key: CASSANDRA-11960
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Robert Stupp
>            Assignee: Stefan Podkowinski
> Got the following error message on trunk. No idea how to reproduce. But the only thing
the (not overridden) seek method does is throwing this exception.
> {code}
> ERROR [HintsDispatcher:2] 2016-06-05 18:51:09,397 - Exception
in thread Thread[HintsDispatcher:2,1,main]
> java.lang.UnsupportedOperationException: Hints are not seekable.
> 	at ~[main/:na]
> 	at ~[main/:na]
> 	at org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask.deliver(
> 	at org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask.dispatch(
> 	at org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask.dispatch(
> 	at org.apache.cassandra.hints.HintsDispatchExecutor$
> 	at java.util.concurrent.Executors$ ~[na:1.8.0_91]
> 	at ~[na:1.8.0_91]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker( ~[na:1.8.0_91]
> 	at java.util.concurrent.ThreadPoolExecutor$ [na:1.8.0_91]
> 	at [na:1.8.0_91]
> {code}

This message was sent by Atlassian JIRA

View raw message