Skip to content

master: add v8.5.7 support info for performance_schema_session_connect_attrs_size#23172

Merged
ti-chi-bot[bot] merged 2 commits into
pingcap:masterfrom
ti-chi-bot:cherry-pick-22775-to-master
Jul 9, 2026
Merged

master: add v8.5.7 support info for performance_schema_session_connect_attrs_size#23172
ti-chi-bot[bot] merged 2 commits into
pingcap:masterfrom
ti-chi-bot:cherry-pick-22775-to-master

Conversation

@ti-chi-bot

Copy link
Copy Markdown
Member

This is an automated cherry-pick of #22775

This is an automated cherry-pick of #22547

First-time contributors' checklist

What is changed, added or deleted? (Required)

This PR updates docs according to pingcap/tidb#66617:

  • Add Session_connect_attrs (json) to the schema examples of INFORMATION_SCHEMA.SLOW_QUERY and INFORMATION_SCHEMA.CLUSTER_SLOW_QUERY.
  • Add the system variable doc for performance_schema_session_connect_attrs_size (default/range/-1 behavior/truncation/1 MiB hard limit note).
  • Add status variable docs:
    • Performance_schema_session_connect_attrs_longest_seen
    • Performance_schema_session_connect_attrs_lost
  • Update SESSION_CONNECT_ATTRS doc with size limit and truncation behavior.

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

What is the related PR or file link(s)?

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@ti-chi-bot ti-chi-bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. lgtm size/M Denotes a PR that changes 30-99 lines, ignoring generated files. type/cherry-pick-for-master This PR is cherry-picked to master from a source PR. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR. v9.0-beta.3 This PR/issue applies to TiDB v9.0-beta.3. labels Jun 30, 2026
@ti-chi-bot ti-chi-bot self-assigned this Jun 30, 2026
@ti-chi-bot

Copy link
Copy Markdown
Member Author

@ti-chi-bot This PR has conflicts, I have hold it.
Please resolve them or ask others to resolve them, then comment /unhold to remove the hold label.

@ti-chi-bot

ti-chi-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 30, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several documentation files to reflect support for logging session connection attributes to the slow query log in v8.5.7. However, the changes introduce unresolved Git merge conflicts across all modified files, including information-schema-slow-query.md, performance-schema-session-connect-attrs.md, system-variable-reference.md, and system-variables.md. The reviewer feedback correctly identifies these conflicts and requests their resolution by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +227 to +231
<<<<<<< HEAD
The `Session_connect_attrs` column stores session connection attributes in JSON format parsed from the slow log. TiDB controls the maximum payload size written to this field using [`performance_schema_session_connect_attrs_size`](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v900).
=======
The `Session_connect_attrs` column stores session connection attributes in JSON format parsed from the slow log. TiDB controls the maximum payload size written to this field using [`performance_schema_session_connect_attrs_size`](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v857).
>>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers:

The Session_connect_attrs column stores session connection attributes in JSON format parsed from the slow log. TiDB controls the maximum payload size written to this field using performance_schema_session_connect_attrs_size.

Comment on lines +72 to +76
<<<<<<< HEAD
TiDB uses the [`performance_schema_session_connect_attrs_size`](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v900) global system variable to control the maximum total size of connection attributes per session.
=======
TiDB uses the [`performance_schema_session_connect_attrs_size`](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v857) global system variable to control the maximum total size of connection attributes per session.
>>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers:

TiDB uses the performance_schema_session_connect_attrs_size global system variable to control the maximum total size of connection attributes per session.

Comment thread system-variable-reference.md Outdated
Comment on lines +608 to +612
<<<<<<< HEAD
- [System Variables](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v900)
=======
- [System Variables](/system-variables.md#performance_schema_session_connect_attrs_size-new-in-v857)
>>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers:

Comment thread system-variables.md Outdated
Comment on lines +814 to +818
<<<<<<< HEAD
### performance_schema_session_connect_attrs_size <span class="version-mark">New in v9.0.0</span>
=======
### performance_schema_session_connect_attrs_size <span class="version-mark">New in v8.5.7</span>
>>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an unresolved merge conflict here. Please resolve it by keeping the v8.5.7 version and removing the v9.0.0 version and conflict markers.

Suggested change
<<<<<<< HEAD
### performance_schema_session_connect_attrs_size <span class="version-mark">New in v9.0.0</span>
=======
### performance_schema_session_connect_attrs_size <span class="version-mark">New in v8.5.7</span>
>>>>>>> 68bb5e64f0 (v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775))
### performance_schema_session_connect_attrs_size <span class="version-mark">New in v8.5.7</span>

@qiancai qiancai changed the title v8.5.7: support logging session connect attrs to slow query log (#22547) (#22775) master: add v8.5.7 support info for performance_schema_session_connect_attrs_size Jul 9, 2026
@qiancai

qiancai commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

/approve

@ti-chi-bot ti-chi-bot Bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 9, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiancai

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Jul 9, 2026
@qiancai qiancai removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 9, 2026
@ti-chi-bot ti-chi-bot Bot merged commit 0492bad into pingcap:master Jul 9, 2026
11 checks passed
@ti-chi-bot ti-chi-bot Bot deleted the cherry-pick-22775-to-master branch July 9, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. lgtm size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. type/cherry-pick-for-master This PR is cherry-picked to master from a source PR. type/cherry-pick-for-release-8.5 This PR is cherry-picked to release-8.5 from a source PR. v9.0-beta.3 This PR/issue applies to TiDB v9.0-beta.3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants