Skip to content

Commit

Permalink
Log message if file system caching is disabled on coordinator
Browse files Browse the repository at this point in the history
Co-authored-by: Yuya Ebihara <[email protected]>
  • Loading branch information
developer-x and ebyhr committed Apr 29, 2024
1 parent fa86edb commit a0103b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/trino-filesystem-cache-alluxio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
<artifactId>configuration</artifactId>
</dependency>

<dependency>
<groupId>io.airlift</groupId>
<artifactId>log</artifactId>
</dependency>

<dependency>
<groupId>io.airlift</groupId>
<artifactId>stats</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import alluxio.conf.AlluxioProperties;
import alluxio.conf.InstancedConfiguration;
import com.google.inject.Inject;
import io.airlift.log.Logger;
import io.opentelemetry.api.trace.Tracer;
import io.trino.filesystem.Location;
import io.trino.filesystem.TrinoInput;
Expand All @@ -35,6 +36,8 @@
public class AlluxioCoordinatorFileSystemCache
implements TrinoFileSystemCache
{
private static final Logger log = Logger.get(AlluxioCoordinatorFileSystemCache.class);

private final Optional<AlluxioFileSystemCache> alluxioFileSystemCache;

@Inject
Expand All @@ -49,6 +52,7 @@ public AlluxioCoordinatorFileSystemCache(
alluxioFileSystemCache = Optional.of(new AlluxioFileSystemCache(tracer, config, statistics));
}
else {
log.debug("File system cache is disabled on a coordinator");
alluxioFileSystemCache = Optional.empty();
try {
CacheManager cacheManager = CacheManager.Factory.create(new InstancedConfiguration(new AlluxioProperties()));
Expand Down

0 comments on commit a0103b1

Please sign in to comment.