@@ -123,11 +123,11 @@ private static RemovalListener<Object, Object> buildCacheRemoveCallback(
123
123
@ NonNull Optional <DefaultDriverContext > context ) {
124
124
return (evt ) -> {
125
125
try {
126
- LOG .info ("Cache removal callback triggered, cause: {}" , evt .getCause ());
126
+ LOG .error ("Cache removal callback triggered, cause: {}" , evt .getCause ());
127
127
CompletableFuture <PreparedStatement > future =
128
128
(CompletableFuture <PreparedStatement >) evt .getValue ();
129
129
ByteBuffer queryId = Uninterruptibles .getUninterruptibly (future ).getId ();
130
- LOG .info ("Firing PreparedStatementRemovalEvent for queryId: {}" , queryId );
130
+ LOG .error ("Firing PreparedStatementRemovalEvent for queryId: {}" , queryId );
131
131
context .ifPresent (
132
132
ctx -> ctx .getEventBus ().fire (new PreparedStatementRemovalEvent (queryId )));
133
133
} catch (Exception e ) {
@@ -231,9 +231,9 @@ private void invalidationTestInner(
231
231
ByteBuffer queryId2 = stmt2 .getId ();
232
232
assertThat (getPreparedCacheSize (session )).isEqualTo (2 );
233
233
234
- LOG .info ("Prepared statements in cache:" );
235
- LOG .info (" Statement 1: {} (queryId: {})" , preparedStmtQueryType1 , stmt1 .getId ());
236
- LOG .info (" Statement 2: {} (queryId: {})" , preparedStmtQueryType2 , stmt2 .getId ());
234
+ LOG .error ("Prepared statements in cache:" );
235
+ LOG .error (" Statement 1: {} (queryId: {})" , preparedStmtQueryType1 , stmt1 .getId ());
236
+ LOG .error (" Statement 2: {} (queryId: {})" , preparedStmtQueryType2 , stmt2 .getId ());
237
237
238
238
CountDownLatch preparedStmtCacheRemoveLatch = new CountDownLatch (1 );
239
239
CountDownLatch typeChangeEventLatch = new CountDownLatch (expectedChangedTypes .size ());
@@ -251,7 +251,7 @@ private void invalidationTestInner(
251
251
TypeChangeEvent .class ,
252
252
(e ) -> {
253
253
// expect one event per type changed and for every parent type that nests it
254
- LOG .info (
254
+ LOG .error (
255
255
"Received TypeChangeEvent for type: {} (changeType: {})" ,
256
256
e .oldType .getName (),
257
257
e .changeType );
@@ -267,7 +267,7 @@ private void invalidationTestInner(
267
267
.register (
268
268
PreparedStatementRemovalEvent .class ,
269
269
(e ) -> {
270
- LOG .info ("Received PreparedStatementRemovalEvent for queryId: {}" , e .queryId );
270
+ LOG .error ("Received PreparedStatementRemovalEvent for queryId: {}" , e .queryId );
271
271
if (!removedQueryIds .compareAndSet (Optional .empty (), Optional .of (e .queryId ))) {
272
272
// store an error if we see multiple cache invalidation events
273
273
// any non-empty error will fail the test so it's OK to do this multiple times
@@ -280,8 +280,8 @@ private void invalidationTestInner(
280
280
});
281
281
282
282
// alter test_type_caching_2 to trigger cache invalidation and above events
283
- LOG .info ("Executing ALTER TYPE test_type_caching_2 add i blob" );
284
- LOG .info ("Expected to invalidate statement 2 (queryId: {}) due to type change" , queryId2 );
283
+ LOG .error ("Executing ALTER TYPE test_type_caching_2 add i blob" );
284
+ LOG .error ("Expected to invalidate statement 2 (queryId: {}) due to type change" , queryId2 );
285
285
session .execute ("ALTER TYPE test_type_caching_2 add i blob" );
286
286
287
287
// Give a small delay to allow the schema change to propagate before checking agreement
0 commit comments