Skip to content

Commit

Permalink
make TestSamzaRunner always use same ConfigMap
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Zhang <[email protected]>
  • Loading branch information
alnzng committed Apr 3, 2024
1 parent 24c33a2 commit 9f558e2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public static SamzaPipelineOptions createSamzaPipelineOptions(
config.put(JOB_NON_LOGGED_STORE_BASE_DIR, storeDir.getAbsolutePath());
config.put(JOB_JMX_ENABLED, "false");

if (samzaOptions.getConfigOverride() != null) {
config.putAll(samzaOptions.getConfigOverride());
if (samzaOptions.getConfigOverride() == null) {
samzaOptions.setConfigOverride(new HashMap<>());
}
samzaOptions.setConfigOverride(config);
samzaOptions.getConfigOverride().putAll(config);
return samzaOptions;
} catch (Exception e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit 9f558e2

Please sign in to comment.