motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.78k stars 318 forks source link

Filesystem Watcher does not work with more than one configuration file #396

Open s4nji opened 5 years ago

s4nji commented 5 years ago

When a file change is detected via fsnotify, janus reads (only) the changed file and loads the configuration, ignoring the other configuration files.

Reproduction Steps:

  1. Start janus using filesystem repository with > 1 configuration file
  2. Update a configuration file

Expected behavior: Janus should reload all the configuration files.

Observed behavior: Janus crashes with segmentation fault.

[Describe observed behavior here]

Janus version: 3.8.6