keith-turner commented on PR #5030:
URL: https://github.com/apache/accumulo/pull/5030#issuecomment-2455132260

   The static analysis checks in the build had a really good find.  Found a bug 
where I forgot check the future for the scheduled task.
   
   ```
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) 
on project accumulo-server-base: Compilation failure
   [ERROR] 
/home/runner/work/accumulo/accumulo/server/base/src/main/java/org/apache/accumulo/server/metrics/PerTableMetrics.java:[81,56]
 error: [FutureReturnValueIgnored] Return value of methods returning Future 
must be checked. Ignoring returned Futures suppresses exceptions thrown from 
the code that completes the Future.
   [ERROR]     (see https://errorprone.info/bugpattern/FutureReturnValueIgnored)
   [ERROR]   Did you mean 'var unused = 
context.getScheduledExecutor().scheduleAtFixedRate(this::refresh, 30, 30, 
TimeUnit.SECONDS);' or to remove this line?
   [ERROR] 
   [ERROR] -> [Help 1]
   org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
(default-compile) on project accumulo-server-base: Compilation failure
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to