ORNL / DataFed

A Federated Scientific Data Management System
https://ornl.github.io/DataFed/
Other
18 stars 14 forks source link

System/Web - There seem to be race conditions on page load #519

Open dvstans opened 4 years ago

dvstans commented 4 years ago

Usually the main page loads fine; however, occasionally, some async elements do not load correctly - usually the root collection in the uses "my data" tree. This sometimes manifests as an ajax load error, and sometimes as an empty collection. Some investigation shows no errors being reported by core services, so this may be a client issue.

dvstans commented 4 years ago

Some debug output indicates this is a problem with the message context handler in the web service. Two messages in close time proximity used/reused the same context, so it's possible the context release of the first actually released the context of the second.

dvstans commented 4 years ago

This issue cannot be reproduced under normal loading conditions - it only happens immediately after a source file is updated on the server. This seems to indicate that it is the web server failing to synchronize with the file system within a given time window and serving broken HTML/JS files. Will keep this issue open in case the problem happens under normal conditions.