[ 
https://issues.apache.org/jira/browse/IGNITE-24357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Lapin updated IGNITE-24357:
-------------------------------------
    Description: 
h3. Motivation

Within colocation track we should ensure that table-specific requests are 
properly processed by the table processor. GetEstimatedSizeRequest is on of 
such requests. Worth mentioning that we already have special TableAware 
interface 

 
{code:java}
/**
 * Generic interface for all messages about concrete table.
 */
public interface TableAware extends NetworkMessage {
    /** Table Id. */
    int tableId();
} {code}
that should be extended in order to have an ability to send a request to 
specific table processor. See ReadWriteSingleRowReplicaRequest for example

 
{code:java}
public interface ReadWriteSingleRowReplicaRequest extends ... TableAware {code}
A bit of a context: GetEstimatedSizeRequest on it's own is just a part of 
special feature to retrieve approximate size of a table in a fast manner, 
without actual scan over partitions data.
h3. Definition of Done
 * It's possible to retrieve estimated size of a table within colocation track. 
It is necessary to write an appropriate test to check this.

h3. Implementation Notes
 * GetEstimatedSizeRequest should extend TableAware.
 * Corresponding GetEstimatedSizeRequest build should be adjusted in order to 
set tableId.

> Adjust GetEstimatedSizeRequest to be TableAware one
> ---------------------------------------------------
>
>                 Key: IGNITE-24357
>                 URL: https://issues.apache.org/jira/browse/IGNITE-24357
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Alexander Lapin
>            Priority: Major
>              Labels: ignite-3
>
> h3. Motivation
> Within colocation track we should ensure that table-specific requests are 
> properly processed by the table processor. GetEstimatedSizeRequest is on of 
> such requests. Worth mentioning that we already have special TableAware 
> interface 
>  
> {code:java}
> /**
>  * Generic interface for all messages about concrete table.
>  */
> public interface TableAware extends NetworkMessage {
>     /** Table Id. */
>     int tableId();
> } {code}
> that should be extended in order to have an ability to send a request to 
> specific table processor. See ReadWriteSingleRowReplicaRequest for example
>  
> {code:java}
> public interface ReadWriteSingleRowReplicaRequest extends ... TableAware 
> {code}
> A bit of a context: GetEstimatedSizeRequest on it's own is just a part of 
> special feature to retrieve approximate size of a table in a fast manner, 
> without actual scan over partitions data.
> h3. Definition of Done
>  * It's possible to retrieve estimated size of a table within colocation 
> track. It is necessary to write an appropriate test to check this.
> h3. Implementation Notes
>  * GetEstimatedSizeRequest should extend TableAware.
>  * Corresponding GetEstimatedSizeRequest build should be adjusted in order to 
> set tableId.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to