Skip to content

test: Disable memory mapping #11

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

Merged
merged 1 commit into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rust/operator-binary/src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ pub enum Error {
#[snafu(display("failed to deserialize cluster definition"))]
DeserializeClusterDefinition {
// boxed because otherwise Clippy warns about a large enum variant
#[snafu(source(from(
stackable_operator::kube::core::error_boundary::InvalidObject,
Box::new
)))]
source: Box<stackable_operator::kube::core::error_boundary::InvalidObject>,
},

Expand Down Expand Up @@ -232,7 +236,6 @@ pub async fn reconcile(
.0
.as_ref()
.map_err(stackable_operator::kube::core::error_boundary::InvalidObject::clone)
.map_err(Box::new)
.context(DeserializeClusterDefinitionSnafu)?;

// dereference (client required)
Expand Down
12 changes: 12 additions & 0 deletions tests/templates/kuttl/smoke/10-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,17 @@ metadata:
app.kubernetes.io/version: 3.0.0
stackable.tech/vendor: Stackable
name: opensearch-nodes-cluster-manager
ownerReferences:
- apiVersion: opensearch.stackable.tech/v1alpha1
controller: true
kind: OpenSearchCluster
name: opensearch
data:
opensearch.yml: |-
cluster.name: "opensearch"
discovery.type: "zen"
network.host: "0.0.0.0"
node.store.allow_mmap: "false"
plugins.security.allow_default_init_securityindex: "true"
plugins.security.nodes_dn: ["CN=generated certificate for pod"]
plugins.security.ssl.http.enabled: "true"
Expand All @@ -368,11 +374,17 @@ metadata:
app.kubernetes.io/version: 3.0.0
stackable.tech/vendor: Stackable
name: opensearch-nodes-data
ownerReferences:
- apiVersion: opensearch.stackable.tech/v1alpha1
controller: true
kind: OpenSearchCluster
name: opensearch
data:
opensearch.yml: |-
cluster.name: "opensearch"
discovery.type: "zen"
network.host: "0.0.0.0"
node.store.allow_mmap: "false"
plugins.security.allow_default_init_securityindex: "true"
plugins.security.nodes_dn: ["CN=generated certificate for pod"]
plugins.security.ssl.http.enabled: "true"
Expand Down
3 changes: 3 additions & 0 deletions tests/templates/kuttl/smoke/10-install-opensearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ spec:
configOverrides:
# TODO Add the required options to the operator
opensearch.yml:
# Disable memory mapping in this test; If memory mapping were activated, the kernel setting
# vm.max_map_count would have to be increased to 262144 on the node.
node.store.allow_mmap: "false"
# TODO Check that this is safe despite the warning in the documentation
plugins.security.allow_default_init_securityindex: "true"
plugins.security.ssl.transport.enabled: "true"
Expand Down