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

release-20.2: cli,server: fix the profile file name generation #55366

Merged
merged 2 commits into from Oct 16, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Oct 9, 2020

Backport 1/1 commits from #55364.
Backport 1/1 commits from #55630

/cc @cockroachdb/release


@knz knz requested a review from tbg October 9, 2020 08:08
@knz knz requested a review from a team as a code owner October 9, 2020 08:08
@knz knz added this to In progress in DB Server & Security via automation Oct 9, 2020
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz
Copy link
Contributor Author

knz commented Oct 12, 2020

woah no I made it worse. Need to tweak this.

@knz knz marked this pull request as draft October 12, 2020 11:34
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.
The previous code was generating timestamps with format `.999` which
caused trailing zeroes to be truncated.

Since filenames with this format may still be present in data
directories, this patch makes the code tolerate them.

Release note: None
@knz knz marked this pull request as ready for review October 16, 2020 12:25
@knz
Copy link
Contributor Author

knz commented Oct 16, 2020

ready for review now

@knz knz merged commit 973a6f3 into cockroachdb:release-20.2 Oct 16, 2020
DB Server & Security automation moved this from In progress to Done 21.1 Oct 16, 2020
@knz knz deleted the backport20.2-55364 branch October 16, 2020 16:50
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.

None yet

3 participants