Fix the default config value for direct mem allocation
To keep the behavior consistent, we need to have the default value of
direct memory allocation to be false, so that offheap => mmap.
Otherwise, we will run out of memory if maxDirect is not condigured
correctly.
@@ -166,7 +166,7 @@ public class HelixInstanceDataManagerConfig implements InstanceDataManagerConfig
@Override
public boolean isDirectRealtimeOffheapAllocation() {
- return _instanceDataManagerConfiguration.getBoolean(DIRECT_REALTIME_OFFHEAP_ALLOCATION, true);
+ return _instanceDataManagerConfiguration.getBoolean(DIRECT_REALTIME_OFFHEAP_ALLOCATION, false);
}
@Override
