bookkeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrico Olivelli - Diennea <enrico.olive...@diennea.com>
Subject R: Journal file never deleted
Date Wed, 08 Jul 2015 10:27:25 GMT
I’m running all the default values, except from maxbackups which I set to 1
Even if a delete every ledger the logs never get deleted.

I enabled level DEBUG for every logger but I get no useful hint.
Normally at which rate logs file should be deleted ?

Thanks
Enrico


Da: Flavio Junqueira [mailto:fpjunqueira@yahoo.com]
Inviato: mercoledì 8 luglio 2015 12:17
A: user@bookkeeper.apache.org
Oggetto: Re: Journal file never deleted

Hi Enrico,

Have you had a look at the journal settings here?

http://bookkeeper.apache.org/docs/r4.3.1/bookieConfigParams.html

-Flavio

On 08 Jul 2015, at 10:37, Enrico Olivelli - Diennea <enrico.olivelli@diennea.com<mailto:enrico.olivelli@diennea.com>>
wrote:

Hi,
I’m running BookKeeper 4.3.0 (and 4.3.1). I noticed that journal files (*.txn files) never
get deleted. I’m using ServerConfiguration.setMaxBackupJournals(1) and default flushinterval
of 1 second.
I’m running “embedded” bookies, that is that I launch the bookie inside another JVM,
with the following code:

ServerConfiguration   conf = new ServerConfiguration();
conf.setBookiePort(port);
conf.setUseHostNameAsBookieID(true);
conf.setJournalDirName(logDir.getAbsolutePath());
conf.setZkServers(zookeeperServer);
conf.setLedgerDirNames(Arrays.stream(dataDirs).map(File::getAbsolutePath).collect(Collectors.toList()).toArray(new
String[dataDirs.length]));
conf.setFlushInterval(1000);
conf.setAutoRecoveryDaemonEnabled(false);
…
conf.setMaxBackupJournals(1);
…
this.bookie = new BookieServer(conf);
this.bookee.start();

any suggestion ?

thanks

Enrico Olivelli
Software Development Manager @Diennea
Tel.: (+39) 0546 066100 - Int. 925
Viale G.Marconi 30/14 - 48018 Faenza (RA)

MagNews - E-mail Marketing Solutions
http://www.magnews.it<http://www.magnews.it/>
Diennea - Digital Marketing Solutions
http://www.diennea.com<http://www.diennea.com/>


________________________________
Iscriviti alla nostra newsletter per rimanere aggiornato su digital ed email marketing! http://www.magnews.it/newsletter/


________________________________
Iscriviti alla nostra newsletter per rimanere aggiornato su digital ed email marketing! http://www.magnews.it/newsletter/
Mime
View raw message