mirror of https://github.com/apache/druid.git
fix ConcurrentModificationException in CachingClusteredClient.run() (#3278)
* fix ConcurrentModificationException in CachingClusteredClient.run() * obtain new copy of PartitionHolder to avoid potential multi-threads read/write issue
This commit is contained in:
parent
884017d981
commit
1fa681934c
|
@ -244,7 +244,7 @@ public class VersionedIntervalTimeline<VersionType, ObjectType> implements Timel
|
||||||
new TimelineObjectHolder<VersionType, ObjectType>(
|
new TimelineObjectHolder<VersionType, ObjectType>(
|
||||||
object.getTrueInterval(),
|
object.getTrueInterval(),
|
||||||
object.getVersion(),
|
object.getVersion(),
|
||||||
object.getPartitionHolder()
|
new PartitionHolder<ObjectType>(object.getPartitionHolder())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -453,7 +453,7 @@ public class VersionedIntervalTimeline<VersionType, ObjectType> implements Timel
|
||||||
new TimelineObjectHolder<VersionType, ObjectType>(
|
new TimelineObjectHolder<VersionType, ObjectType>(
|
||||||
timelineInterval,
|
timelineInterval,
|
||||||
val.getVersion(),
|
val.getVersion(),
|
||||||
val.getPartitionHolder()
|
new PartitionHolder<ObjectType>(val.getPartitionHolder())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue