smolnar82 opened a new pull request, #890:
URL: https://github.com/apache/knox/pull/890

   ## What changes were proposed in this pull request?
   
   As described in the corresponding KNOX-3022 JIRA, it might happen - due to 
various IO reasons - that the CM cluster configuration file is empty at Knox 
startup time. This could prevent the Knox Gateway from starting.
   In this PR we fix this issue.
   
   ## How was this patch tested?
   
   Added a new JUnit test case as well as ran manual testing on a real cluster 
using CM discovery. Once my patch was applied, the Knox Gateway started 
properly, and the empty file log entry appeared as expected:
   ```
   grep "is empty" /var/log/knox/gateway/gateway.log 
   2024-03-19 02:56:57,434 WARN  discovery.cm 
(ClusterConfigurationFileStore.java:get(107)) - Previously saved cluster 
configuration file 
/var/lib/knox/gateway/data/cm-clusters/https___CM-HOST_CM-PORT-Cluster_1.ver is 
empty.
   ```
   


-- 
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: dev-unsubscr...@knox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to