File tree Expand file tree Collapse file tree 1 file changed +30
-3
lines changed
core/src/main/java/com/datastax/oss/driver/internal/core/session Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -484,9 +484,36 @@ private void notifyListeners() {
484
484
t );
485
485
}
486
486
}
487
- context .getNodeStateListener ().onSessionReady (DefaultSession .this );
488
- schemaListenerNotifier .onSessionReady (DefaultSession .this );
489
- context .getRequestTracker ().onSessionReady (DefaultSession .this );
487
+ try {
488
+ context .getNodeStateListener ().onSessionReady (DefaultSession .this );
489
+ } catch (Throwable t ) {
490
+ Loggers .warnWithException (
491
+ LOG ,
492
+ "[{}] Error while notifying {} of session ready" ,
493
+ logPrefix ,
494
+ context .getNodeStateListener (),
495
+ t );
496
+ }
497
+ try {
498
+ schemaListenerNotifier .onSessionReady (DefaultSession .this );
499
+ } catch (Throwable t ) {
500
+ Loggers .warnWithException (
501
+ LOG ,
502
+ "[{}] Error while notifying {} of session ready" ,
503
+ logPrefix ,
504
+ schemaListenerNotifier ,
505
+ t );
506
+ }
507
+ try {
508
+ context .getRequestTracker ().onSessionReady (DefaultSession .this );
509
+ } catch (Throwable t ) {
510
+ Loggers .warnWithException (
511
+ LOG ,
512
+ "[{}] Error while notifying {} of session ready" ,
513
+ logPrefix ,
514
+ context .getRequestTracker (),
515
+ t );
516
+ }
490
517
}
491
518
492
519
private void onNodeStateChanged (NodeStateEvent event ) {
You can’t perform that action at this time.
0 commit comments