1. 24 Sep, 2019 3 commits
  2. 22 Sep, 2019 1 commit
  3. 20 Sep, 2019 1 commit
  4. 18 Sep, 2019 3 commits
    • yiwu-arbug's avatar
      Fix new CF missing BlobFileSizeCollector (#78) · fc4106d4
      yiwu-arbug authored
      Summary:
      On `CreateColumnFamilies` we should set `BlobFileSizeCollectorFactory`. Fixing it.
      
      Test Plan:
      added test
      Signed-off-by: 's avatarYi Wu <yiwu@pingcap.com>
      fc4106d4
    • Connor's avatar
      Add more metrics (#79) · 10710bb1
      Connor authored
      * add more metrics
      Signed-off-by: 's avatarConnor1996 <zbk602423539@gmail.com>
      10710bb1
    • yiwu-arbug's avatar
      Prevent CF being dropped while GC is running (#72) · 8768067e
      yiwu-arbug authored
      Summary:
      If `DropColumnFamilies` is called while GC is running, GC can fail because the CF is gone. The GC job will then set background error which halts Titan as a whole. To prevent it, we let `DropColumnFamilies` wait till there no running GC before proceed, and let GC job wait for pending drop CF requests before start running. Fixes #71.
      
      Also fix `DropColumnFamilies` mark obsolete file as obsolete again, which will cause assert failure.
      
      Test Plan:
      Run titandb_stress and the above issues don't reproduce.
      8768067e
  5. 16 Sep, 2019 3 commits
  6. 13 Sep, 2019 1 commit
  7. 12 Sep, 2019 1 commit
  8. 11 Sep, 2019 1 commit
  9. 04 Sep, 2019 1 commit
    • yiwu-arbug's avatar
      Add internal operation stats and dump to info log periodically (#62) · 468ddc97
      yiwu-arbug authored
      Summary:
      Add stats for read/write bytes and input/output file of internal operations and break down by operation type (being flush, compaction or GC). Later after we introduce vtable we can further breakdown compaction into top levels compaction, L_n-1 compaction and Ln compaction.
      
      Test Plan:
      Run db_bench and get sample output:
      ```
      2019/08/29-23:49:29.593805 7f6fd97fa700 (Original Log Time 2019/08/29-23:49:29.593742) Titan internal stats for column family [default]:
      2019/08/29-23:49:29.593813 7f6fd97fa700 (Original Log Time 2019/08/29-23:49:29.593753) OP          COUNT  READ(GB)  WRITE(GB) IO_READ(GB) IO_WRITE(GB)  FILE_IN FILE_OUT
      2019/08/29-23:49:29.593821 7f6fd97fa700 (Original Log Time 2019/08/29-23:49:29.593760) ---------------------------------------------------------------------------------
      2019/08/29-23:49:29.593830 7f6fd97fa700 (Original Log Time 2019/08/29-23:49:29.593768) Flush          3        0.0       34.7         0.0         18.0        0        3
      2019/08/29-23:49:29.593839 7f6fd97fa700 (Original Log Time 2019/08/29-23:49:29.593784) Compaction     1        0.0        0.0         0.0          0.0        0        0
      2019/08/29-23:49:29.593848 7f6fd97fa700 (Original Log Time 2019/08/29-23:49:29.593793) GC             1      360.9        1.3       354.3          2.8        8        0
      ```
      468ddc97
  10. 27 Aug, 2019 1 commit
    • yiwu-arbug's avatar
      Upgrade RocksDB to 6.4 (#61) · c99cf9d2
      yiwu-arbug authored
      Summary:
      Update the code to base off RocksDB 6.4.x. There are a few internal interface changes and files moving around from 5.18 to 6.4. titandb_bench is also updated to base off the version in 6.4.x.
      
      Test Plan:
      Travis
      c99cf9d2
  11. 20 Aug, 2019 2 commits
    • yiwu-arbug's avatar
      cmake auto clone rocksdb (#60) · 19ea115a
      yiwu-arbug authored
      Summary:
      We require passing `ROCKSDB_DIR` to cmake command, which is not easy to use. Update cmake script to make it clone rocksdb (currently pointing to pingcap/rocksdb tikv-3.0 branch) to make development use easier.
      
      Test Plan:
      local test + travis
      19ea115a
    • YangKeao's avatar
      Add benchmark script (#57) · f0964aac
      YangKeao authored
      * Add benchmark script
      f0964aac
  12. 05 Aug, 2019 1 commit
  13. 31 Jul, 2019 1 commit
  14. 29 Jul, 2019 2 commits
  15. 25 Jul, 2019 3 commits
  16. 22 Jul, 2019 2 commits
  17. 18 Jul, 2019 1 commit
    • Wu Jiayu's avatar
      Turn titan into read-only on error during gc and version_change (#42) · 8ee2e794
      Wu Jiayu authored
      - Set background error if encountered a critical error. Now it's set for two cases
          - BackgroundGC() error
          - LogAndApply() error after generate new blob file
      - If background error is set, all following foreground write operations will be refused and return background error status
      8ee2e794
  18. 16 Jul, 2019 2 commits
    • Wu Jiayu's avatar
      Fix mac build (#41) · 53c1096f
      Wu Jiayu authored
      - There is no libatomic in MacOS clang(and maybe some other environment), so check if libatomic existed before link.
      - Added MacOS build to travis. For TSAN build , a unused-command-line-argument is defined in RocksDB cmake file, witch will fail compilation on MacOS, skip it.
      53c1096f
    • Wu Jiayu's avatar
      Fix blob file iterator (#45) · d9761046
      Wu Jiayu authored
      * fix iterator
      
      * fix
      
      * fmt
      d9761046
  19. 11 Jul, 2019 2 commits
  20. 28 Jun, 2019 1 commit
  21. 26 Jun, 2019 1 commit
  22. 24 Jun, 2019 6 commits