Openbravo Issue Tracking System - Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0045213 | Modules | Integrations with Azure Blob Storage | public | 2020-10-13 12:17 | 2020-10-20 07:41 | |||||||
Reporter | alostale | |||||||||||
Assigned To | cberner | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Regression date | ||||||||||||
Regression introduced by commit | ||||||||||||
Regression level | ||||||||||||
Review Assigned To | ||||||||||||
Support ticket | ||||||||||||
OBNetwork customer | ||||||||||||
Regression introduced in release | ||||||||||||
Summary | 0045213: Azure: OOM migrating attachements if missconfigured | |||||||||||
Description | Having a missconfiguration in Azure Storage module and trying to migrate thousands of attachments results in an OOM. The problem occurs when trying to append to the process log the errors received for each of the attachments that is tried to be migrated. | |||||||||||
Steps To Reproduce | In an instance with thousands of attachments stored in file system: 1. Configure Azure incorrectly 2. Schedule migration process: 2020-10-08 19:05:12,753 [DefaultQuartzScheduler_Worker-2] ERROR org.quartz.core.ErrorLogger - Job (OB_QUARTZ_GROUP.82ACCBF860F94F688604B7917F3A6907 threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.3.2.jar:?] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?] Caused by: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3745) ~[?:?] at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:172) ~[?:?] at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:538) ~[?:?] at java.lang.StringBuilder.append(StringBuilder.java:174) ~[?:?] at org.openbravo.scheduling.ProcessLogger.log(ProcessLogger.java:45) ~[classes/:?] at org.openbravo.service.integration.azure.storage.process.MigrateProcess.migrateAttachments(MigrateProcess.java:169) ~[classes/:?] at org.openbravo.service.integration.azure.storage.process.MigrateProcess.doExecute(MigrateProcess.java:110) ~[classes/:?] at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:85) ~[classes/:?] at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:65) ~[classes/:?] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-2.3.2.jar:?] ... 1 more | |||||||||||
Proposed Solution | Before starting the batch process, ensure configuration is valid and fail properly in case it is not. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-10-13 12:17 | alostale | New Issue | ||||||||||
2020-10-13 12:17 | alostale | Assigned To | => platform | |||||||||
2020-10-13 12:17 | alostale | Modules | => Core | |||||||||
2020-10-13 12:17 | alostale | Triggers an Emergency Pack | => No | |||||||||
2020-10-13 12:24 | alostale | Project | Openbravo ERP => Modules | |||||||||
2020-10-13 12:25 | alostale | Category | A. Platform => Integrations with Azure Blob Storage | |||||||||
2020-10-14 15:07 | hgbot | Note Added: 0123680 | ||||||||||
2020-10-14 17:07 | cberner | Assigned To | platform => cberner | |||||||||
2020-10-19 12:41 | cberner | Relationship added | related to 0045246 | |||||||||
2020-10-20 07:41 | hgbot | Resolution | open => fixed | |||||||||
2020-10-20 07:41 | hgbot | Status | new => closed | |||||||||
2020-10-20 07:41 | hgbot | Note Added: 0123784 | ||||||||||
2020-10-20 07:41 | hgbot | Note Added: 0123785 | ||||||||||
2020-10-20 07:41 | hgbot | Note Added: 0123786 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|