File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -748,6 +748,12 @@ void TViewerPipeClient::RequestDone(ui32 requests) {
748
748
}
749
749
}
750
750
751
+ void TViewerPipeClient::ResetAndBootstrap () {
752
+ Requests = 0 ;
753
+ DelayedRequests.clear ();
754
+ Bootstrap ();
755
+ }
756
+
751
757
void TViewerPipeClient::Handle (TEvTabletPipe::TEvClientConnected::TPtr& ev) {
752
758
if (ev->Get ()->Status != NKikimrProto::OK) {
753
759
ui32 requests = FailPipeConnect (ev->Get ()->TabletId );
@@ -763,7 +769,7 @@ void TViewerPipeClient::HandleResolveResource(TEvTxProxySchemeCache::TEvNavigate
763
769
SharedDatabase = CanonizePath (entry.Path );
764
770
if (SharedDatabase == AppData ()->TenantName ) {
765
771
Direct = true ;
766
- return Bootstrap (); // retry bootstrap without redirect this time
772
+ return ResetAndBootstrap (); // retry bootstrap without redirect this time
767
773
}
768
774
DatabaseBoardInfoResponse = MakeRequestStateStorageEndpointsLookup (SharedDatabase);
769
775
} else {
@@ -795,7 +801,8 @@ void TViewerPipeClient::HandleResolve(TEvStateStorage::TEvBoardInfo::TPtr& ev) {
795
801
if (DatabaseBoardInfoResponse->IsOk ()) {
796
802
ReplyAndPassAway (MakeForward (GetNodesFromBoardReply (DatabaseBoardInfoResponse->GetRef ())));
797
803
} else {
798
- ReplyAndPassAway (GetHTTPBADREQUEST (" text/plain" , " Failed to resolve database - no nodes found" ));
804
+ Direct = true ;
805
+ ResetAndBootstrap (); // retry bootstrap without redirect this time
799
806
}
800
807
}
801
808
}
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ class TViewerPipeClient : public TActorBootstrapped<TViewerPipeClient> {
303
303
TString MakeForward (const std::vector<ui32>& nodes);
304
304
305
305
void RequestDone (ui32 requests = 1 );
306
+ void ResetAndBootstrap ();
306
307
void AddEvent (const TString& name);
307
308
void Handle (TEvTabletPipe::TEvClientConnected::TPtr& ev);
308
309
void HandleResolveDatabase (TEvTxProxySchemeCache::TEvNavigateKeySetResult::TPtr& ev);
You can’t perform that action at this time.
0 commit comments