From 494fa63f3b3c5dd54cc9adc67a7485049ab8bd44 Mon Sep 17 00:00:00 2001 From: Manuel Soulier Date: Thu, 19 Sep 2024 09:59:50 +0200 Subject: [PATCH] fix: asynchronous bug in data retrieval webservice --- .../importServlet/ImportStep3GetTableDataService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java index db4fce30..2a17c02b 100644 --- a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java +++ b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java @@ -38,6 +38,8 @@ public void execute(SendResponse resp) throws ArcException { TableToRetrieve table = clientDao.getAClientTableByName(arcClientIdentifier.getClientInputParameter()); + this.clientDao.deleteFromTrackTable(table.getTableName()); + // transfer data to http response ServiceDao.execQueryExportDataToResponse(resp.getWr(), table, this.arcClientIdentifier.getFormat(), clientDao); @@ -47,8 +49,6 @@ public void execute(SendResponse resp) throws ArcException { if (arcClientIdentifier.getFormat().isParquet()) this.clientDao.deleteParquet(table); - this.clientDao.deleteFromTrackTable(table.getTableName()); - LoggerHelper.info(LOGGER, "Table " + table.getTableName() + " had been retrieved and dropped."); } else {