Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli,server: fix the profile file name generation #55364

Merged
merged 1 commit into from Oct 9, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Oct 9, 2020

Fixes #54723

Prior to this patch, the timestamp part in the profile filenames was
using go format .999 for the millisecond part. However, .999
causes the millisecond part to be omitted entirely if they happen to
be zero. The correct format was in fact .000.

Release note (bug fix): The file names for generated goroutine, CPU
and memory profiles were sometimes incorrect, resulting in repeated
warnings like strconv.ParseUint: parsing "txt": invalid syntax in
log files. This has been corrected.

@knz knz requested review from tbg and yuzefovich October 9, 2020 07:41
@knz knz requested a review from a team as a code owner October 9, 2020 07:41
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz added this to In progress in DB Server & Security via automation Oct 9, 2020
Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @yuzefovich)

@knz
Copy link
Contributor Author

knz commented Oct 9, 2020

thx

bors r=tbg

@craig
Copy link
Contributor

craig bot commented Oct 9, 2020

Build failed:

Prior to this patch, the timestamp part in the profile filenames was
using go format `.999` for the millisecond part. However, `.999`
causes the millisecond part to be omitted entirely if they happen to
be zero. The correct format was in fact `.000`.

Release note (bug fix): The file names for generated goroutine, CPU
and memory profiles were sometimes incorrect, resulting in repeated
warnings like `strconv.ParseUint: parsing "txt": invalid syntax` in
log files. This has been corrected.
@knz
Copy link
Contributor Author

knz commented Oct 9, 2020

typo

bors r=tbg

@craig
Copy link
Contributor

craig bot commented Oct 9, 2020

Build succeeded:

@craig craig bot merged commit 242565d into cockroachdb:master Oct 9, 2020
DB Server & Security automation moved this from In progress to Done 21.1 Oct 9, 2020
@knz knz deleted the 20201009-heap branch October 9, 2020 10:12
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.

heapprofiler: an error about parsing a file name
3 participants