Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-2255

Repetitive error logs emitted from CoreIndexer related to NoSuchFileException which may lead to log file exhaustion.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • VFS
    • None
    • 2020 Week 19-21 (from May 4)
    • NEW
    • NEW

      While testing with the new nio2 implementation, experienced repetitive error logs like the following:

      15:56:05,059 INFO  [org.uberfire.java.nio.fs.k8s.K8SFileSystemProvider] (Thread-252) File not found [default:///home/jboss/ORGANIZATIONAL_UNIT_UPDATED]
      15:56:05,060 ERROR [org.uberfire.ext.metadata.io.IndexerDispatcher] (Thread-252) Indexing error for indexer [id=org.uberfire.ext.metadata.io.CoreIndexer]: org.uberfire.java.nio.file.NoSuchFileException
      	at org.uberfire.java.nio.fs.k8s.K8SFileSystemProvider.lambda$checkFileNotExistThenThrow$11(K8SFileSystemProvider.java:331)
      	at java.util.Optional.orElseThrow(Optional.java:290)
      	at org.uberfire.java.nio.fs.k8s.K8SFileSystemProvider.checkFileNotExistThenThrow(K8SFileSystemProvider.java:329)
      	at org.uberfire.java.nio.fs.file.SimpleFileSystemProvider.getFileAttributeView(SimpleFileSystemProvider.java:525)
      	at org.uberfire.java.nio.file.Files.getFileAttributeView(Files.java:617)
      	at org.uberfire.io.impl.IOServiceDotFileImpl.getFileAttributeView(IOServiceDotFileImpl.java:209)
      	at org.uberfire.ext.metadata.io.CoreIndexer.toKObject(CoreIndexer.java:46)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processNew(IndexerDispatcher.java:255)
      	at org.uberfire.ext.metadata.io.IndexableIOEvent$NewFileEvent.apply(IndexableIOEvent.java:62)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processEvent(IndexerDispatcher.java:235)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.processEvents(IndexerDispatcher.java:211)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:188)
      	at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:159)
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Looks like the 'NoSuchFileException' (a RuntimeException) is not being handled at here:
      https://github.com/kiegroup/appformer/blob/92d05f8620fb775a9fdd96574273de2deda3d215/uberfire-io/src/main/java/org/uberfire/io/impl/IOServiceDotFileImpl.java#L209

      Need to investigate the root cause of this indexer error thrown by CoreIndexer.

              aparedes@redhat.com Adriel Paredes
              evan.zhang@redhat.com Evan Zhang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: