Skip to content

Commit

Permalink
BigArrays: Disable breaking.
Browse files Browse the repository at this point in the history
The BigArrays limit is currently shared by the translog, netty, http and some
queries/aggregations. If any of these consumers starts taking a lot of memory,
then other ones might fail to allocate memory, which could have bad
consequences, eg. if ping requests can't be sent. The plan is to come up with
a better solution in 1.3.

Close #6332
  • Loading branch information
jpountz committed Jun 3, 2014
1 parent 589eef6 commit c462a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/elasticsearch/common/util/BigArrays.java
Expand Up @@ -368,7 +368,7 @@ public T set(long index, T value) {

@Inject
public BigArrays(Settings settings, PageCacheRecycler recycler) {
this(settings, recycler, settings.getAsMemory(MAX_SIZE_IN_BYTES_SETTING, "20%").bytes());
this(settings, recycler, settings.getAsMemory(MAX_SIZE_IN_BYTES_SETTING, Long.toString(Long.MAX_VALUE)).bytes());
}

private BigArrays(Settings settings, PageCacheRecycler recycler, final long maxSizeInBytes) {
Expand Down

0 comments on commit c462a64

Please sign in to comment.