On Thu, Nov 14, 2019 at 7:18 PM Brian Candler <[email protected]> wrote:
> I wrote some gigabytes of data into a topic, and then deleted the > topic. The disk space in the data/ directory has not yet been freed > (specifically, data/standalone/bookkeeper0/current/) > > 1. Is there a way to force a garbage-collection pass? > The garbage collection is done lazily via a gc thread. If you enable http server at your bookies (by setting `httpServerEnabled` in your bookie.conf), you can then use http to trigger gc. http://bookkeeper.apache.org/docs/latest/admin/http/#endpoint-apiv1bookiegc > > 2. The topic was created in a namespace that has a 24-hour retention > policy. Does that make any difference to garbage collection behaviour > when a topic is deleted? > > $ apache-pulsar-2.4.1/bin/pulsar-admin namespaces get-retention > public/default > { > "retentionTimeInMinutes" : 1440, > "retentionSizeInMB" : -1 > } > > Thanks, > > Brian. > >
