Skip to content
Snippets Groups Projects
  1. Oct 27, 2022
  2. Oct 26, 2022
    • fagongzi's avatar
      ci: update e2e config (#5981) · 80ef5910
      fagongzi authored
      80ef5910
    • fagongzi's avatar
      taskservice: all system init task use taskservice (#5870) · 9d5ff147
      fagongzi authored
      
      * add task init related state in rsm
      
      * query task state
      
      * set task table user
      
      * generate task table user with uuid
      
      * taskservice: refector task service init
      
      * hakeeper create init tasks
      
      * fix typo
      
      * fix typo
      
      * fix refresh storage not ready
      
      * fix task runner bug
      
      * add state transition diagram
      
      * fix cn heartbeat and add task service test
      
      * complete task service
      
      * fix mysql task storage
      
      * close db connections
      
      * fix syntax error in hakeeper
      
      * fix task_test.go ut
      
      * register init executors
      
      * allow special user skip auth
      
      * remove println
      
      * add init in tests
      
      * partially fix ut error
      
      * fix goroutine leak
      
      * task_test.go tests can pass
      
      * tmp
      
      * tmp
      
      * fix
      
      * add external mysql
      
      * fix mo frontend
      
      * fix sqladdress adjust
      
      * always enable hakeeper
      
      * fix sca errors
      
      * fix ut
      
      * fix some data race
      
      * fix dead lock
      
      * fix data race
      
      * fix task register
      
      * fix data race
      
      * skip network partition
      
      * fix tests
      
      * fix ut
      
      * make sure bvt must start after mo system init
      
      Co-authored-by: default avatarZiran Wei <weiziran125@gmail.com>
      Co-authored-by: default avatarfengttt <fengttt@gmail.com>
      9d5ff147
  3. Oct 25, 2022
  4. Oct 21, 2022
    • JacksonXie's avatar
      refactor log data store path as account/log/yyyy/mm/dd/datatype/*.csv (#5764) · 48423319
      JacksonXie authored
      adapt log data write in filepath {account}/log/yyyy/mm/dd/metric/*.csv
      - result as Table `SingleStatementTable`, `SingleRawLogTable`, and View `logView`, `errorView`, `spanView`
      - Table `SingleStatementTable` handle `statement` data, storing in path `account/log/yyyy/mm/dd/statement_info/*.csv`
      - Table `SingleRawLogTable` handle `log`, `error`, `span` data, storing in path `account/log/yyyy/mm/dd/rawlog/*.csv`
      - View `logView`, only show `log` data in Table`SingleRawLogTable`
      - view schema like `create view logView as select ... from rawlog where raw_item = 'log_info'`
      - View `errorView` like logView
      - View `spanView` like logView
      
      others
      - add config `pathBuilder` chose which rule exportor would use.
      - value `DBTable`, build path like `{db_name}/{tbl_name}_*.csv`
      - value `AccountDate`,  build path like `account/{log,merged}/yyyy/mm/dd/datatype/*.csv`
      
      Approved by: @zhangxu19830126, @aressu1985, @fengttt, @aptend, @daviszhen
      48423319
  5. Oct 20, 2022
    • aptend's avatar
      New defs to schema (#5775) · c9c5fece
      aptend authored
      * add new helper
      
      * default dn.toml without flushing
      
      * fix standalone
      
      * skip primary key in ut
      c9c5fece
  6. Oct 16, 2022
  7. Oct 15, 2022
  8. Oct 13, 2022
  9. Oct 10, 2022
    • reusee's avatar
      memoryengine CN fixes (#5505) · 34ddc2b5
      reusee authored
      etc: add cn2 to launch-mem-engine
      memoryengine: fix DDL target shards
      
      Approved by: @zhangxu19830126
      34ddc2b5
  10. Oct 09, 2022
  11. Sep 28, 2022
  12. Sep 26, 2022
  13. Sep 25, 2022
    • JacksonXie's avatar
      improve: show console log in logfile, while run bvt (#5220) · 327b4fb2
      JacksonXie authored
      set console format log, as running bvt.
      it can show real newline or tab character in the message field, instead of '\n' or '\t'.
      if developers want to log some formated-json, or panic stacktrace, they can benift from it.
      
      log example
      - new (console format)
      ```
      2022/09/23 15:09:02.943420 +0800 INFO db/db.go:115 [PrintStats][Caller=github.com/matrixorigin/matrixone/pkg/vm/engine/tae/db.(*catalogStatsMonitor).PostExecute]:{
      "CatalogStats": {
      "MaxDBID": 1002,
      "MaxTID": 1027,
      "MaxSID": 1004,
      "MaxBID": 1004
      },
      "TxnStats": {
      "MaxTS": [
      ...
      2022/09/23 15:10:59.183640 +0800 ERROR frontend/routine.go:123 routine execute request failed. error:internal error: panic runtime error: invalid memory address or nil pointer dereference: goroutine 145 [running]:
      runtime/debug.Stack()
      /Users/reus/gotip/src/runtime/debug/stack.go:24 +0x64
      github.com/matrixorigin/matrixone/pkg/common/moerr.ConvertPanicError({0x102b96a40?, 0x103dd9760})
      /Users/reus/mo/mem/pkg/common/moerr/error.go:410 +0x5c
      github.com/matrixorigin/matrixone/pkg/frontend.(*MysqlCmdExecutor).ExecRequest.func1()
      /Users/reus/mo/mem/pkg/frontend/mysql_cmd_executor.go:2434 +0xe0
      panic({0x102b96a40, 0x103dd9760})
      /Users/reus/gotip/src/runtime/panic.go:884 +0x204
      github.com/matrixorigin/matrixone/pkg/frontend.(*TenantInfo).GetTenant(...)
      /Users/reus/mo/mem/pkg/frontend/authenticate.go:51
      ...
      ```
      - original (json format)
      ```
      {"level":"INFO","time":"2022/09/23 15:04:39.036862 +0800","caller":"db/replay.go:196","msg":"CATALOG[CNT=1][CommitId=0,MaxTS=0-0,LSN=0]\n\t\tDB[1][name=0-mo_catalog][C@1-0,D@0-0]\n\t\t\tTBL[1][name=mo_database][C@1-0,D@0-0]\n\t\t\t\t[A]SEG[101][C@1-0,D@0-0]\n\t\t\t\t\t[A]BLK[201][C@1-0,D@0-0]\n\t\t\tTBL[2][name=mo_tables][C@1-0,D@0-0]\n\t\t\t\t[A]SEG[102][C@1-0,D@0-0]\n\t\t\t\t\t[A]BLK[202][C@1-0,D@0-0]\n\t\t\tTBL[3][name=mo_columns][C@1-0,D@0-0]\n\t\t\t\t[A]SEG[103][C@1-0,D@0-0]\n\t\t\t\t\t[A]BLK[203][C@1-0,D@0-0]"}
      ...
      ```
      
      Approved by: @reusee, @zhangxu19830126
      327b4fb2
  14. Sep 24, 2022
  15. Sep 21, 2022
  16. Sep 20, 2022
    • nnsgmsone's avatar
      Improve the logic of cn (#5111) · d5d8e526
      nnsgmsone authored
      engine: add transaction interface
      disttae: get the schema information of a table
      disttae: add multi-account logic
      
      Approved by: @reusee, @zhangxu19830126, @XuPeng-SH, @daviszhen
      d5d8e526
  17. Sep 15, 2022
  18. Sep 06, 2022
    • JacksonXie's avatar
      Metric/Trace use FileService to write down CSV data. (#4742) · b76949b1
      JacksonXie authored
      - support FileService do Write CSV data
      - init schema support CVS params, in `pkg/util/metric/metric.go`, `pkg/util/trace/schema.go`
      - adapt config[fileservice] to get stringwriter obj, in `pkg/util/export/fs_writer.go`
      - add [cn.fileservice] in cn-service.toml
      - add [[fileservice]] in log-service.toml
      - mo-service support metric/trace/log/... collection,  in `pkg/cnservice/server.go`, `pkg/dnservice/store.go`, `pkg/logservice/service.go`
      
      Approved by: @yingfeng, @daviszhen, @aptend, @fengttt, @reusee, @cnutshell, @zhangxu19830126, @lni
      b76949b1
  19. Sep 05, 2022
  20. Aug 30, 2022
  21. Aug 26, 2022
  22. Aug 24, 2022
  23. Aug 22, 2022
  24. Aug 19, 2022
  25. Aug 17, 2022
    • daviszhen's avatar
      Add the cn-service (#4535) · c5241688
      daviszhen authored
      1. Connect the cn-service with the frontend and the computation engine.
      2. Change the configuraion mechanism to the general method. Remove the auto-generated configuration.
      
      Approved by: @zhangxu19830126, @yingfeng, @fengttt, @aptend, @reusee, @nnsgmsone, @lni
      c5241688
  26. Aug 05, 2022
  27. Aug 01, 2022
  28. Jul 30, 2022