2

When a function uses context.putState(id, object), is the saved object forever saved in the bookkeeper until an explicit deleteState(same id) is called?

Is there some point in time, some action of any kind, or some event which cleans up the used state storage space, besides calling deleteState? Like for example, if a function is deleted, does the bookkeeper still keep the function's state objects persisted, or are they erased as well?

Toni Kanoni
  • 2,265
  • 4
  • 23
  • 29

2 Answers2

1

Some related PIPs

[PIP 133] Pulsar Functions Add API For Accessing Other Function States #13633 https://github.com/apache/pulsar/issues/13633

Bulk admin operations for function state #5539 https://github.com/apache/pulsar/issues/5539

Tim Spann
  • 517
  • 2
  • 6
0

I believe when a function is deleted we delete the table that holds all the states.

This is definitely something that needs some testing.

If there are recommendations or ways that state is defined is not well defined please create an issue

https://github.com/apache/pulsar/issues

Tim Spann
  • 517
  • 2
  • 6