ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hirik (Jira)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-12138) Persisted files are not cleared after queue.clear()
Date Tue, 03 Sep 2019 15:45:00 GMT
hirik created IGNITE-12138:
------------------------------

             Summary: Persisted files are not cleared after queue.clear() 
                 Key: IGNITE-12138
                 URL: https://issues.apache.org/jira/browse/IGNITE-12138
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.7.5
            Reporter: hirik
         Attachments: Capture.PNG

Hi,

I'm using ignite version "2.7.5".  After clearing the queue, there are around 1024(.bin)
files still inside my data directory. did I miss any configuration?

*My code:*

 
{code:java}
 DataRegionConfiguration dataRegionConfig = new DataRegionConfiguration();
 dataRegionConfig.setName("region1");
 dataRegionConfig.setPersistenceEnabled(true);
 storageConfig.setDefaultDataRegionConfiguration(dataRegionConfig);
 igniteConfig.setDataStorageConfiguration(storageConfig);
 try(Scanner scanner = new Scanner(System.in); Ignite ignite = Ignition.start(igniteConfig))
 {
 final CollectionConfiguration collectionConfiguration = new CollectionConfiguration();
 collectionConfiguration.setGroupName("testGroup");
 ignite.cluster().active(true);
 final IgniteQueue<Integer> queue = ignite.queue(
 "testQueue", // Queue name.
 0, // Queue capacity. 0 for unbounded queue.
 collectionConfiguration); // Collection configuration.
produce(queue, 1_000_000);
 System.out.println("Before Clear - Queue size : "+ queue.size());
 queue.clear();
 System.out.println("After Clear - Queue size : "+ queue.size());
 queue.close();
 final long time = System.currentTimeMillis();
 scanner.nextLine();
 System.out.println("Waiting time = "+ (System.currentTimeMillis() - time));
 }
 System.out.println("closed");
 {code}
 

*Output :*

Before Clear - Queue size : 1000000
After Clear - Queue size : 0
quit
Waiting time = 270193

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message