justenoughbackups-1.2.0.11+26.3.jar
Curse Maven Snippet
What's new
Added
- Added Anvil region integrity validation (
McaIntegrityValidator) that verifies sector allocation bounds, payload lengths, and cross-references chunk table indices against internal NBT coordinates (xPos/zPosfor terrain chunks andPositionfor entity chunks).
Fixed
- Fixed misplaced chunk records and structure corruption caused by concurrent chunk saving during live backups: world chunk storage (
chunkMap) and point-of-interest storage (poiManager) are now fully synchronized and flushed before freezing and reading world files. - Backups containing mismatched chunk coordinates or corrupted MCA sectors are now detected and rejected during backup creation and restore staging under
STRICTintegrity mode, preventing corrupted archives from overwriting world structures after a restore. - Allowed unpadded trailing sectors in live
.mcaregion files during integrity validation. - Root backup metadata entries (
justenoughbackups.data,manifest.json,justenoughbackups-status.json, andsummary.txt) are now excluded during world snapshotting, preventing manually unzipped archives in world directories from polluting subsequent backups. - In-game restore verification now ignores mod metadata files and current
excludedPathswhen validating restored snapshots, allowing existing backups to be restored cleanly even after config exclusion changes. - Restore integrity mode now prioritizes the active server configuration (
BackupConfig.integrityMode), allowingVERY_PERMISSIVEmode to be applied during recovery of backups created underSTRICTmode. - Offloaded blocking backup listing, UI actions,
/jeb list,/jeb restoretab completion, and startup backup checks off the main server thread to prevent server tick freezes and watchdog crashes. - Moved remote backup MCA integrity validation before upload/publication so corrupted worlds are rejected before uploading, and ensured
PERMISSIVEMCA warnings are broadcast consistently. - Fixed cycle detection for
baseBackupIdin retention and local restore chains to prevent infinite loops andOutOfMemoryError. - Fixed
retention.maxTotalSizeMbeviction in both local and remote retention so oldest unneeded backups are actually evicted when the size cap is exceeded while preserving required dependency chains. - Released the
BACKUP_RUNNINGlock only after world saving is restored on the server thread, preventing concurrent backup overlap and permanently disabled world saving. - Routed parallel
DEFLATEDper-file I/O errors throughhandleBrokenFilesoPERMISSIVEandVERY_PERMISSIVEmodes work consistently with parallel compression. - Prevented local backup ID collisions within the same second by appending a short unique suffix, prevented
.jeb-zstd-*.tmpleaks on worker interruption, and cleaned up local restore staging directories on failure. - Hardened remote storage: blocked cross-host WebDAV redirect credential leakage, retried transient WebDAV HTTP
408/429/5xxerrors, fixedWebDavObjectStoreHttpClientleak on invalid URL and avoided buffering arbitrary streams into heap, accurately classified S3SdkClientExceptionretryability, and guardedInstant.EPOCHand prefix/segment validation inRemoteBackupCatalog. - Fixed
BackupWatchdogthread safety, post-stop heartbeat races, and missing activity reporting during MCA validation; fixedBackupSchedulerthread safety, cascading back-to-back scheduled backups, and shutdown interaction with pending restores. - Hardened networking, commands, and config persistence: bounded
BackupUiResponsePayloadlist size on decode, preserved original failure causes in UI responses, fixedRestoreProgressTrackerconcurrency, fixedServerTranslationsplaceholder scanning, wrotejustenoughbackups.jsonatomically, and rejected non-hex signs inConfigColor.parse. - Fixed client UI bugs:
UnsupportedOperationExceptionafter "Reset All" when adding excluded paths, 6 integer config fields silently discarding typed values on save, modal input box mouse clicks, phantom inline-rename hitbox and footer click interception, dedicated-server config validation scoping,BackupProgressHudthread safety and disconnect cleanup, color slider drag width,threadCountreset, lineage jump under active filters, and horizontal cursor scrolling for long config fields.
Performance
- Skipped the redundant full-world SHA-256 read pass on
FULLbackups and combined directory scanning into a single pass. - Eliminated triple redundant SHA-256 hashing during restore verification.
- Reused a
ThreadLocal64 KB buffer inWorldSnapshotter.sha256and switched hex formatting toHexFormat. - Parallelized
.mcaregion integrity validation acrossBackupThreadPooland avoided tiny per-chunk channel syscalls for standard region files. - Parallelized remote catalog sidecar
.jsonreads inRemoteBackupCatalog.list()and removed redundant ZIP manifest scans indeleteBackup. - Cached HUD layout/text/color snapshots in
BackupPopupRenderer/BackupProgressHud, eliminated per-frame allocations and redundant rebuilds in config and backup management screens, and reduced guide-line draw calls inPopupPreviewScreen.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include