state

Flink state empty (reinitialized) after rerun

北城以北 提交于 2020-12-13 11:32:02
问题 I'm trying to connect two streams, first is persisting in MapValueState : RocksDB save data in checkpoint folder, but after new run, state is empty. I run it locally and in flink cluster with cancel submiting in cluster and simply rerun locally env.setStateBackend(new RocksDBStateBackend(..) env.enableCheckpointing(1000) ... val productDescriptionStream: KeyedStream[ProductDescription, String] = env.addSource(..) .keyBy(_.id) val productStockStream: KeyedStream[ProductStock, String] = env

Flink state empty (reinitialized) after rerun

别说谁变了你拦得住时间么 提交于 2020-12-13 11:28:48
问题 I'm trying to connect two streams, first is persisting in MapValueState : RocksDB save data in checkpoint folder, but after new run, state is empty. I run it locally and in flink cluster with cancel submiting in cluster and simply rerun locally env.setStateBackend(new RocksDBStateBackend(..) env.enableCheckpointing(1000) ... val productDescriptionStream: KeyedStream[ProductDescription, String] = env.addSource(..) .keyBy(_.id) val productStockStream: KeyedStream[ProductStock, String] = env

Accessing AppState in AppDelegate with SwiftUI's new iOS 14 life cycle

孤者浪人 提交于 2020-12-12 05:12:32
问题 I'm using SwiftUI's new app lifecycle coming in iOS 14. However, I'm stuck at how to access my AppState (single source of truth) object in the AppDelegate . I need the AppDelegate to run code on startup and register for notifications ( didFinishLaunchingWithOptions , didRegisterForRemoteNotificationsWithDeviceToken , didReceiveRemoteNotification ) etc. I am aware of @UIApplicationDelegateAdaptor but then I can not e.g. pass an object through to the AppDelegate with a constructor. I guess the