ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanilovsky Evgeny (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (IGNITE-12138) Persisted files are not cleared after queue.clear()
Date Wed, 04 Sep 2019 06:41:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-12138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stanilovsky Evgeny resolved IGNITE-12138.
-----------------------------------------
    Resolution: Won't Fix

> 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
>            Priority: Major
>         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
> Waiting time = 270193
>  



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

Mime
View raw message