Why do I receive warnings regarding non-responsive Change Notification Handles?

24 views (last 30 days)
When I change my current working directory or add a directory to the MATLAB path using the ADDPATH command, I often see the warning:
Warning: Change notification handle for remote <directory name> is not responsive.
This server does not appear to support UNIX-style directory timestamp updates.
Network latency may be causing delayed arrival of change notifications.
Type 'help changeNotification' for more info.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Apr 2022
Edited: MathWorks Support Team on 20 Apr 2022
MATLAB uses a Microsoft feature called Change Notification Handles (CNHs) to track if a file has been updated in a directory which has been added to the MATLAB path or is the current directory.
This warning may occur if MATLAB does not receive the change notification handle in a timely manner due to network or fileserver latency which delays the arrival of the change notification handle. For example, this may occur on NetApp filers, because NetApp filers are slower to issue the change notification handles (CNH) than the Windows servers.
Because many years ago there were problems with systems that would support change notification handles but not implement the corresponding behavior, the MATLAB code makes an assumption on how quickly the CNH is in a signaled state before it is interpreted as non-responsive.
These warnings regarding unresponsive change notification handles are likely benign, because the CNHs do arrive after a small delay and MATLAB is able to use them to detect changes in directories.
To disable these warning messages, execute:
system_dependent('DirChangeHandleWarn', 'never')
To learn more about the MATLAB function SYSTEM_DEPENDENT and options for using CNH's, review the following documentation.
A much more serious issue occurs when Windows exhausts its supply of change notification handles. Unfortunately, disabling the unresponsive change notification handle warning will also disable the warning regarding exhausted change notification handles.
For more information on this issue, please see the article below.

More Answers (0)

Categories

Find more on Downloads in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!