diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-05 12:19:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-05 12:19:06 -0800 |
| commit | 4cc6a2a4e58ac03ae79816b636bc8bbf5797b707 (patch) | |
| tree | 67e118c3e34f2d257a78dcc48f4e1210bdfb0e81 /postgres-examples/README.md | |
| parent | 5c1de633cb10fe87450c9a38e090c4d69b1242da (diff) | |
| download | seaweedfs-4cc6a2a4e58ac03ae79816b636bc8bbf5797b707.tar.xz seaweedfs-4cc6a2a4e58ac03ae79816b636bc8bbf5797b707.zip | |
fix: Admin UI user creation fails before filer discovery (#7624) (#7625)
* fix: Admin UI user creation fails before filer discovery (#7624)
The credential manager's filer address function was not configured quickly
enough after admin server startup, causing 'filer address function not
configured' errors when users tried to create users immediately.
Changes:
- Use exponential backoff (200ms -> 5s) instead of fixed 5s polling for
faster filer discovery on startup
- Improve error messages to be more user-friendly and actionable
Fixes #7624
* Add more debug logging to help diagnose filer discovery issues
* fix: Use dynamic filer address function to eliminate race condition
Instead of using a goroutine to wait for filer discovery before setting
the filer address function, we now set a dynamic function immediately
that returns the current filer address whenever it's called.
This eliminates the race condition where users could create users before
the goroutine completed, and provides clearer error messages when no
filer is available.
The dynamic function is HA-aware - it automatically returns whatever
filer is currently available, adapting to filer failovers.
Diffstat (limited to 'postgres-examples/README.md')
0 files changed, 0 insertions, 0 deletions
