Skip to content

Nexus Engine - Version 1.4.2

Latest

Choose a tag to compare

@mustafabinguldev mustafabinguldev released this 03 Jun 14:41

🚀 Nexus Engine - Version 1.4.2

This release brings significant stability improvements, memory leak fixes, thread-safety enhancements, and clean refactoring across both core core application logic and data addon management.

📋 What's Changed

⚙️ Core & Lifecycle Enhancements (NexusApplication)

  • Thread Safety: Marked the singleton NexusApplication instance as volatile to prevent stale references in highly concurrent multi-threaded environments.
  • Memory & Resource Fixes: Wrapped URLClassLoader within a try-with-resources block to ensure file handles and memory resources are immediately freed after loading JARs.
  • Database & Threading: Resolved a parallel connection race condition on MongoDB by adding a 10-second initial delay to the scheduled task. Also standardized initial database verification tasks on the Swing thread.
  • Safety First: getInfluxDBManager() now returns an Optional<InfluxDBManager>, explicitly enforcing downstream NPE checks when metrics are disabled.

📊 Data & Metrics Refactoring (DataAddon)

  • Critical Bug Fix: Fixed a telemetry bug in handleIncrementData where the old JSON payload was being pushed instead of the newly updated one.
  • Performance Optimization: Reduced repetitive getApplication() and getRedisManager() lookups by caching them into local variables.
  • Early Validation: Added input validation before spawning Redis tasks to eliminate redundant asynchronous operations.
  • Code Cleanups: Modernized Optional handling via .ifPresent(...), simplified metric annotation lookups, and pruned unused imports.