GitHub user morefuntang opened a pull request:

    https://github.com/apache/activemq-artemis/pull/2165

    Artemis cannot delete Page file when size is 0

    Artemis cannot delete Page file when size is 0. Page file list is as 
follows:
    
    **-rw-r--r--  1 artemis activemq        0 Jun 28 15:38 000000003.page
    -rw-r--r--  1 artemis activemq        0 Jun 28 15:38 000000004.page**
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:38 000000005.page
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:38 000000006.page
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:39 000000007.page
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:39 000000008.page
    -rw-r--r--  1 artemis activemq  3813259 Jun 28 15:39 000000009.page
    **-rw-r--r--  1 artemis activemq        0 Jun 28 15:39 000000010.page
    -rw-r--r--  1 artemis activemq        0 Jun 28 15:39 000000011.page**
    
    When all messages in the Page file are consumed, expired Page files should 
be deleted by Artemis.
    But in fact, the Page files hava not been deleted. Page file list is as 
follows:
    
    drwxr-xr-x  2 artemis activemq     4096 Jun 28 15:40 .
    drwxr-xr-x 10 artemis activemq     4096 Jun 28 11:37 ..
    **-rw-r--r--  1 artemis activemq        0 Jun 28 15:38 000000004.page**
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:38 000000005.page
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:38 000000006.page
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:39 000000007.page
    -rw-r--r--  1 artemis activemq 10485215 Jun 28 15:39 000000008.page
    -rw-r--r--  1 artemis activemq  3813259 Jun 28 15:39 000000009.page
    **-rw-r--r--  1 artemis activemq        0 Jun 28 15:39 000000010.page
    -rw-r--r--  1 artemis activemq        0 Jun 28 15:39 000000011.page**
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/morefuntang/activemq-artemis branch-20180628

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/2165.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2165
    
----
commit 002eab828a3830c6c2cff0f865c54be9099d0f00
Author: 17103355 <17103355@...>
Date:   2018-06-28T07:20:27Z

    Artemis cannot delete Page file when size is 0

----


---

Reply via email to