Skip to content

[Question] "in_order" and "is_leader" settings corelation #2600

@igor-sh8

Description

@igor-sh8

Hello.
I have a small question about how the config setting "in_order" and replicated table state "is_leader" is correlate.
Example of config of the one shard:

<replica>
<host>ch1</host>
<port>9000</port>
</replica>
<replica>
<host>ch2</host>
<port>9000</port>
</replica>

As I understand the "in_order" config allow us to use the first server (ch1) as a main for "SELECT" queries.
When I run a query on a table on such shard "SELECT * FROM system.replicas WHERE table = 'table1'" I see that "is_leader" set to ch2 server.
So, the question is how "in_order" and "is_leader" correlate ? Is it normal, or maybe "in_order" is counted from the end ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions