File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,9 @@ func (p *Plugin) Activate() error {
387
387
if p .role == CSINode || p .role == CSIAllInOne {
388
388
p .nodeRegisterWithController (ctx , 0 ) // Retry indefinitely
389
389
390
+ // Initialize node scalability limiter.
391
+ p .InitializeNodeLimiter (ctx )
392
+
390
393
// Cleanup any stale volume publication state immediately so self-healing works with current data.
391
394
if err := p .performNodeCleanup (ctx ); err != nil {
392
395
Logc (ctx ).WithError (err ).Warn ("Failed to clean node; self-healing features may be unreliable." )
@@ -400,9 +403,6 @@ func (p *Plugin) Activate() error {
400
403
p .startISCSISelfHealingThread (ctx )
401
404
p .startNVMeSelfHealingThread (ctx )
402
405
403
- // Initialize node scalability limiter.
404
- p .InitializeNodeLimiter (ctx )
405
-
406
406
if p .enableForceDetach {
407
407
p .startReconcilingNodePublications (ctx )
408
408
}
@@ -634,6 +634,9 @@ func (p *Plugin) stopNVMeSelfHealingThread(_ context.Context) {
634
634
func (p * Plugin ) InitializeNodeLimiter (ctx context.Context ) {
635
635
var err error
636
636
637
+ Logc (ctx ).Debug ("Initializing node limiters." )
638
+ defer Logc (ctx ).Debug ("Node limiters initialized." )
639
+
637
640
if p .limiterSharedMap [NodeStageNFSVolume ], err = limiter .New (ctx ,
638
641
NodeStageNFSVolume ,
639
642
limiter .TypeSemaphoreN ,
You can’t perform that action at this time.
0 commit comments