atharvalade opened a new issue, #3132:
URL: https://github.com/apache/iggy/issues/3132
When loading consumer offsets at startup, the server panics if any file in
the consumer offset directory has a non-numeric filename.
**File:** `core/server/src/streaming/partitions/storage.rs` lines 183-186,
247-252
```rust
let name = dir_entry.file_name().into_string().unwrap();
let consumer_id = name.parse::<u32>().unwrap_or_else(|_| {
panic!("Invalid consumer ID file with name: '{}'.", name);
});
```
An operator accidentally placing a file (e.g. .DS_Store, editor swap file,
backup) in the consumer offsets directory crashes the server on startup. This
should be a warning + skip, not a panic.
I think we should log a warning and skip non-numeric filenames instead of
panicking.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]