RED-6860: Fixed transaction timeout and changed s3 upload to multipart to be able to handle downloads > 5 gb

This commit is contained in:
deiflaender 2023-06-01 09:22:00 +02:00
parent 86b831eea4
commit 14f04fdc34
4 changed files with 5 additions and 4 deletions

View File

@ -61,10 +61,10 @@ public class DownloadStatusEntity {
@Column
long fileSize;
@ManyToOne(fetch = FetchType.LAZY)
@ManyToOne(fetch = FetchType.EAGER)
DossierEntity dossier;
@ManyToMany
@ManyToMany(fetch = FetchType.EAGER)
@Fetch(FetchMode.SUBSELECT)
List<FileEntity> files = new ArrayList<>();
@ -73,7 +73,7 @@ public class DownloadStatusEntity {
@Convert(converter = JSONDownloadFileTypeConverter.class)
Set<DownloadFileType> downloadFileTypes = new HashSet<>();
@ManyToMany(fetch = FetchType.LAZY)
@ManyToMany(fetch = FetchType.EAGER)
@Fetch(FetchMode.SUBSELECT)
List<ReportTemplateEntity> reports = new ArrayList<>();

View File

@ -37,6 +37,7 @@ public class NotificationPersistenceService {
@SneakyThrows
@Transactional
public void insertNotification(AddNotificationRequest addNotificationRequest) {
var notification = new NotificationEntity();

View File

@ -72,6 +72,7 @@
<dependency>
<groupId>com.iqser.red.commons</groupId>
<artifactId>storage-commons</artifactId>
<version>1.8.1</version>
</dependency>
<dependency>
<groupId>com.iqser.red.service</groupId>

View File

@ -128,7 +128,6 @@ public class DownloadPreparationService {
}
@Transactional
public void createDownload(RedactionResultMessage reportResultMessage) {
DownloadStatusEntity downloadStatus = downloadStatusPersistenceService.getStatus(reportResultMessage.getDownloadId());