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

pkg/cli: validate input file in tsdump command #139731

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

arjunmahishi
Copy link
Contributor

In the tsdump command, when the --format is datadog or datadoginit, the input file is a mandatory argument. This commit adds validation logic for it before it's used to prevent panic.

Fixes: #138170
Epic: none

In the tsdump command, when the --format is datadog or datadoginit, the
input file is a mandatory argument. This commit adds validation logic
for it before it's used to prevent panic.

Fixes: cockroachdb#138170
Epic: none
@arjunmahishi arjunmahishi requested review from a team as code owners January 24, 2025 14:09
@arjunmahishi arjunmahishi requested review from xinhaoz and aa-joshi and removed request for a team January 24, 2025 14:09
Copy link

blathers-crl bot commented Jan 24, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@aa-joshi aa-joshi left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @xinhaoz)

@arjunmahishi
Copy link
Contributor Author

bors r+

@craig craig bot merged commit e508cf6 into cockroachdb:master Jan 27, 2025
22 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.

cli: v24.3.1: index out of range in tsdump
3 participants