1. 25 11月, 2021 8 次提交
    • Y
      Fix DFile name parsing bug · 5dc2a671
      Yifan Hao 提交于
      When parsing DFile name, we expect the file name to follow the
      format of v<vid>f<fid>.<type>-ver<version>. When parsing type
      in tsdbParseDFilename(), it uses a glibc modifier "m" to allocate
      string. However, type string ("p" variable in the original code)
      could be NULL for various reasons, and the following code doesn't
      check NULL, while would lead to crash.
      
      This patch fixes this bug by using a stack allocated string to
      parse type.
      
      * Testing
      
      I have a local vnode repository like following:
      .
      ├── vnode145
      │   ├── config.json
      │   ├── tsdb
      │   │   ├── data
      │   │   │   ├── v145f1736.data
      │   │   │   ├── v145f1736.head-ver14
      │   │   │   ├── v145f1736.last
      │   │   │   ├── v145f1736.smad
      │   │   │   └── v145f1736.smal
      │   │   └── meta
      │   ├── version.json
      │   └── wal
      
      "vnode145" is lacking "current" for the FS status, but this is fine
      since it can be recovered from the "data" folder. However, the above
      repository will lead to taosd crashing while restoring "current",
      because type for DFile can sometimes be not parsed by the sscanf
      format before this patch.
      
      After this patch, the above repository can work OK and "current" can
      be restored.
      
      Also run taosdemo for sanity check.
      
      Spent 81.9563 seconds to insert rows: 100000000, affected rows: 100000000 with 8 thread(s) into test.meters. 1220162.42 records/second
      
      insert delay, avg:      65.13ms, max:     252.73ms, min:      24.77ms
      5dc2a671
    • M
      Merge pull request #8780 from taosdata/fix/TS-707 · 38c0244e
      Minglei Jin 提交于
      [TS-707]<fix>: fixed crash when cleanup was called before creating all http threads
      38c0244e
    • M
      Merge pull request #8765 from taosdata/fix/TS-527 · 8c4c3625
      Minglei Jin 提交于
      [TS-527]<fix>: fixed 'select *' with state_window bug
      8c4c3625
    • D
      Merge pull request #8774 from taosdata/fix/TD-10797 · 8275b446
      dapan1121 提交于
      [TD-10797]<fix>: when column length is long, report 'invalid column name' error
      8275b446
    • H
      Merge pull request #8735 from taosdata/szhou/hotfix/tbname-group-limit · 42bbe9d9
      Haojun Liao 提交于
      TD-11087:fix csum/diff/derivate group by tbname limit bugs
      42bbe9d9
    • G
      Merge branch 'develop' into fix/TD-10797 · 2cc5b497
      Ganlin Zhao 提交于
      2cc5b497
    • S
      pass compilation · ce460928
      shenglian zhou 提交于
      ce460928
    • S
      5a9fd5e9
  2. 24 11月, 2021 9 次提交
  3. 23 11月, 2021 14 次提交
  4. 22 11月, 2021 9 次提交