Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,12 @@ private StorageEngineMessages() {}
public static final String STORAGE_LOG_DEGRADE_LASTFLUSHTIMEMAP_OF_OLD_TIMEPARTITIONINFO_MEM_SIZE_BED053EE =
"[{}]degrade LastFlushTimeMap of old TimePartitionInfo-{}, mem size is {}, remaining mem "
+ "cost is {}";
public static final String STORAGE_LOG_FAILED_TO_DEGRADE_LASTFLUSHTIMEMAP_OF_TIMEPARTITIONINFO_KEEP_IT_REGISTERED_2B2924D0 =
"[{}]Failed to degrade LastFlushTimeMap of TimePartitionInfo-{}, keep it registered so "
+ "that its memory is still accounted";
public static final String STORAGE_LOG_FAILED_TO_DEGRADE_LASTFLUSHTIMEMAP_OF_REPLACED_TIMEPARTITIONINFO_47B56998 =
"[{}]Failed to degrade LastFlushTimeMap of replaced TimePartitionInfo-{}, keep its memory "
+ "accounted";
public static final String STORAGE_LOG_LIMIT_OF_ARRAY_DEQUE_SIZE_UPDATED_05DBA95E =
"limit of {} array deque size updated: {} -> {}";
public static final String STORAGE_LOG_LIMITUPDATETHRESHOLD_OF_PRIMITIVEARRAYMANAGER_UPDATED_394801AE =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,10 @@ private StorageEngineMessages() {}
"SG ({}) 已释放内存 (delta:{}),但系统仍处于拒绝状态 (totalSgMemCost:{})。";
public static final String STORAGE_LOG_DEGRADE_LASTFLUSHTIMEMAP_OF_OLD_TIMEPARTITIONINFO_MEM_SIZE_BED053EE =
"[{}] 降级旧 TimePartitionInfo-{} 的 LastFlushTimeMap,内存大小为 {},剩余内存开销为 {}";
public static final String STORAGE_LOG_FAILED_TO_DEGRADE_LASTFLUSHTIMEMAP_OF_TIMEPARTITIONINFO_KEEP_IT_REGISTERED_2B2924D0 =
"[{}] 降级 TimePartitionInfo-{} 的 LastFlushTimeMap 失败,保留该分区的注册信息以继续统计其内存";
public static final String STORAGE_LOG_FAILED_TO_DEGRADE_LASTFLUSHTIMEMAP_OF_REPLACED_TIMEPARTITIONINFO_47B56998 =
"[{}] 降级被替换的 TimePartitionInfo-{} 的 LastFlushTimeMap 失败,继续统计其内存";
public static final String STORAGE_LOG_LIMIT_OF_ARRAY_DEQUE_SIZE_UPDATED_05DBA95E =
"{} array deque 大小限制已更新:{} -> {}";
public static final String STORAGE_LOG_LIMITUPDATETHRESHOLD_OF_PRIMITIVEARRAYMANAGER_UPDATED_394801AE =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public class DataRegion implements IDataRegionForQuery {
/** flush listeners. */
private List<FlushListener> customFlushListeners = Collections.emptyList();

private ILastFlushTimeMap lastFlushTimeMap;
private final ILastFlushTimeMap lastFlushTimeMap;

/**
* Record the insertWriteLock in SG is being hold by which method, it will be empty string if no
Expand Down Expand Up @@ -465,6 +465,11 @@ public DataRegion(
logger.error(StorageEngineMessages.CREATE_DB_SYSTEM_DIR_FAILED, dataRegionSysDir.getPath());
}

// Must be initialized before recover(): during recovery, `this` is published to
// TimePartitionManager through TimePartitionInfo (before this region is registered in
// StorageEngine), and other threads may call degradeFlushTimeMap() on it. TimePartitionManager
// synchronizes registration and degradation on the same monitor, and lastFlushTimeMap is final,
// so those threads always see a fully initialized map.
lastFlushTimeMap = new HashLastFlushTimeMap();
upgradeModFileThreadPool =
IoTDBThreadPoolFactory.newSingleThreadExecutor(
Expand Down Expand Up @@ -524,6 +529,7 @@ public DataRegion(String databaseName, String dataRegionIdString) {
this.dataRegionId = new DataRegionId(Integer.parseInt(this.dataRegionIdString));
this.dataRegionInfo = new DataRegionInfo(this);
this.tsFileManager = new TsFileManager(databaseName, dataRegionIdString, "");
this.lastFlushTimeMap = new HashLastFlushTimeMap();
this.partitionMaxFileVersions = new HashMap<>();
partitionMaxFileVersions.put(0L, 0L);
upgradeModFileThreadPool = null;
Expand Down Expand Up @@ -829,7 +835,8 @@ private void recover() throws DataRegionException {
latestPartitionId,
false,
Long.MAX_VALUE,
lastFlushTimeMap.getMemSize(latestPartitionId)));
lastFlushTimeMap.getMemSize(latestPartitionId),
this));
}
}
// wait until all unsealed TsFiles have been recovered
Expand Down Expand Up @@ -1198,7 +1205,8 @@ private Callable<Void> asyncRecoverFilesInPartition(
partitionId,
false,
Long.MAX_VALUE,
lastFlushTimeMap.getMemSize(partitionId)));
lastFlushTimeMap.getMemSize(partitionId),
this));
}
for (TsFileResource tsFileResource : resourceList) {
updatePartitionLastFlushTime(tsFileResource);
Expand Down Expand Up @@ -1258,7 +1266,8 @@ private void syncRecoverFilesInPartition(
partitionId,
false,
Long.MAX_VALUE,
lastFlushTimeMap.getMemSize(partitionId)));
lastFlushTimeMap.getMemSize(partitionId),
this));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concurrency concern introduced by making recovering regions degradable.

Here the partition is registered (with memSize = 0) before the loop below populates its DeviceLastFlushTime (a plain HashMap). Data regions are recovered in parallel, so with this change the following interleaving becomes possible:

thread B (recovering region B, partition P)   thread A (recovering region A)
register(P, memSize=0, this)
updateMultiDeviceFlushedTime(P, ...)
  D.merge(dev_i, t) ... looping ...           updateAfterFlushing -> over threshold
                                              degradeLastFlushTime()
                                                picks B's P (inactive, small partitionId)
                                                B.degradeFlushTimeMap(P)
                                                  D.degradeLastFlushTime() iterates D.values()

Possible outcomes:

  • ConcurrentModificationException thrown in thread A. recover() only catches IOException, so A's region recovery fails, and TimePartitionManager is left with release() done but the entry not removed.
  • Lost updates: B keeps writing into the stale D after computeIfPresent has swapped in a PartitionLastFlushTime. The degraded partition flush time is then lower than the real max end time, so later writes in (degraded, real] may be classified as sequence, which can produce overlapping seq files.

In-progress partitions (memSize 0, small partitionId) are actually the first candidates in comparePriority, and degrading them frees nothing, so this window is easy to hit in exactly the memory-pressure scenario this PR targets. A single-region Edge setup does not exercise it.

Suggestions:

  • (a) Minimal: register only after the map is fully populated, so a partition never becomes a degradation candidate while this thread is still mutating it:
    boolean existed = lastFlushTimeMap.checkAndCreateFlushedTimePartition(partitionId, true);
    for (TsFileResource r : resourceList) {
      if (!r.isDeleted()) {
        updateDeviceLastFlushTime(r);
      }
    }
    if (!existed) {
      TimePartitionManager.getInstance()
          .registerTimePartitionInfo(
              new TimePartitionInfo(dataRegionId, partitionId, false, Long.MAX_VALUE, 0, this));
    }
    TimePartitionManager.getInstance()
        .updateAfterFlushing(
            dataRegionId, partitionId, System.currentTimeMillis(),
            lastFlushTimeMap.getMemSize(partitionId), false);
    Note that this does not cover recoverUnsealedTsFileCallBack -> updateDeviceLastFlushTime, or the DeviceLastFlushTime branch of upgradeAndUpdateMultiDeviceFlushedTime in the async tasks, which mutate already-registered partitions.
  • (b) More robust: in HashLastFlushTimeMap, perform every mutation of an ILastFlushTime inside partitionLatestFlushedTime.compute(partitionId, ...), so it is serialized per partition with degradeLastFlushTime's computeIfPresent. This would also close the pre-existing runtime race noted on degradeFlushTimeMap ("may not hold the write lock").

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 18d6d07 with option (b): every mutation of an ILastFlushTime in HashLastFlushTimeMap (updateMultiDeviceFlushedTime, upgradeAndUpdateMultiDeviceFlushedTime, updatePartitionFlushedTime, updateLatestFlushTime) and its memory-cost update now run inside partitionLatestFlushedTime.compute(partitionId, ...). degradeLastFlushTime runs inside computeIfPresent and resets the memory cost there too. Degradation can no longer iterate a DeviceLastFlushTime that is being modified, and no update goes into a stale DeviceLastFlushTime after it is replaced. Later updates go into the PartitionLastFlushTime and are merged by max. This also covers recoverUnsealedTsFileCallBack and the async upgrade path, plus the runtime "may not hold the write lock" race. checkAndCreateFlushedTimePartition now uses putIfAbsent. Also, a degraded partition no longer gains phantom memory cost from later device updates. New test: LastFlushTimeMapTest#testConcurrentUpdateAndDegrade, which fails on the previous commit with ConcurrentModificationException.

}
for (TsFileResource tsFileResource : resourceList) {
if (!tsFileResource.isDeleted()) {
Expand Down Expand Up @@ -1694,7 +1703,8 @@ private void initFlushTimeMap(long timePartitionId) {
timePartitionId,
true,
Long.MAX_VALUE,
0));
0,
this));
}
}

Expand Down Expand Up @@ -4798,7 +4808,8 @@ public void loadNewTsFile(
timePartitionId,
false,
Long.MAX_VALUE,
lastFlushTimeMap.getMemSize(timePartitionId)));
lastFlushTimeMap.getMemSize(timePartitionId),
this));
}
updateDeviceLastFlushTime(newTsFileResource);
TimePartitionManager.getInstance()
Expand Down Expand Up @@ -5364,7 +5375,8 @@ public void insert(InsertRowsOfOneDeviceNode insertRowsOfOneDeviceNode)
timePartitionId,
true,
Long.MAX_VALUE,
0));
0,
this));
}

boolean isSequence =
Expand Down Expand Up @@ -5489,7 +5501,8 @@ public void insert(InsertRowsNode insertRowsNode)
timePartitionIds[i],
true,
Long.MAX_VALUE,
0));
0,
this));
}
areSequence[i] =
config.isEnableSeparateData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,104 +44,123 @@ public class HashLastFlushTimeMap implements ILastFlushTimeMap {
/** record memory cost of map for each partitionId */
private final Map<Long, Long> memCostForEachPartition = new ConcurrentHashMap<>();

/*
* Concurrency note: every mutation of an ILastFlushTime (and of the memory cost of its partition)
* is performed inside partitionLatestFlushedTime.compute(partitionId, ...). The degradation
* triggered by TimePartitionManager may run in another thread (e.g. the recovery thread of
* another DataRegion, or a flush thread that does not hold this region's write lock), and it
* replaces the ILastFlushTime inside computeIfPresent(partitionId, ...). Serializing both on the
* same key guarantees that the degradation never iterates a DeviceLastFlushTime that is being
* modified, and that no update is applied to a stale DeviceLastFlushTime after it was replaced.
*/

// For sync recover resource without fileTimeIndexCache and load
@Override
public void updateMultiDeviceFlushedTime(
long timePartitionId, Map<IDeviceID, Long> flushedTimeMap) {
ILastFlushTime flushTimeMapForPartition =
partitionLatestFlushedTime.computeIfAbsent(
timePartitionId, id -> new DeviceLastFlushTime());

long memIncr = 0L;
for (Map.Entry<IDeviceID, Long> entry : flushedTimeMap.entrySet()) {
if (flushTimeMapForPartition.getLastFlushTime(entry.getKey()) == Long.MIN_VALUE) {
memIncr += HASHMAP_NODE_BASIC_SIZE + entry.getKey().ramBytesUsed();
}
flushTimeMapForPartition.updateLastFlushTime(entry.getKey(), entry.getValue());
}
long finalMemIncr = memIncr;
memCostForEachPartition.compute(
timePartitionId, (k1, v1) -> v1 == null ? finalMemIncr : v1 + finalMemIncr);
partitionLatestFlushedTime.compute(
timePartitionId,
(id, lastFlushTime) -> {
ILastFlushTime flushTimeMapForPartition =
lastFlushTime == null ? new DeviceLastFlushTime() : lastFlushTime;
// a degraded partition only keeps one long, so device entries cost no extra memory
boolean isDeviceLevel = flushTimeMapForPartition instanceof DeviceLastFlushTime;
long memIncr = 0L;
for (Map.Entry<IDeviceID, Long> entry : flushedTimeMap.entrySet()) {
if (isDeviceLevel
&& flushTimeMapForPartition.getLastFlushTime(entry.getKey()) == Long.MIN_VALUE) {
memIncr += HASHMAP_NODE_BASIC_SIZE + entry.getKey().ramBytesUsed();
}
flushTimeMapForPartition.updateLastFlushTime(entry.getKey(), entry.getValue());
}
memCostForEachPartition.merge(id, memIncr, Long::sum);
return flushTimeMapForPartition;
});
}

// For async recover resource with fileTimeIndexCache
@Override
public void upgradeAndUpdateMultiDeviceFlushedTime(
long timePartitionId, Map<IDeviceID, Long> flushedTimeMap) {
ILastFlushTime flushTimeMapForPartition =
partitionLatestFlushedTime.computeIfAbsent(
timePartitionId, id -> new DeviceLastFlushTime());
// upgrade DeviceLastFlushTime to PartitionLastFlushTime
if (flushTimeMapForPartition instanceof PartitionLastFlushTime) {
long maxFlushTime = flushTimeMapForPartition.getLastFlushTime(null);
ILastFlushTime newDeviceLastFlushTime = new DeviceLastFlushTime();
long memIncr = 0;
for (Map.Entry<IDeviceID, Long> entry : flushedTimeMap.entrySet()) {
memIncr += HASHMAP_NODE_BASIC_SIZE + entry.getKey().ramBytesUsed();
newDeviceLastFlushTime.updateLastFlushTime(entry.getKey(), entry.getValue());
maxFlushTime = Math.max(maxFlushTime, entry.getValue());
}
long finalMemIncr = memIncr;
memCostForEachPartition.compute(
timePartitionId, (k1, v1) -> v1 == null ? finalMemIncr : v1 + finalMemIncr);
} else {
// go here when DeviceLastFlushTime was recovered by wal recovery
long memIncr = 0;
for (Map.Entry<IDeviceID, Long> entry : flushedTimeMap.entrySet()) {
if (flushTimeMapForPartition.getLastFlushTime(entry.getKey()) == Long.MIN_VALUE) {
memIncr += HASHMAP_NODE_BASIC_SIZE + entry.getKey().ramBytesUsed();
}
flushTimeMapForPartition.updateLastFlushTime(entry.getKey(), entry.getValue());
}
long finalMemIncr = memIncr;
memCostForEachPartition.compute(
timePartitionId, (k1, v1) -> v1 == null ? finalMemIncr : v1 + finalMemIncr);
}
partitionLatestFlushedTime.compute(
timePartitionId,
(id, lastFlushTime) -> {
ILastFlushTime flushTimeMapForPartition =
lastFlushTime == null ? new DeviceLastFlushTime() : lastFlushTime;
if (flushTimeMapForPartition instanceof PartitionLastFlushTime) {
// The partition only keeps a partition-level flush time, either because it was
// recovered from the FileTimeIndexCache, or because TimePartitionManager has degraded
// it to release memory. Keep it degraded, but merge the recovered maximum into it so
// that the partition flush time is never lower than the real max end time.
for (long flushedTime : flushedTimeMap.values()) {
flushTimeMapForPartition.updateLastFlushTime(null, flushedTime);
}
} else {
// go here when DeviceLastFlushTime was recovered by wal recovery
long memIncr = 0;
for (Map.Entry<IDeviceID, Long> entry : flushedTimeMap.entrySet()) {
if (flushTimeMapForPartition.getLastFlushTime(entry.getKey()) == Long.MIN_VALUE) {
memIncr += HASHMAP_NODE_BASIC_SIZE + entry.getKey().ramBytesUsed();
}
flushTimeMapForPartition.updateLastFlushTime(entry.getKey(), entry.getValue());
}
memCostForEachPartition.merge(id, memIncr, Long::sum);
}
return flushTimeMapForPartition;
});
}

// For fileTimeIndexCache recovered before the async resource recover start
@Override
public void updatePartitionFlushedTime(long timePartitionId, long maxFlushedTime) {
ILastFlushTime flushTimeMapForPartition =
partitionLatestFlushedTime.computeIfAbsent(
timePartitionId, id -> new PartitionLastFlushTime(maxFlushedTime));

if (flushTimeMapForPartition instanceof PartitionLastFlushTime) {
long memIncr = Long.BYTES;
flushTimeMapForPartition.updateLastFlushTime(null, maxFlushedTime);
memCostForEachPartition.putIfAbsent(timePartitionId, memIncr);
} else {
// go here when DeviceLastFlushTime was recovered by wal recovery
DeviceLastFlushTime deviceLastFlushTime = (DeviceLastFlushTime) flushTimeMapForPartition;
Map<IDeviceID, Long> flushedTimeMap = deviceLastFlushTime.getDeviceLastFlushTimeMap();
for (Map.Entry<IDeviceID, Long> entry : flushedTimeMap.entrySet()) {
flushTimeMapForPartition.updateLastFlushTime(entry.getKey(), entry.getValue());
}
}
partitionLatestFlushedTime.compute(
timePartitionId,
(id, lastFlushTime) -> {
ILastFlushTime flushTimeMapForPartition =
lastFlushTime == null ? new PartitionLastFlushTime(maxFlushedTime) : lastFlushTime;
if (flushTimeMapForPartition instanceof PartitionLastFlushTime) {
flushTimeMapForPartition.updateLastFlushTime(null, maxFlushedTime);
memCostForEachPartition.putIfAbsent(id, (long) Long.BYTES);
}
// Otherwise the DeviceLastFlushTime was recovered by wal recovery or sync recovery, and
// the device flush times of these resources are merged into it by
// upgradeAndUpdateMultiDeviceFlushedTime after the async recovery.
return flushTimeMapForPartition;
});
}

@Override
public boolean checkAndCreateFlushedTimePartition(
long timePartitionId, boolean usingDeviceFlushTime) {
if (!partitionLatestFlushedTime.containsKey(timePartitionId)) {
partitionLatestFlushedTime.put(
timePartitionId,
usingDeviceFlushTime
? new DeviceLastFlushTime()
: new PartitionLastFlushTime(Long.MIN_VALUE));
return false;
// fast path without allocation, this method is called for every insertion
if (partitionLatestFlushedTime.containsKey(timePartitionId)) {
return true;
}
return true;
// putIfAbsent keeps the creation atomic when several threads meet a new partition together
return partitionLatestFlushedTime.putIfAbsent(
timePartitionId,
usingDeviceFlushTime
? new DeviceLastFlushTime()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Avoid allocating a device map on every partition hit

DataRegion.initFlushTimeMap() calls this method for each single-row insert when sequence separation is enabled. Java constructs DeviceLastFlushTime and its backing HashMap before putIfAbsent can return the existing entry. In a warmed-up loop of 2,000,000 hits on eight existing partitions, both JDK 17 and 21 allocated 128,000,000 extra bytes relative to the base commit (64 bytes per hit).

Please return early when the key already exists, then construct the value and use putIfAbsent on a miss. This keeps creation atomic when two threads encounter a new partition together.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in fe13f4c: checkAndCreateFlushedTimePartition returns early on containsKey, and constructs the value plus putIfAbsent only on a miss, so creation stays atomic when threads hit a new partition together.

: new PartitionLastFlushTime(Long.MIN_VALUE))
!= null;
}

// For insert
@Override
public void updateLatestFlushTime(long partitionId, Map<IDeviceID, Long> updateMap) {
for (Map.Entry<IDeviceID, Long> entry : updateMap.entrySet()) {
partitionLatestFlushedTime
.computeIfAbsent(partitionId, id -> new DeviceLastFlushTime())
.updateLastFlushTime(entry.getKey(), entry.getValue());
if (updateMap.isEmpty()) {
return;
}
partitionLatestFlushedTime.compute(
partitionId,
(id, lastFlushTime) -> {
ILastFlushTime flushTimeMapForPartition =
lastFlushTime == null ? new DeviceLastFlushTime() : lastFlushTime;
for (Map.Entry<IDeviceID, Long> entry : updateMap.entrySet()) {
flushTimeMapForPartition.updateLastFlushTime(entry.getKey(), entry.getValue());
}
return flushTimeMapForPartition;
});
}

@Override
Expand All @@ -158,8 +177,12 @@ public void clearFlushedTime() {
@Override
public void degradeLastFlushTime(long partitionId) {
partitionLatestFlushedTime.computeIfPresent(
partitionId, (id, lastFlushTime) -> lastFlushTime.degradeLastFlushTime());
memCostForEachPartition.put(partitionId, (long) Long.BYTES);
partitionId,
(id, lastFlushTime) -> {
ILastFlushTime degradedLastFlushTime = lastFlushTime.degradeLastFlushTime();
memCostForEachPartition.put(id, (long) Long.BYTES);
return degradedLastFlushTime;
});
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
package org.apache.iotdb.db.storageengine.rescon.memory;

import org.apache.iotdb.commons.consensus.DataRegionId;
import org.apache.iotdb.commons.utils.TestOnly;
import org.apache.iotdb.db.storageengine.dataregion.DataRegion;

import java.lang.ref.WeakReference;

/** Time partition info records necessary info of a time partition for a data region */
public class TimePartitionInfo {
Expand All @@ -33,17 +37,45 @@ public class TimePartitionInfo {

long memSize;

/**
* The DataRegion that owns this time partition. It is used to degrade the LastFlushTimeMap of the
* region when the region is not (or not yet) the one registered in StorageEngine, e.g. while the
* region is being constructed and recovered. A weak reference is used so that a region whose
* construction failed is not pinned in memory by TimePartitionManager.
*/
private final WeakReference<DataRegion> dataRegionRef;

/**
* Production code should always pass the owning DataRegion, otherwise the LastFlushTimeMap of a
* region that is not registered in StorageEngine cannot be degraded.
*/
@TestOnly
public TimePartitionInfo(
DataRegionId dataRegionId,
long partitionId,
boolean isActive,
long lastSystemFlushTime,
long memsize) {
this(dataRegionId, partitionId, isActive, lastSystemFlushTime, memsize, null);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: after this PR, no main code uses the 5-argument constructor anymore (all call sites in DataRegion pass this). Consider marking it @TestOnly, or removing it and passing null in tests, so new production call sites don't silently lose the fallback reference.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marked the 5-argument constructor @TestOnly and added a Javadoc note that production code must pass the owning DataRegion.

}

public TimePartitionInfo(
DataRegionId dataRegionId,
long partitionId,
boolean isActive,
long lastSystemFlushTime,
long memsize,
DataRegion dataRegion) {
this.dataRegionId = dataRegionId;
this.partitionId = partitionId;
this.isActive = isActive;
this.lastSystemFlushTime = lastSystemFlushTime;
this.memSize = memsize;
this.dataRegionRef = dataRegion == null ? null : new WeakReference<>(dataRegion);
}

DataRegion getDataRegion() {
return dataRegionRef == null ? null : dataRegionRef.get();
}

public int comparePriority(TimePartitionInfo timePartitionInfo) {
Expand Down
Loading
Loading