[jira] [Closed] (IOTDB-76) Reformat MManager.getMetadataInString() in JSON format

2019-05-12 Thread Dongfang Mao (JIRA)


 [ 
https://issues.apache.org/jira/browse/IOTDB-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongfang Mao closed IOTDB-76.
-

> Reformat MManager.getMetadataInString() in JSON format
> --
>
> Key: IOTDB-76
> URL: https://issues.apache.org/jira/browse/IOTDB-76
> Project: Apache IoTDB
>  Issue Type: Improvement
>Reporter: Dongfang Mao
>Assignee: Dongfang Mao
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Reformat MManager.getMetadataInString() in standard JSON format by fastjson. 
> The detail of difference is as below:
> BEFORE:
> {code:java}
> root:{
>    a:{
>    d0:{
>    s0:{
> DataType: INT32,
> Encoding: RLE,
> Compressor: UNCOMPRESSED,
> args: {},
> StorageGroup: root.a.d0
>    },
>    s1:{
> DataType: INT32,
> Encoding: RLE,
> Compressor: UNCOMPRESSED,
> args: {},
> StorageGroup: root.a.d0
>    }
>    },
>    d1:{
>    s0:{
> DataType: INT32,
> Encoding: RLE,
> Compressor: UNCOMPRESSED,
> args: {},
> StorageGroup: root.a.d1
>    },
>    s1:{
> DataType: INT32,
> Encoding: RLE,
> Compressor: UNCOMPRESSED,
> args: {},
> StorageGroup: root.a.d1
>    }
>    },
>    b:{
>    d0:{
>    s0:{
> DataType: INT32,
> Encoding: RLE,
> Compressor: UNCOMPRESSED,
> args: {},
> StorageGroup: root.a.b.d0
>    }
>    }
>    }
>    }
> }{code}
>  
> AFTER:
> {code:java}
> {
>   "a":{
>   "b":{
>   "d0":{
>   "s0":{
>   "args":{},
>   "StorageGroup":"root.a.b.d0",
>   "DataType":"INT32",
>   "Compressor":"UNCOMPRESSED",
>   "Encoding":"RLE"
>   }
>   }
>   },
>   "d0":{
>   "s0":{
>   "args":{},
>   "StorageGroup":"root.a.d0",
>   "DataType":"INT32",
>   "Compressor":"UNCOMPRESSED",
>   "Encoding":"RLE"
>   },
>   "s1":{
>   "args":{},
>   "StorageGroup":"root.a.d0",
>   "DataType":"INT32",
>   "Compressor":"UNCOMPRESSED",
>   "Encoding":"RLE"
>   }
>   },
>   "d1":{
>   "s0":{
>   "args":{},
>   "StorageGroup":"root.a.d1",
>   "DataType":"INT32",
>   "Compressor":"UNCOMPRESSED",
>   "Encoding":"RLE"
>   },
>   "s1":{
>   "args":{},
>   "StorageGroup":"root.a.d1",
>   "DataType":"INT32",
>   "Compressor":"UNCOMPRESSED",
>   "Encoding":"RLE"
>   }
>   }
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (IOTDB-313) Need for new strategy of choosing directory

2019-11-21 Thread Dongfang Mao (Jira)
Dongfang Mao created IOTDB-313:
--

 Summary: Need for new strategy of choosing directory
 Key: IOTDB-313
 URL: https://issues.apache.org/jira/browse/IOTDB-313
 Project: Apache IoTDB
  Issue Type: New Feature
Reporter: Dongfang Mao


When usable space of one certain directory is much more than the others (when 
adding a new disk), all new files will be written to this directory, which is 
not optimal. Therefore, a new Strategy is needed here, which can randomly 
choose directory based on usable space. The more usable space the directory 
contains, the greater the chance of being chosen.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)