Skip to main content

Metadata Service Release Notes

JuiceFS 5.4.6 (2026/11/24)​

  • Optimized message prioritization by ignoring frequent fast requests (LOOKUP, GETATTR, OPEN, READ_CHUNK, CREDIT)
  • Optimized chunk compaction during metadata dump checks by deduplicating requests for shared chunks
  • Optimized CPU usage calculations for hot directories
  • Fixed truncate not rejecting file sizes exceeding MaxFileSize
  • Fixed lock requests not being rebuilt when retrying .meta.lock acquisition on startup, which could leave the lock file unlocked after a retry
  • Fixed waiting flock and plock requests not being woken up and canceled when closing a file, which could leave blocked lock requests hanging
  • Fixed missing size and filename validation for network packets and load JSON files
  • Multi-zone
    • Fixed non-atomic replacement when rename overwrites a cross-zone link (TypeLink) or performs a cross-zone rename, avoiding transient ENOENT errors on concurrent reads of the target path
    • Fixed clone prechecks not skipping staged virtual directories (vdir) of split directories during batched cloning, avoiding redundant traversal and excessive inode pre-allocation in a single precheck
    • Fixed invalid directory OIDs not being cleared on the server and avoided resetting valid OIDs on transient errors, preventing repeated lookups of stale OIDs or unnecessary re-resolution
    • Optimized the default maximum batch size (--max-batch-size) for clone in multi-zone clusters to 10,000
    • rebalance: Optimized directory balancing by not retrying directories that cannot be balanced

JuiceFS 5.4.5 (2026/11/17)​

  • Support comma-separated IP addresses or CIDR ranges in exports.cfg
  • Added the noatime option to exports.cfg to disable automatic atime updates per access rule
  • Added the ACTIVE_MIRRORS configuration to balance client connections across multiple mirrored metadata clusters
  • Require an administrator token to set POSIX ACL rules
  • Support logging internal diagnostic information on receiving SIGUSR2
  • Allow cloning readable empty directories without execute (x) permission, consistent with cp -r
  • Preserve atime when restoring files from the trash with undel
  • Honor permissions on open file handles without rechecking file read/write permissions during fallocate and copy_file_range
  • Corrected permission checks for listxattr to match Linux semantics
  • Delay reusing freed inodes during clone and reset the free inode search cursor after clone prechecks
  • Reduced sorting overhead when emptying the trash with emptytrash
  • Optimized hotspot sampling to reduce CPU usage
  • Write audit logs to temporary .tmp files before rotation
  • Block SIGPROF during fork on Linux when saving metadata snapshots to avoid potential deadlocks
  • Fixed TCP connections not being closed promptly when rejected during admission
  • Fixed inaccurate per-volume sustained file count and size statistics
  • Fixed client registration flags being lost after reloading sessions
  • Fixed session sampling not honoring the noreport setting in export rules
  • Fixed session indexes not being rebuilt after correcting session vid values during metadata loading
  • captool: Support querying metadata proxy connections and forwarding information
  • Multi-zone
    • Automatically enable client OID keepalive after upgrading to multi-zone mode, and fall back to the current inode when a node has no OID
    • Preserve the original directory's OID after a cross-zone directory rename
    • Use the link optimizer's safe point to control cleanup of migrated inodes (movedInode)
    • Wait for read-only replicas to reach the expected transaction version when resolving cross-zone links
    • Optimized the scan interval and maximum pending queue size for active cross-zone references
    • Prevent client dropLink requests from being interrupted
    • Fixed a race during asynchronous updates to virtual subdirectory lists (REP_VDIRS) in mirror mode that could expose stale virtual subdirectory state to clients
    • Fixed root directory IDs being incorrectly cached when retrieving a zone's reference root directory (refRoot) encounters a retryable error
    • find: Fixed traversal of merged virtual directories (vdir) whose parent is a cross-zone link (TypeLink)

JuiceFS 5.4.4 (2026/10/19)​

  • Added the auditlogdir option to exports.cfg to record audit logs only for specified directories
  • Support paginated quota listing and batched quota checks to improve performance with large numbers of quotas
  • Automatically remove old backup files when disk space is low, keeping the latest backup
  • Increased the priority of background tasks dispatched by the metadata service
  • Report an inode count of 0 in info responses from log-only nodes
  • Try the next node if downloading a snapshot of the same version fails
  • Fixed temporary filename conflicts when downloading metadata or transaction logs concurrently from different nodes
  • Fixed prioritized nodes being unable to take over from a leader they did not vote for in clusters with more than three nodes, and prevent logs from being pushed to log-only nodes during self-promotion
  • Fixed failure to recover after exceeding CPU quotas
  • Fixed stale directory metadata caches caused by a race between clients adding directory caches and notifying the server to clear cache records
  • Multi-zone
    • Limit concurrent client background tasks for updating cross-zone link statistics and balancing hot directories
    • Correct the inode of .jfszone0 when mounting the entire namespace, and prohibit creating cross-zone references at the cluster root mount point
    • Cache the originating zone client for pending messages to avoid processing them with the wrong zone client
    • Suppress directory migration failure logs caused by EPERM or ENOTSUP
    • rebalance: Skip directory entries already attempted and fix a potential infinite loop when some migrations fail
    • Fixed hard link count underflow when link optimization decremented the count while removing an old edge but did not increment it when attaching to the new target node
    • Fixed inaccurate file counts when renaming hard links across zones

JuiceFS 5.4.3 (2026/9/22)​

  • Optimized metadata service performance
  • Reduced the default hard link count limit from 1024 to 32
  • Fixed clients potentially hanging indefinitely at very low rate limits
  • Fixed client sampling remaining enabled after cancellation
  • Fixed memory usage potentially exceeding expectations when loading transaction logs
  • Fixed client sessions being invisible after promoting a mirror to a source cluster (introduced in 5.4.2)
  • Multi-zone
    • Fixed duplicate cross-zone hard link requests corrupting cross-zone links
    • Fixed a small number of non-migratable files preventing directory migration
    • Optimized performance when attempting to migrate large numbers of hard links
    • Prohibit cross-zone operations when mounting the root directory
    • rebalance: Control when split directories are merged
    • Improved balancing and distribution when each zone contains relatively few files
    • Fixed failure to restore migrated files from the trash by inode
    • Fixed potentially reading stale data after file migration
    • Optimized merging same-zone links with large numbers of hard links
    • Fixed rename failures caused by merging the destination directory

JuiceFS 5.4.2 (2026/9/2)​

  • Added the bench startup option to benchmark node hardware
  • Added the NO_DATA_SYNC configuration to prevent mirror services from dispatching background data synchronization tasks
  • Optimized support for millions of clients
  • Support configuring multiple metadata proxy nodes
  • Optimized metadata service performance under high request volumes
  • Improved client fallback to the source cluster when mirrored metadata synchronization lags
  • Check session IDs when registering sessions with mirrored metadata services
  • Fixed potentially incorrect node checksum calculations
  • Fixed potential out-of-memory errors on cold standby nodes caused by queued log replication messages
  • blkdev: Fixed a potential panic caused by repeated copyFileRange requests
  • captool: Fixed potential out-of-memory errors caused by incorrect parsing of some messages
  • Multi-zone
    • Improved cross-zone clone stability
    • Fixed repeated splitting and merging of the root directory for reference files
    • Fixed failures when merging virtual subdirectories due to child entry migration
    • Fixed potential EIO errors when creating directories due to migration races

JuiceFS 5.4.1 (2026/8/12)​

  • Added the -checkLicense option to validate LICENSE from a JSON file
  • Support connecting mirrored metadata services to the source through proxy nodes
  • Support adding read-only mirrors to accelerate metadata operations for source clients
  • Fall back to the source cluster without disconnecting from the mirror when the mirrored metadata service is unavailable
  • Fixed default quotas not synchronizing correctly to mirrors due to missing timestamps
  • Limit the number of quotas per volume
  • Align virtual subdirectory splitting at the root with other directories
  • Prioritize compaction of highly fragmented chunks and force compaction for chunks with excessive fragmentation
  • Prohibit setattr on immutable or append-only nodes
  • Invalidate the dcache of deleted directories when processing rmr requests
  • Improved transaction log entry scanning performance
  • Truncate compressed transaction log files
  • Fixed missing command-line options
  • blkdev: Add inodes to the migration list when processing copyFileRange requests
  • blkdev: Fixed inaccurate info messages
  • blkdev: Support removing block devices
  • captool: Support selecting among multiple client ports and fix several parsing issues
  • Multi-zone
    • Support cross-zone clone operations
    • Enable --keep-inode by default on clients
    • Improved handling of sustained link files
    • Filter out .backup when processing find requests
    • Fixed temporarily inaccurate statistics after directory renames

JuiceFS 5.3.14 (2026/7/30)​

  • Multi-zone
    • Use rename to create directories in the destination zone during cross-zone clone operations on clusters with migration disabled
    • Fixed all child entries potentially being concentrated in a single virtual subdirectory after splitting a hot directory

JuiceFS 5.3.13 (2026/7/22)​

  • Optimized POSIX lock performance with large numbers of read locks
  • Disconnect clients from mirrored metadata services that are significantly behind
  • Allow clients with dynamicip enabled in access rules to reconnect from different IP addresses
  • Fixed .meta.lock retaining the old process ID after the metadata process restarts
  • Multi-zone
    • Support client-side cross-zone clone operations
    • Lock each sub-zone separately during the merge phase of restore
    • Fixed excessive compaction traffic caused by copying shared block data during migration checks
    • Fixed cross-zone statistics for some file systems not being updated for extended periods when a metadata cluster hosts multiple file systems
    • Fixed potentially inaccurate file distribution reported by rebalance --path
    • Fixed rebalance incorrectly skipping some directories that require migration
    • Fixed spurious errors during concurrent same-zone link replacements

JuiceFS 5.3.12 (2026/7/3)​

  • Added the DISK_FREE_SPACE and DISK_FREE_RATIO options to control when the metadata service cleans up the log disk
  • Fixed excessive metadata service memory usage after processing find requests
  • Multi-zone
    • restore: Add a special suffix containing $ to distinguish conflicting files during recovery
    • Prohibit restoring link files that are not sustained
    • Fixed failure to restore files by inode after migration
    • Fixed repeated -1 suffixes being added to some files when restore concurrently merges sub-zone files into the main tree
    • Fixed poor performance when restore merges sub-zone files (introduced in 5.3.9)

JuiceFS 5.3.11 (2026/6/24)​

  • Close timed-out connections earlier when the main loop is busy
  • Stop checking atime and mtime when cleaning up trash files
  • Improved default performance when retrieving attributes for files with large numbers of hard links
  • Fixed a potential process panic caused by unexpectedly closed connections
  • Fixed read-only file flags being incorrectly ignored when replaying snapshot deletion logs
  • Fixed a significant slowdown when restoring files from the trash (introduced in 5.3.9)
  • Multi-zone
    • No longer retain the old process during graceful upgrades due to changes to keep-inode
    • Fixed virtual subdirectory OIDs potentially being released incorrectly
    • Fixed cross-zone rename targets becoming impossible to clean up if deleted prematurely
    • Fixed stale symlink caches causing failures when reading virtual subdirectories

JuiceFS 5.3.10 (2026/6/9)​

  • captool: Support printing []byte fields
  • Multi-zone
    • Added the DISABLE_BALANCE configuration to disable cross-zone migration
    • Track inodes in use by the kernel and prevent them from being released
    • Stop tracking open directories in openfiles
    • Support replaying transaction logs for cross-zone clone operations from version 5.4

JuiceFS 5.3.9 (2026/5/27)​

  • Added the NO_DATA_REP configuration to prevent mirror services from dispatching background data deletion and synchronization tasks
  • Support retrieving internal information such as message counts through SIGUSR2
  • Periodically check that log and mirror services connect evenly across cold standby nodes
  • Disconnect mirror services from metadata nodes that are significantly behind
  • Fixed slow replay on hot standby nodes caused by writing uncommitted transaction logs to disk
  • Fixed significant metadata service performance degradation with large numbers of clients running background tasks
  • Skip read-only attribute and quota checks when creating the gateway system directory at the root
  • Multi-zone
    • Distribute hot directories during migration
    • Do not migrate hot directories while they are being restored from the trash
    • fsck: Prefer entries with commits when repairing REF names
    • Exclude .backup from statistics
    • Fixed prolonged metadata service stalls when restoring trash files into split parent directories
    • Fixed spurious ENOENT errors during concurrent cross-zone rename operations
    • Fixed potential loss of gid and stack trace logging during cross-zone rename

JuiceFS 5.3.8 (2026/5/11)​

  • Fixed unexpected seteattr behavior on compressed, split directories
  • Limit the number of chunks used to calculate file checksums
  • Improved recovery after log replay failures on mirrored clusters
  • Multi-zone
    • Improved the multi-zone optimizer and fixed several cases where links were not cleaned up automatically
    • Allow updating the referenced inode when adding a commit to a REF name
    • Allow internal multi-zone operations when the volume root is immutable in the primary zone
    • Reject directory migration when many child entries would need to be detached, avoiding excessive cross-zone links
    • restore: Retry to merge as many entries as possible
    • fsck: Support checking all volumes in a cluster
    • Clear the loaded flag during unlink
    • Prefer creating temporary files in the same virtual subdirectory or zone as the destination file
    • Track open directories in openfiles

JuiceFS 5.3.7 (2026/4/21)​

  • Support limiting metadata CPU usage per token
  • Require administrator privileges for attr requests that set extended attributes
  • Disable plock deadlock detection when the thread ID is unknown
  • Disable the watchdog during log replay
  • Log client session IDs after repeated object cleanup failures to aid troubleshooting
  • Limit the depth of virtual subdirectory merges in a single request
  • Limit virtual subdirectory splitting depth to 6
  • Improved directory merge performance
  • Fixed repeated snapshot downloads without successful recovery when some changelogs are missing
  • Multi-zone
    • rebalance: Do not migrate files just restored from the trash
    • Fixed the SDK potentially using the parent directory's OID incorrectly during resolution
    • restore: Improved performance when restoring large numbers of files from the trash

JuiceFS 5.3.6 (2026/4/1)​

  • Added the MIN_TRASH_TIME parameter to adjust the minimum retention period for trash files
  • Support specifying multiple source cluster IP addresses for mirrored clusters
  • Disable metadata service port reuse and automatically clean up old child processes occupying the port
  • Skip large log files only when no older logs have been loaded
  • Return EBADSESSIONID when rejecting client connections
  • Improved configuration reload performance with large numbers of export rules
  • Improved proxy stability during leader changes
  • captool: Fixed parsing errors for compressed directories
  • Multi-zone
    • fsck: Stream references from each zone to reduce memory usage
    • Accelerated migrated inode cleanup
    • Fixed rebalance failing to migrate sub-zone directories correctly
    • Fixed incorrect warning logs caused by unresolved references in virtual directories

JuiceFS 5.3.5 (2026/3/19)​

  • Added statistics for sustained file count and size in pyjfs interfaces
  • Support virtual connections to reduce the number of connections to the metadata service
  • Support verifying LICENSE validity directly from the command line
  • Write the debug proxy port to a specific file
  • Optimized performance of list sessions
  • Skip sticky bit permission check for virtual subdirectories when deleting snapshots
  • Fixed a potential EBADF error on exit
  • Fixed repeated log downloads when encountering empty or corrupted transaction logs
  • Fixed an issue that the first message on a newly established connection might be dropped
  • captool: Fixed multiple message parsing errors
  • Multi-partition
    • No longer print error logs when a sub-partition does not have an exports file

JuiceFS 5.3.4 (2026/3/10)​

  • Reduced priority of client registration messages
  • Improved speed of retrieving exports rules
  • Multi-partition
    • Only record OID for directories

JuiceFS 5.3.3 (2026/3/2)​

  • Fixed FIFO file type character error in console API (q changed to p)
  • Added the ability to set volume names in pyjfs
  • Support loading virtual subdirectories from snapshot files
  • Increased the threshold for triggering transaction log cleanup
  • Back up unused transaction logs
  • Optimized transaction log scanning and sync process to reduce unnecessary log entries
  • Fixed inode reuse delay issue
  • Fixed truncation of compressed transaction logs
  • Fixed a potential panic when parsing inode ranges during log replay
  • Fixed log download failures in metalogger
  • Fixed naming and metadata rotation issues for compressed transaction log files in metalogger
  • captool: Adapted to recent protocol changes
  • Multi-partition
    • Record OID in readdir cache after rename
    • Return OID in rename requests
    • Ensure OID is valid
    • Prefer primary partition quota when paths are in the same partition
    • Prefer migrating empty directories back to the source partition during cross-partition directory rename
    • Also update atime when accessing moved inodes in mirror scenarios
    • Fixed returning extra empty paths in the heatmap command