Skip to content

Support configuring session variable in lightning logical backend #47305

@guoshouyan

Description

@guoshouyan

Feature Request

Can lightning support specifying session variables to use in lightning config?

In our case, we want to disable the async_commit in lightning, that is because during our test on stale read on TiDB cluster, we find out that async_commit could block stale_ts, which will block the whole tikv node. Since this issue will not be solved in a short time, we want to disable the async_commit in lightning for now and here is my pr: #46961

But I think we can generalize it by enabling lightning to let users specify a lit of session variable in the config that they want to use.

What is your thinking on this?

Is your feature request related to a problem? Please describe:

Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

Metadata

Metadata

Assignees

Labels

type/feature-requestCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions