|
3 | 3 | #include <ydb/core/cms/console/console.h>
|
4 | 4 | #include <ydb/core/cms/console/configs_dispatcher.h>
|
5 | 5 | #include <ydb/core/protos/counters_hive.pb.h>
|
| 6 | +#include <ydb/core/protos/node_broker.pb.h> |
6 | 7 | #include <ydb/core/util/tuples.h>
|
7 | 8 | #include <ydb/library/yverify_stream/yverify_stream.h>
|
8 | 9 | #include <ydb/library/actors/interconnect/interconnect.h>
|
@@ -96,10 +97,12 @@ void THive::RestartPipeTx(ui64 tabletId) {
|
96 | 97 |
|
97 | 98 | bool THive::TryToDeleteNode(TNodeInfo* node) {
|
98 | 99 | if (node->CanBeDeleted()) {
|
| 100 | + BLOG_I("TryToDeleteNode(" << node->Id << "): deleting"); |
99 | 101 | DeleteNode(node->Id);
|
100 | 102 | return true;
|
101 | 103 | }
|
102 | 104 | if (!node->DeletionScheduled) {
|
| 105 | + BLOG_D("TryToDeleteNode(" << node->Id << "): waiting " << GetNodeDeletePeriod()); |
103 | 106 | Schedule(GetNodeDeletePeriod(), new TEvPrivate::TEvDeleteNode(node->Id));
|
104 | 107 | node->DeletionScheduled = true;
|
105 | 108 | }
|
@@ -987,8 +990,9 @@ void THive::OnActivateExecutor(const TActorContext&) {
|
987 | 990 | BuildLocalConfig();
|
988 | 991 | ClusterConfig = AppData()->HiveConfig;
|
989 | 992 | SpreadNeighbours = ClusterConfig.GetSpreadNeighbours();
|
| 993 | + NodeBrokerEpoch = TDuration::MicroSeconds(NKikimrNodeBroker::TConfig().GetEpochDuration()); |
990 | 994 | Send(NConsole::MakeConfigsDispatcherID(SelfId().NodeId()),
|
991 |
| - new NConsole::TEvConfigsDispatcher::TEvSetConfigSubscriptionRequest(NKikimrConsole::TConfigItem::HiveConfigItem)); |
| 995 | + new NConsole::TEvConfigsDispatcher::TEvSetConfigSubscriptionRequest({NKikimrConsole::TConfigItem::HiveConfigItem, NKikimrConsole::TConfigItem::NodeBrokerConfigItem})); |
992 | 996 | Execute(CreateInitScheme());
|
993 | 997 | if (!ResponsivenessPinger) {
|
994 | 998 | ResponsivenessPinger = new TTabletResponsivenessPinger(TabletCounters->Simple()[NHive::COUNTER_RESPONSE_TIME_USEC], TDuration::Seconds(1));
|
@@ -2208,7 +2212,9 @@ void THive::Handle(TEvHive::TEvInitiateTabletExternalBoot::TPtr& ev) {
|
2208 | 2212 | void THive::Handle(NConsole::TEvConsole::TEvConfigNotificationRequest::TPtr& ev) {
|
2209 | 2213 | const NKikimrConsole::TConfigNotificationRequest& record = ev->Get()->Record;
|
2210 | 2214 | ClusterConfig = record.GetConfig().GetHiveConfig();
|
2211 |
| - BLOG_D("Received TEvConsole::TEvConfigNotificationRequest with update of cluster config: " << ClusterConfig.ShortDebugString()); |
| 2215 | + NodeBrokerEpoch = TDuration::MicroSeconds(record.GetConfig().GetNodeBrokerConfig().GetEpochDuration()); |
| 2216 | + BLOG_D("Received TEvConsole::TEvConfigNotificationRequest with update of cluster config: " << ClusterConfig.ShortDebugString() |
| 2217 | + << "; " << record.GetConfig().GetNodeBrokerConfig().ShortDebugString()); |
2212 | 2218 | BuildCurrentConfig();
|
2213 | 2219 | Send(ev->Sender, new NConsole::TEvConsole::TEvConfigNotificationResponse(record), 0, ev->Cookie);
|
2214 | 2220 | }
|
|
0 commit comments