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

Fix timestamp reported in the "the sample has been rejected because its timestamp is too old" error #8462

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

pracucci
Copy link
Collaborator

What this PR does

While working on #8431 I noticed that the timestamp reported by "the sample has been rejected because its timestamp is too old" error is the zero value when the write request contains only histograms. This PR fixes it.

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

…ts timestamp is too old" error when the write request contains only histograms

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci requested a review from a team as a code owner June 21, 2024 12:02
@@ -10216,7 +10216,7 @@ func TestIngester_PushWithSampledErrors(t *testing.T) {
errorSampleRate := 5
now := time.Now()

users := []string{"test", "tset"}
users := []string{"user-1", "user-2"}
Copy link
Member

Choose a reason for hiding this comment

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

lol, why would you change that? :)

Copy link
Collaborator Author

@pracucci pracucci Jun 21, 2024

Choose a reason for hiding this comment

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

Because I don't like get tricked when I look at failed assertions 😉

@pracucci pracucci enabled auto-merge (squash) June 21, 2024 12:14
@pracucci pracucci merged commit 144a26a into main Jun 21, 2024
29 checks passed
@pracucci pracucci deleted the fix-timestamp-in-ingester-error branch June 21, 2024 12:20
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.

2 participants