You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Saranya Krishnakumar (Jira)" <ji...@apache.org> on 2025/08/14 17:34:00 UTC
[jira] [Commented] (CASSSIDECAR-250) Do not log whole exception when schema is not found
[ https://issues.apache.org/jira/browse/CASSSIDECAR-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18013969#comment-18013969 ]
Saranya Krishnakumar commented on CASSSIDECAR-250:
--------------------------------------------------
Circle CI run [https://app.circleci.com/pipelines/github/sarankk/cassandra-sidecar?branch=fix_jira]
> Do not log whole exception when schema is not found
> ---------------------------------------------------
>
> Key: CASSSIDECAR-250
> URL: https://issues.apache.org/jira/browse/CASSSIDECAR-250
> Project: Sidecar for Apache Cassandra
> Issue Type: Improvement
> Components: Build
> Reporter: Stefan Miklosovic
> Assignee: Saranya Krishnakumar
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We do not need to see the exception itself if it is part of "normal" behaviour when Sidecar is started and connecting to a node where these tables are not present and we cope with it anyway. Just logging it is not there is enough. Logging exception as well just confuses a user thinking something went terribly wrong.
>
> {code:java}
> spark_master_1 | WARN [sidecar-internal-worker-pool-12] 2025-05-20 19:44:07,106 AuthCache.java:169 - system_auth schema is unavailable. Skip warming up cache
> spark_master_1 | org.apache.cassandra.sidecar.exceptions.SchemaUnavailableException: Table system_auth.identity_to_role does not exist
> spark_master_1 | at org.apache.cassandra.sidecar.db.schema.SystemAuthSchema.ensureSchemaAvailable(SystemAuthSchema.java:104)
> spark_master_1 | at org.apache.cassandra.sidecar.db.schema.SystemAuthSchema.allRolesAndIdentities(SystemAuthSchema.java:81)
> spark_master_1 | at org.apache.cassandra.sidecar.db.SystemAuthDatabaseAccessor.findAllIdentityToRoles(SystemAuthDatabaseAccessor.java:84)
> spark_master_1 | at org.apache.cassandra.sidecar.acl.AuthCache.warmUp(AuthCache.java:165)
> spark_master_1 | at org.apache.cassandra.sidecar.acl.AuthCache.lambda$warmUpAsync$1(AuthCache.java:145)
> spark_master_1 | at org.apache.cassandra.sidecar.concurrent.TaskExecutorPool.lambda$runBlocking$4(TaskExecutorPool.java:197)
> spark_master_1 | at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$4(ContextImpl.java:192)
> spark_master_1 | at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:270)
> spark_master_1 | at io.vertx.core.impl.ContextImpl$1.execute(ContextImpl.java:221)
> spark_master_1 | at io.vertx.core.impl.WorkerTask.run(WorkerTask.java:56)
> spark_master_1 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> spark_master_1 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> spark_master_1 | at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> spark_master_1 | at java.base/java.lang.Thread.run(Thread.java:829)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org