kestra-io / plugin-serdes

https://kestra.io/plugins/plugin-serdes/
Apache License 2.0
2 stars 6 forks source link

fix: init Snappy early #63

Closed loicmathieu closed 10 months ago

loicmathieu commented 11 months ago

Snappy needs to be initialized early or it would be initialized inside the run method which will be prohibited by the Java Security if enabled in EE (it needs write access to the temp directory).

Fixes https://github.com/kestra-io/plugin-serdes/issues/62 Needs https://github.com/kestra-io/kestra-ee/pull/609 to fully work

tchiotludo commented 11 months ago

Is there any way to inject tmp dir with that configuration?

loicmathieu commented 11 months ago

Is there any way to inject tmp dir with that configuration?

No as it's a system property so we must set it JVM wide not per task run.

tchiotludo commented 10 months ago

replace by this one https://github.com/kestra-io/plugin-serdes/commit/f1396d240f5644f58a1c6dc58bee4735508c3575