Merge branch 'topic/timw/switch-broker-error-to-error'

* topic/timw/switch-broker-error-to-error:
  Downgrade broker clone FatalError to an Error
This commit is contained in:
Tim Wojtulewicz 2025-05-08 13:46:54 -07:00
commit 2c17c85f55
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,7 @@
8.0.0-dev.74 | 2025-05-08 13:46:54 -0700
* Downgrade broker clone FatalError to an Error (Tim Wojtulewicz, Corelight)
8.0.0-dev.72 | 2025-05-08 13:18:52 +0200 8.0.0-dev.72 | 2025-05-08 13:18:52 +0200
* probabilistic/BitVector: Add include <cstdint> (Arne Welzel, Corelight) * probabilistic/BitVector: Add include <cstdint> (Arne Welzel, Corelight)

View file

@ -1 +1 @@
8.0.0-dev.72 8.0.0-dev.74

View file

@ -2092,8 +2092,10 @@ detail::StoreHandleVal* Manager::MakeClone(const string& name, double resync_int
auto handle = new detail::StoreHandleVal{*result}; auto handle = new detail::StoreHandleVal{*result};
Ref(handle); Ref(handle);
if ( ! handle->proxy.valid() ) if ( ! handle->proxy.valid() ) {
reporter->FatalError("Failed to create clone for data store %s", name.c_str()); reporter->Error("Failed to create clone for data store %s", name.c_str());
return nullptr;
}
data_stores.emplace(name, handle); data_stores.emplace(name, handle);
if ( ! iosource_mgr->RegisterFd(handle->proxy.mailbox().descriptor(), this) ) if ( ! iosource_mgr->RegisterFd(handle->proxy.mailbox().descriptor(), this) )