Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,6 @@ public void publishQueryableStateIfEnabled(
}
}

/**
* TODO: NOTE: This method does a lot of work caching / retrieving states just to update the
* namespace. This method should be removed for the sake of namespaces being lazily fetched from
* the keyed state backend, or being set on the state directly.
*
* @see KeyedStateBackend
*/
@SuppressWarnings("unchecked")
@Override
public <N, S extends State> S getPartitionedState(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ <N, S extends State, T> S getOrCreateKeyedState(
/**
* Creates or retrieves a partitioned state backed by this state backend.
*
* <p>TODO: NOTE: This method does a lot of work caching / retrieving states just to update the
* namespace. This method should be removed for the sake of namespaces being lazily fetched from
* the keyed state backend, or being set on the state directly.
*
* @param stateDescriptor The identifier for the state. This contains name and can create a
* default state value.
* @param <N> The type of the namespace.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,6 @@ protected <S extends State, N> S getPartitionedState(
TypeSerializer<N> namespaceSerializer,
StateDescriptor<S, ?> stateDescriptor)
throws Exception {

/*
TODO: NOTE: This method does a lot of work caching / retrieving states just to update the namespace.
This method should be removed for the sake of namespaces being lazily fetched from the keyed
state backend, or being set on the state directly.
*/

if (keyedStateBackend != null) {
return keyedStateBackend.getPartitionedState(
namespace, namespaceSerializer, stateDescriptor);
Expand Down