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

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

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


##########
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:
   The List of filenames contains filenames, but the Set does not, it contains 
the results added to it which are messageID, so it seems weird to call the Set 
'files'.
   
   The caller calls the same Set "storedLargeMessages" which seems nicer.





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

    Worklog Id:     (was: 850028)
    Time Spent: 2h 10m  (was: 2h)

> 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 10m
>  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