You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Hubertus.Willuhn" <hu...@dinsoftware.de> on 2016/02/22 11:36:47 UTC
LevelDB and Reset Option
Hi,
i use LevelDBRepository for Aggregation. Is there an Option to clear/empty
the
repository files before executing my camel routes again?
The Problem is that, if i run my app twice the repository tries to restore
all exchanges
from the last run...which isn't correct.
My Initialization looks like:
LevelDBAggregationRepository repository = new
LevelDBAggregationRepository("cen", "tmp/cache/leveldb.dat");
repository.setUseRecovery(false);
Setting the above option doesn't help. My Log looks like:
2016-02-22 11:34:25.680 [main] WARN
o.a.c.c.leveldb.LevelDBAggregationRepository -- On startup there are 13659
completed exchanges to be recovered in repository: cen-completed
I do not want to reused old exchanges.
Best regards,
Hubertus
--
View this message in context: http://camel.465427.n5.nabble.com/LevelDB-and-Reset-Option-tp5778038.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: LevelDB and Reset Option
Posted by "Hubertus.Willuhn" <hu...@dinsoftware.de>.
Hi,
thanks i will do that.
--
View this message in context: http://camel.465427.n5.nabble.com/LevelDB-and-Reset-Option-tp5778038p5778095.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: LevelDB and Reset Option
Posted by Claus Ibsen <cl...@gmail.com>.
You can just delete the file in the code where you initialize leveldb
which you showed in one of your previous mail.
On Mon, Feb 22, 2016 at 1:35 PM, Hubertus.Willuhn
<hu...@dinsoftware.de> wrote:
> Ok, thats simple but is there a good practice example for that usecase...
> how can i do this directly in the camel route/on startup?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/LevelDB-and-Reset-Option-tp5778038p5778041.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Re: LevelDB and Reset Option
Posted by "Hubertus.Willuhn" <hu...@dinsoftware.de>.
Ok, thats simple but is there a good practice example for that usecase...
how can i do this directly in the camel route/on startup?
--
View this message in context: http://camel.465427.n5.nabble.com/LevelDB-and-Reset-Option-tp5778038p5778041.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: LevelDB and Reset Option
Posted by Claus Ibsen <cl...@gmail.com>.
You can delete the file
On Mon, Feb 22, 2016 at 11:36 AM, Hubertus.Willuhn
<hu...@dinsoftware.de> wrote:
> Hi,
>
> i use LevelDBRepository for Aggregation. Is there an Option to clear/empty
> the
> repository files before executing my camel routes again?
>
> The Problem is that, if i run my app twice the repository tries to restore
> all exchanges
> from the last run...which isn't correct.
>
> My Initialization looks like:
>
> LevelDBAggregationRepository repository = new
> LevelDBAggregationRepository("cen", "tmp/cache/leveldb.dat");
>
> repository.setUseRecovery(false);
>
> Setting the above option doesn't help. My Log looks like:
>
> 2016-02-22 11:34:25.680 [main] WARN
> o.a.c.c.leveldb.LevelDBAggregationRepository -- On startup there are 13659
> completed exchanges to be recovered in repository: cen-completed
>
> I do not want to reused old exchanges.
>
> Best regards,
>
> Hubertus
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/LevelDB-and-Reset-Option-tp5778038.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2