Xavier Noria
Xavier Noria
@bvogel are you getting ``` RuntimeError: can't add a new key into hash during iteration ``` with one thread?
@bvogel how weird. If that exception happens, it is expected that reload does no longer work, because things were interrupted by the exception in who knows which internal state. I...
@bvogel awesome, let's see if we hunt this one down. Even if you get one sporadic error, sharing the stack trace would be already something.
@bvogel Good one. I wonder if `descendants` is conflicting with itself depending on how you hit the hierarchy. I'll try to follow this hint. Meanwhile, I believe it should be...
@bvogel problem is, it is not thread-safe. A second thread finds the flag set while the first one is still preloading, so it calls `super` with an intermediate state.
@bvogel STI has always tension, because we need to eager load in a lazy loading context. So you need to find the sweet spot in which you feel the trade-off...
Hey, perhaps `StiPreload` has some issue that can be solved, eh? I need to dig into it, that initializer is something that may at least avoid the exceptions meanwhile.
@mildred unfortunately, I have no other report like this. Since you cannot reproduce in single-thread mode, the hypothesis is that it is an issue related to multi-threading. Since this is...
Hey! I have written a Hello World app following the README. Let's suppose the model is `Tag`. `TagHierarchy` is a top-level constant defined by hand in `Object`. It is no...
While this is still open, you can at least avoid the warning if you want. Just depend on Zeitwerk >= 2.5.0, and throw this in an initializer: ```ruby unless Rails.application.config.cache_classes...