|
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 | }
|
@@ -989,8 +992,9 @@ void THive::OnActivateExecutor(const TActorContext&) {
|
989 | 992 | BuildLocalConfig();
|
990 | 993 | ClusterConfig = AppData()->HiveConfig;
|
991 | 994 | SpreadNeighbours = ClusterConfig.GetSpreadNeighbours();
|
| 995 | + NodeBrokerEpoch = TDuration::MicroSeconds(NKikimrNodeBroker::TConfig().GetEpochDuration()); |
992 | 996 | Send(NConsole::MakeConfigsDispatcherID(SelfId().NodeId()),
|
993 |
| - new NConsole::TEvConfigsDispatcher::TEvSetConfigSubscriptionRequest(NKikimrConsole::TConfigItem::HiveConfigItem)); |
| 997 | + new NConsole::TEvConfigsDispatcher::TEvSetConfigSubscriptionRequest({NKikimrConsole::TConfigItem::HiveConfigItem, NKikimrConsole::TConfigItem::NodeBrokerConfigItem})); |
994 | 998 | Execute(CreateInitScheme());
|
995 | 999 | if (!ResponsivenessPinger) {
|
996 | 1000 | ResponsivenessPinger = new TTabletResponsivenessPinger(TabletCounters->Simple()[NHive::COUNTER_RESPONSE_TIME_USEC], TDuration::Seconds(1));
|
@@ -2218,7 +2222,9 @@ void THive::Handle(TEvHive::TEvInitiateTabletExternalBoot::TPtr& ev) {
|
2218 | 2222 | void THive::Handle(NConsole::TEvConsole::TEvConfigNotificationRequest::TPtr& ev) {
|
2219 | 2223 | const NKikimrConsole::TConfigNotificationRequest& record = ev->Get()->Record;
|
2220 | 2224 | ClusterConfig = record.GetConfig().GetHiveConfig();
|
2221 |
| - BLOG_D("Received TEvConsole::TEvConfigNotificationRequest with update of cluster config: " << ClusterConfig.ShortDebugString()); |
| 2225 | + NodeBrokerEpoch = TDuration::MicroSeconds(record.GetConfig().GetNodeBrokerConfig().GetEpochDuration()); |
| 2226 | + BLOG_D("Received TEvConsole::TEvConfigNotificationRequest with update of cluster config: " << ClusterConfig.ShortDebugString() |
| 2227 | + << "; " << record.GetConfig().GetNodeBrokerConfig().ShortDebugString()); |
2222 | 2228 | BuildCurrentConfig();
|
2223 | 2229 | Send(ev->Sender, new NConsole::TEvConsole::TEvConfigNotificationResponse(record), 0, ev->Cookie);
|
2224 | 2230 | }
|
|
0 commit comments