From 724764e9dcb0dac7797ff65e96104113a7f79610 Mon Sep 17 00:00:00 2001 From: Ryan Amari Date: Tue, 8 Oct 2024 09:53:08 -0400 Subject: [PATCH] Logging to fix tests --- .github/workflows/github-actions-test.yml | 2 +- .../hms/dbmi/avillach/hpds/processing/PhenotypeMetaStore.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-test.yml b/.github/workflows/github-actions-test.yml index 603b2673..474287ed 100644 --- a/.github/workflows/github-actions-test.yml +++ b/.github/workflows/github-actions-test.yml @@ -16,4 +16,4 @@ jobs: - name: Test with Maven run: mvn clean test env: - GITHUB_TOKEN: ${{ github.token }} \ No newline at end of file + GITHUB_TOKEN: ${{ github.token }} diff --git a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PhenotypeMetaStore.java b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PhenotypeMetaStore.java index 92f77b92..e823a69e 100644 --- a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PhenotypeMetaStore.java +++ b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/PhenotypeMetaStore.java @@ -45,12 +45,14 @@ public PhenotypeMetaStore(@Value("${HPDS_DATA_DIRECTORY:/opt/local/hpds/}") Stri columnMetaFile = hpdsDataDirectory + "columnMeta.javabin"; try (ObjectInputStream objectInputStream = new ObjectInputStream(new GZIPInputStream(new FileInputStream(columnMetaFile)));){ TreeMap _metastore = (TreeMap) objectInputStream.readObject(); + log.info("_metastore.size() = " + _metastore.size()); TreeMap metastoreScrubbed = new TreeMap(); for(Map.Entry entry : _metastore.entrySet()) { metastoreScrubbed.put(entry.getKey().replaceAll("\\ufffd",""), entry.getValue()); } metaStore = metastoreScrubbed; patientIds = (TreeSet) objectInputStream.readObject(); + log.info("patientIds.size() = " + patientIds.size()); objectInputStream.close(); } catch (IOException | ClassNotFoundException e) { log.warn("************************************************");