Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class FeatureStreamConfig {

String DEFAULT_KAFKA_REQUEST_TIMEOUT_MS_CONFIG = "15000";
int DEFAULT_SPECS_TOPIC_PARTITIONING = 1;
short DEFAULT_SPECS_TOPIC_REPLICATION = 3;
short DEFAULT_SPECS_TOPIC_REPLICATION = 1;

@Bean
public KafkaAdmin admin(FeastProperties feastProperties) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,20 @@ public PCollection<FeatureSetReference> prepareWrite(
"At least one RedisConfig or RedisClusterConfig must be provided to Redis Sink");
}
specsView = featureSetSpecs.apply(ParDo.of(new ReferenceToString())).apply(View.asMultimap());
return featureSetSpecs.apply(Keys.create());
return featureSetSpecs
.apply(
"DummyDelay",
ParDo.of(
new DoFn<
KV<FeatureSetReference, FeatureSetSpec>,
KV<FeatureSetReference, FeatureSetSpec>>() {
@ProcessElement
public void process(ProcessContext c) throws InterruptedException {
Thread.sleep(1000);
c.output(c.element());
}
}))
.apply(Keys.create());
}

@Override
Expand Down