[ 
https://issues.apache.org/jira/browse/ARTEMIS-4193?focusedWorklogId=850109&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-850109
 ]

ASF GitHub Bot logged work on ARTEMIS-4193:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Mar/23 15:59
            Start Date: 09/Mar/23 15:59
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #4395:
URL: https://github.com/apache/activemq-artemis/pull/4395#discussion_r1131246618


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/persistence/impl/journal/JournalStorageManager.java:
##########
@@ -797,6 +764,14 @@ private Map<Long, Pair<String, Long>> 
recoverPendingLargeMessages() throws Excep
       return largeMessages;
    }
 
+   @Override
+   public void recoverLargeMessagesOnFolder(Set<Long> files) throws Exception {
+      List<String> filenames = largeMessagesFactory.listFiles("msg");
+      filenames.forEach(f -> {
+         files.add(getLargeMessageIdFromFilename(f));
+      });
+   }

Review Comment:
   got it.. renamed.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 850109)
    Time Spent: 2h 50m  (was: 2h 40m)

> Interrupting Large Message Streaming with a server kill may leave orphaned 
> files
> --------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-4193
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4193
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.28.0
>            Reporter: Clebert Suconic
>            Priority: Major
>             Fix For: 2.29.0
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> There's a schema in the journal to store pending records before a file is 
> created.
> However the sync is not properly applied and if the server is killed it could 
> leave a few messages orphaned in the file system.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to