← 输入框|github.com|刷新
Skip to content

[Fix #1740] Forcing cache reload in test - #1741

Merged
fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1740
Oct 5, 2026
Merged

fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1740

Conversation

@fjtirado

@fjtirado fjtirado commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Fix #1740

Copilot AI balanced review requested due to automatic review settings October 5, 2026 15:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The new abstract lifecycle method breaks compatibility with existing HashFactory implementations.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Adds coverage for reloading hash mappings after clearing the in-memory cache.

Changes:

  • Makes hash factories closeable and clears cached mappings on close.
  • Connects the test’s hash factory to MVStore and forces a cache reload.
  • Closes hash factories with MVStore resources.
File Description
AbstractHandlerPersistenceTest.java Clears the cache before re-reading persisted data.
MVStorePersistenceStoreTest.java Shares the test hash factory with MVStore.
MVStorePersistenceStore.java Closes its hash factory.
HashFactory.java Adds AutoCloseable lifecycle support.
DefaultHashFactory.java Clears cached mappings on close.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Signed-off-by: Francisco Javier Tirado Sarti <ftirados@ibm.com>
Copilot AI balanced review requested due to automatic review settings October 5, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The cache reload path is exercised coherently and resource cleanup remains safe and idempotent.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@gmunozfe gmunozfe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, nice work @fjtirado !

@fjtirado
fjtirado merged commit 5908920 into open-workflow-specification:main Oct 5, 2026
4 checks passed
@fjtirado
fjtirado deleted the Fix_#1740 branch October 5, 2026 19:58
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.

Add test for HashMapping coordinator cache reload.

4 participants