mattisonchao commented on PR #15098: URL: https://github.com/apache/pulsar/pull/15098#issuecomment-1094206797
> > Overall LGTM, but i have a question: Could we check for an `OpReadEntry` earlier (to avoid creating useless objects) or throw an exception (to achieve fail fast) when creating it? Please let me know what you think, thanks~ > > yep, I have thought it, but it's not atomic, it need user make invalid outside. This way more secure. Got it. I was just wondering if there is a race condition here. I would also like to say that we can throw an exception when we get an empty location. But it doesn't look particularly different from your approach. -- 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]
