Bug Type (问题类型)
logic (逻辑设计问题)
Before submit
Environment (环境信息)
- Server Version: 1.5.0 (Apache Release Version)
- Backend: RocksDB x nodes, HDD
Expected & Actual behavior (期望与实际表现)
The pdconfig property in LogMeta and PartitionMeta is redundant
MetadataRocksDBStore has already defined the pdConfig property, it seems no need to redefine it in the subclass PartitionMeta
public class MetadataRocksDBStore extends MetadataStoreBase {
HgKVStore store;
PDConfig pdConfig;
public MetadataRocksDBStore(PDConfig pdConfig) {
store = MetadataFactory.getStore(pdConfig);
this.pdConfig = pdConfig;
}
public class PartitionMeta extends MetadataRocksDBStore {
static String CID_GRAPH_ID_KEY = "GraphID";
static int CID_GRAPH_ID_MAX = 0xFFFE;
private final PDConfig pdConfig;
private final PartitionCache cache;
public PartitionMeta(PDConfig pdConfig) {
super(pdConfig);
this.pdConfig = pdConfig;
//this.timeout = pdConfig.getEtcd().getTimeout();
this.cache = new PartitionCache();
}
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
Bug Type (问题类型)
logic (逻辑设计问题)
Before submit
Environment (环境信息)
Expected & Actual behavior (期望与实际表现)
The pdconfig property in LogMeta and PartitionMeta is redundant
MetadataRocksDBStore has already defined the pdConfig property, it seems no need to redefine it in the subclass PartitionMeta
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response