Skip to content

Commit bc3c693

Browse files
committed
indexing always results in connection closed
1 parent 0878078 commit bc3c693

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.nais/test/klass-api-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
memory: 1400Mi
2424
env:
2525
- name: SPRING_PROFILES_ACTIVE
26-
value: api, postgres, remote-open-search
26+
value: api, postgres, remote-open-search, skip-indexing
2727
- name: KLASS_ENV_CLIENT_KLASS_MAIL_URL
2828
value: http://klass-mail
2929
- name: JAVA_TOOL_OPTIONS

klass-api/src/main/java/no/ssb/klass/api/services/search/SearchIndexPopulator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ public class SearchIndexPopulator implements CommandLineRunner {
3232
public void run(String... args) {
3333
CompletableFuture.runAsync(() -> {
3434
List<Long> ids = classificationSeriesRepository.findAllClassificationIds();
35-
List<Long> testIds = ids.stream().limit(1).toList();
3635
log.info("Starting to index {} classifications", ids.size());
37-
testIds.forEach(searchService::indexAsync);
36+
ids.forEach(searchService::indexAsync);
3837
log.info("Finished indexing for {} classifications", ids.size());
3938
});
4039
}

0 commit comments

Comments
 (0)