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: Progress bucket count query if empty #645

Merged
merged 5 commits into from
Jan 16, 2025
Merged

Conversation

patriknw
Copy link
Member

  • the bucket queries continues from the end of the previous
  • the limit of 10000 times 10 seconds is around 28 hours
  • meaning that if there were no new events for 28 hours the queries will not progress since it will not find any more
  • solution here is to append empty bucket at the end in that case

Follow up on #641

* the bucket queries continues from the end of the previous
* the limit of 10000 times 10 seconds is around 28 hours
* meaning that if there were no new events for 28 hours the
  queries will not progress since it will not find any more
* solution here is to append empty bucket at the end in that case
@@ -74,4 +77,35 @@ trait TestDbLifecycle extends BeforeAndAfterAll { this: Suite =>
super.beforeAll()
}

// to be able to store events with specific timestamps
def writeEvent(slice: Int, persistenceId: String, seqNr: Long, timestamp: Instant, event: String): Unit = {
Copy link
Member Author

Choose a reason for hiding this comment

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

moved this here since it was used in several tests

@patriknw patriknw marked this pull request as ready for review January 15, 2025 17:43
@patriknw patriknw force-pushed the wip-buckets2-patriknw branch from 1267a5a to 0fc7dfa Compare January 15, 2025 18:08
Copy link
Contributor

@pvlugter pvlugter left a comment

Choose a reason for hiding this comment

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

LGTM

@pvlugter
Copy link
Contributor

Also needs a mima filter.

@pvlugter pvlugter merged commit e8d6ff0 into main Jan 16, 2025
10 checks passed
@pvlugter pvlugter deleted the wip-buckets2-patriknw branch January 16, 2025 03:33
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