Skip to content

fix: show the full thread id in the thread table - #3274

Merged
hengyunabc merged 1 commit into
alibaba:masterfrom
kalayciburak:fix/thread-table-id-column
Oct 9, 2026
Merged

hengyunabc merged 1 commit into
alibaba:masterfrom
kalayciburak:fix/thread-table-id-column

Conversation

@kalayciburak

Copy link
Copy Markdown
Contributor

Summary

thread and dashboard give the ID column weight 1. At the default width of 80, Overflow.HIDDEN keeps only two characters, so 100 and 101 both render as 10 and the stack cannot be matched to a thread.

The ID column borrows weight from NAME, which is already clipped. The other columns keep their weights. A short id such as -1 still uses the previous layout.

Fixes #3270

Test plan

  • JAVA_HOME=11 ./mvnw -pl core test -Dtest=ViewRenderUtilTest -Dsurefire.failIfNoSpecifiedTests=false
    • RED at width 80: 100123 rendered as 10
    • GREEN: 100123, 100, and 101 are fully visible; -1 and the DAEMON column still render
  • JAVA_HOME=11 ./mvnw -pl core test — ViewRenderUtilTest passed with the module suite. FileUtilsTest.testOpenOutputStreamCannotWrite failed because this environment can write the fixture path; that test is unrelated to this change.

The ID column weight was 1, so at the default width of 80 Overflow.HIDDEN
kept only two characters. 100 and 101 both rendered as 10. Borrow weight
from the NAME column, which is already clipped, and leave the other columns
unchanged.

Fixes alibaba#3270
@hengyunabc
hengyunabc merged commit af68995 into alibaba:master Oct 9, 2026
11 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

thread 显示的线程ID 只能显示2位数字,长线程ID会被截断,导致不同线程出现相同ID,无法准确查看到堆栈细节

2 participants