[ 
https://issues.apache.org/jira/browse/KAFKA-5105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350970#comment-16350970
 ] 

Dmitry Minkovsky commented on KAFKA-5105:
-----------------------------------------

Specifically, from the mailing list archive, Damien writes:
{quote}I think what you are seeing is that the order is not guaranteed across
 partitions. When you use Queryable State you are actually querying multiple
 underlying stores, i.e., one per partition. The implementation iterates
 over one store/partition at a time, so the ordering will appear random.
 This could be improved
{quote}
So this is only true when you're using Interactive Queries? Certainly this 
cannot be true when you've obtained a state storeĀ using 
{{ProcessorContext#getStateStore()}}.

> ReadOnlyKeyValueStore range scans are not ordered
> -------------------------------------------------
>
>                 Key: KAFKA-5105
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5105
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>    Affects Versions: 0.10.2.0
>            Reporter: Dmitry Minkovsky
>            Priority: Major
>
> Following up with this thread 
> https://www.mail-archive.com/users@kafka.apache.org/msg25373.html
> Although ReadOnlyKeyValueStore's #range() is documented not to returns values 
> in order, it would be great if it would for keys within a single partition. 
> This would facilitate using interactive queries and local state as one would 
> use HBase to index data by prefixed keys. If range returned keys in 
> lexicographical order, I could use interactive queries for all my data needs 
> except search.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to