Skip to content

Commit 6ec3c73

Browse files
committed
error
1 parent 933bafb commit 6ec3c73

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

integration-tests/src/test/java/com/datastax/oss/driver/core/cql/PreparedStatementCachingIT.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ private static RemovalListener<Object, Object> buildCacheRemoveCallback(
123123
@NonNull Optional<DefaultDriverContext> context) {
124124
return (evt) -> {
125125
try {
126-
LOG.info("Cache removal callback triggered, cause: {}", evt.getCause());
126+
LOG.error("Cache removal callback triggered, cause: {}", evt.getCause());
127127
CompletableFuture<PreparedStatement> future =
128128
(CompletableFuture<PreparedStatement>) evt.getValue();
129129
ByteBuffer queryId = Uninterruptibles.getUninterruptibly(future).getId();
130-
LOG.info("Firing PreparedStatementRemovalEvent for queryId: {}", queryId);
130+
LOG.error("Firing PreparedStatementRemovalEvent for queryId: {}", queryId);
131131
context.ifPresent(
132132
ctx -> ctx.getEventBus().fire(new PreparedStatementRemovalEvent(queryId)));
133133
} catch (Exception e) {
@@ -231,9 +231,9 @@ private void invalidationTestInner(
231231
ByteBuffer queryId2 = stmt2.getId();
232232
assertThat(getPreparedCacheSize(session)).isEqualTo(2);
233233

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());
237237

238238
CountDownLatch preparedStmtCacheRemoveLatch = new CountDownLatch(1);
239239
CountDownLatch typeChangeEventLatch = new CountDownLatch(expectedChangedTypes.size());
@@ -251,7 +251,7 @@ private void invalidationTestInner(
251251
TypeChangeEvent.class,
252252
(e) -> {
253253
// expect one event per type changed and for every parent type that nests it
254-
LOG.info(
254+
LOG.error(
255255
"Received TypeChangeEvent for type: {} (changeType: {})",
256256
e.oldType.getName(),
257257
e.changeType);
@@ -267,7 +267,7 @@ private void invalidationTestInner(
267267
.register(
268268
PreparedStatementRemovalEvent.class,
269269
(e) -> {
270-
LOG.info("Received PreparedStatementRemovalEvent for queryId: {}", e.queryId);
270+
LOG.error("Received PreparedStatementRemovalEvent for queryId: {}", e.queryId);
271271
if (!removedQueryIds.compareAndSet(Optional.empty(), Optional.of(e.queryId))) {
272272
// store an error if we see multiple cache invalidation events
273273
// any non-empty error will fail the test so it's OK to do this multiple times
@@ -280,8 +280,8 @@ private void invalidationTestInner(
280280
});
281281

282282
// 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);
285285
session.execute("ALTER TYPE test_type_caching_2 add i blob");
286286

287287
// Give a small delay to allow the schema change to propagate before checking agreement

0 commit comments

Comments
 (0)