admin: bound the index panel's key lookup

An engine that accepted the panel's MetadataKeys call and stopped
answering held the whole bucket page; the lookup now gives up after five
seconds and the panel shows the error, as the filter-stat calls do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-11-20 00:39:00 -08:00
1 parent 274ce498cf
commit ef3fe2f456
1 file changed
+3 -1
+3 -1
View File
@@ -67,7 +67,9 @@ type filterKeyTotal struct {
// engine, and its filter stats from every registered engine.
func (s *AdminServer) s3VectorsIndexPanel(ctx context.Context, bucket string, index *s3vectors.Index, engines []VectorNode) S3VectorsIndexPanel {
panel := S3VectorsIndexPanel{Index: index, Keys: []S3VectorsMetadataKeyRow{}, Frequent: []S3VectorsFilterKeyRow{}}
keys, err := s.s3VectorsServer.MetadataKeys(ctx, bucket, index.IndexName)
keysCtx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
keys, err := s.s3VectorsServer.MetadataKeys(keysCtx, bucket, index.IndexName)
if err != nil {
panel.Error = err.Error()
}