Skip to content

Conversation

@slinkydeveloper
Copy link
Contributor

@slinkydeveloper slinkydeveloper commented Oct 22, 2025

Part of #3184

@slinkydeveloper slinkydeveloper force-pushed the issues/3184-add-feature-flag branch 7 times, most recently from 443e68d to 257c1d9 Compare October 22, 2025 19:20
@slinkydeveloper slinkydeveloper changed the title [WIP] Use journal table v2 as default Use journal table v2 as default Oct 22, 2025
@slinkydeveloper slinkydeveloper marked this pull request as ready for review October 22, 2025 19:43
@slinkydeveloper
Copy link
Contributor Author

This is ready for an initial pass. The test is failing because i still didn't figure out how to do the exclusion properly 🫨 but the exclusion is legit

…tever reason the negotiated protocol when invoking will be less than 4.
…he problematic situations.

Fix some incorrectly handled corner cases, such as deletion of journal when the pinned deployment is not set yet.
@slinkydeveloper slinkydeveloper force-pushed the issues/3184-add-feature-flag branch from 257c1d9 to 60b2632 Compare October 22, 2025 19:46
@slinkydeveloper slinkydeveloper added this to the 1.6 milestone Oct 22, 2025
@slinkydeveloper
Copy link
Contributor Author

slinkydeveloper commented Oct 22, 2025

TODO: in the state machine init_journal, better to also init there the journal using journal v2. this sorts out the situation where users update with scheduled invocations.

@slinkydeveloper
Copy link
Contributor Author

Fixed the problem with exclusions!

@slinkydeveloper
Copy link
Contributor Author

did some manual testing locally, primarily around scheduled invocations, first disabling then enabling, and viceversa. So far everything seems to work as expected.

@slinkydeveloper slinkydeveloper added the release-blocker Blocker for the next release label Oct 29, 2025
@AhmedSoliman AhmedSoliman self-requested a review October 30, 2025 09:24
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks a lot for preparing a future where we can drop the old state machine and the old invoker @slinkydeveloper. The changes look good to me. I left a few comments about adding a bit more context for identifying code paths that are legacy and will get removed. Also the usage of rstest seems not strictly needed and could allow us to reduce this dependency eventually if we don't add more tests using it.

As a side comment: The state machine has become quite hard to reason about with the new and old code paths. I am really looking forward simplifying things when we get rid of the old code paths.

Comment on lines +363 to +369
// Let's verify if we sent all the entries we promised, otherwise the stream will hang in a bad way!
if sent_entries < expected_entries_count {
return TerminalLoopState::Failed(InvokerError::UnexpectedEntryCount {
actual: sent_entries,
expected: expected_entries_count,
})
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a situation that couldn't arise before and is now possible due to the changes of the PR or is this covering a case that could have happened before as well?

@tillrohrmann
Copy link
Contributor

@slinkydeveloper can you resolve my comments and update this PR so that I can rebase #3953 on it?

@AhmedSoliman AhmedSoliman removed their request for review January 5, 2026 10:10
@tillrohrmann
Copy link
Contributor

Merged via b9faafa

@github-actions github-actions bot locked and limited conversation to collaborators Jan 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-blocker Blocker for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prepare deprecation of service protocol <= 4

2 participants