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

Merge in RED/persistence-service from RED-6860-3.6 to release/1.363.x

* commit '14f04fdc34f876f71d2d68fe96b5e327878efcb6':
  RED-6860: Fixed transaction timeout and changed s3 upload to multipart to be able to handle downloads > 5 gb
This commit is contained in:
Dominique Eiflaender 2023-06-01 09:27:38 +02:00
commit 05212581bd
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());