ctubbsii commented on a change in pull request #2425:
URL: https://github.com/apache/accumulo/pull/2425#discussion_r797154815
##########
File path:
server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServerResourceManager.java
##########
@@ -253,8 +254,10 @@ public TabletServerResourceManager(ServerContext context) {
final AccumuloConfiguration acuConf = context.getConfiguration();
long maxMemory = acuConf.getAsBytes(Property.TSERV_MAXMEM);
- boolean usingNativeMap =
- acuConf.getBoolean(Property.TSERV_NATIVEMAP_ENABLED) &&
NativeMap.isLoaded();
+ boolean usingNativeMap =
acuConf.getBoolean(Property.TSERV_NATIVEMAP_ENABLED);
+ if (usingNativeMap) {
+ NativeMapLoader.load();
Review comment:
I wasn't trying to be discourteous. I was just trying to be expeditious.
I apologize if I upset you by pushing it through too quickly.
Regarding marking this thread as resolved. I thought I answered your
questions. I had no reason to believe there will be follow-on and don't feel it
necessary to hold open threads indefinitely when a reply is not expected and
may never come. Open threads clutter the page and make it harder for me to find
open comments that I haven't addressed. Why not just mark the thread as
"Unresolved" if there's more to address? That's what I do. After all, I'm not
intentionally resolving threads to be discourteous... I'm doing so to track
outstanding tasks. Resolving the thread merely indicates that *I* don't think
there's more to do there. I won't be offended if you simply reopen the thread
because *you* believe there's more.
As always, please feel free to directly email me or message me on Slack or
by any other means, if you feel I've done something discourteous. I'm very busy
and don't always immediately see the comments on GitHub, so contacting me
directly to bring it to my attention allows me to be more expeditious in
correcting any misunderstandings, or apologizing when needed.
As for your observation about the static initializer. I thought I answered
your question already. I understood you to mean it was redundant with the call
to load() in TabletServerResourceManager, but as I answered already, I left it
in because I believed it preserved existing behavior, if the NativeMap class
were referenced by some other code path, either now, or in the future. As it
turns out, that was a mistake, and I should have removed it, as I've done in
#2453.
--
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]