Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make it so when there is a cache miss exception the pulling agent can…#9714

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
BMagerMT wants to merge6 commits intodotnet:main
base:main
Choose a base branch
Loading
fromBMagerMT:recover-from-exception-at-oldest-message

Conversation

@BMagerMT
Copy link
Contributor

@BMagerMTBMagerMT commentedOct 8, 2025
edited by dotnet-policy-servicebot
Loading

Make it so when there is a cache miss exception the pulling agent can start with the oldest message. This is an alternate approach to getting the latest token from the exception as is done in#9711.

This also solves the issue demonstrated inhttps://github.com/BMagerMT/OrleansStreamingIssue

Microsoft Reviewers:Open in CodeFlow

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a newOldestInStreamToken to handle cache miss scenarios by allowing the pulling agent to restart from the oldest available message in the cache, rather than passingnull or attempting to extract a token from the exception.

Key Changes:

  • IntroducedOldestInStreamToken class that represents the oldest position in a stream
  • Updated cache miss handling to useOldestInStreamToken.Instance instead ofnull
  • Added cache logic to handleOldestInStreamToken by positioning cursors at the oldest message

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

FileDescription
src/Orleans.Streaming/Core/OldestInStreamToken.csNew token class representing the oldest position in a stream
src/Orleans.Streaming/PersistentStreams/PersistentStreamPullingAgent.csUpdated cache miss exception handling to useOldestInStreamToken.Instance
src/Orleans.Streaming/Common/PooledCache/PooledQueueCache.csAdded logic to position cursor at oldest message whenOldestInStreamToken is provided
test/TesterInternal/OrleansRuntime/Streams/PooledQueueCacheTests.csAdded test coverage for getting cursor at oldest entry

@ReubenBond
Copy link
Member

@benjaminpetit PTAL

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@benjaminpetitbenjaminpetitAwaiting requested review from benjaminpetit

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@BMagerMT@ReubenBond

[8]ページ先頭

©2009-2025 Movatter.jp