Skip to content

Commit 4624dc2

Browse files
committed
chore: Make the operator fail for unsupported versions
This is not ideal as it prevents people trying whatever version they want, but we will defer this to a team decision later.
1 parent db79013 commit 4624dc2

File tree

1 file changed

+2
-2
lines changed
  • rust/operator-binary/src/config

1 file changed

+2
-2
lines changed

rust/operator-binary/src/config/jvm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn recommended_trino_jvm_args(_product_version: u16) -> Result<Vec<String>, Erro
107107
fn recommended_trino_jvm_args(product_version: u16) -> Result<Vec<String>, Error> {
108108
match product_version {
109109
// Copied from https://trino.io/docs/451/installation/deployment.html
110-
451..455 => Ok(vec![
110+
451 => Ok(vec![
111111
"-XX:InitialRAMPercentage=80".to_owned(),
112112
"-XX:MaxRAMPercentage=80".to_owned(),
113113
"-XX:G1HeapRegionSize=32M".to_owned(),
@@ -127,7 +127,7 @@ fn recommended_trino_jvm_args(product_version: u16) -> Result<Vec<String>, Error
127127
// Copied from:
128128
// - https://trino.io/docs/455/installation/deployment.html#jvm-config
129129
// - https://trino.io/docs/470/installation/deployment.html#jvm-config
130-
455.. => Ok(vec![
130+
455 | 470 => Ok(vec![
131131
"-XX:InitialRAMPercentage=80".to_owned(),
132132
"-XX:MaxRAMPercentage=80".to_owned(),
133133
"-XX:G1HeapRegionSize=32M".to_owned(),

0 commit comments

Comments
 (0)