Skip to content

Commit

Permalink
[#2654] Support persisting data to local file system
Browse files Browse the repository at this point in the history
The Infinispan class implementing the file based data store has been
added to the native image build's reflection configuration so that it
will be included in the resulting native image.

The integration test's cache configuration has been changed to use file
system persistence in order to verify the embedded cache configuration
when running the tests with native images.

Fixes #2654

Conflicts:
	site/homepage/content/release-notes.md

Signed-off-by: Kai Hudalla <[email protected]>
  • Loading branch information
sophokles73 committed May 12, 2021
1 parent 8b6f7a3 commit a41ed64
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
{ "name": "<init>", "parameterTypes": [] }
]
},
{
"name" : "org.infinispan.persistence.file.SingleFileStore",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
},
{
"name" : "java.util.Arrays$ArrayList",
"allDeclaredConstructors" : true,
Expand Down
7 changes: 7 additions & 0 deletions site/homepage/content/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ title = "What is new & noteworthy in Hono?"
description = "Information about changes in recent Hono releases. Includes new features, fixes, enhancements and API changes."
+++

## 1.7.2 (not released yet)

### Fixes & Enhancements

* The Quarkus based Command Router native image failed to start an embedded cache that was configured to persist data
to the local file system. This has been fixed.

## 1.7.1

### Fixes & Enhancements
Expand Down
16 changes: 14 additions & 2 deletions tests/src/test/resources/commandrouter/cache-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,20 @@
-->
<infinispan>
<cache-container default-cache="command-router">
<local-cache name="command-router" simple-cache="true">
<memory max-count="200" when-full="REMOVE"/>
<global-state>
<persistent-location path="/var/lib/hono"/>
</global-state>
<local-cache name="command-router">
<persistence passivation="false">
<file-store
shared="false"
preload="true"
fetch-state="false"
read-only="false"
purge="false"
path="command-router">
</file-store>
</persistence>
</local-cache>
</cache-container>
</infinispan>

0 comments on commit a41ed64

Please sign in to comment.