Commit Graph

420 Commits

Author SHA1 Message Date
ea0e07f042 Add PORTABLE=1 for building Rocksdb (#650) 2019-02-22 11:01:08 +08:00
820894ca70 Fix wrong type length when show full columns (#648) 2019-02-21 09:41:45 +08:00
19d37afe74 Fix some tablet scheduler bug (#644)
1. Replica in CLONE state should be deleted when schedule finished
2. Set replica as bad if the only remained replica is missing
2019-02-20 16:54:24 +08:00
7d58aa530f Add --daemon option to start script (#642)
Add --daemon option to start_fe.sh/start_be.sh/start_broker.sh
If run scripte without --daemon, it will run as a foreground process.
2019-02-20 16:38:28 +08:00
400c9c8b62 Support grayscale release (#641) 2019-02-19 12:26:23 +08:00
d872f79496 Handle unused disks and tablets report (#633)
When Backend report unused replica, which means this replica
is bad, Frontend should set this replica as bad and repair it.
Also, when a disk is reported unused, Frontend should mark this
disk as OFFLINE. And no more replica will be assigned to this
disk.

We also add 3 new metrics: disk_state, tablet_num and scheduled_tablet_num
on Frontend to monitor the disk state and number of tablet on each Backend.
2019-02-18 10:20:56 +08:00
d3cd31fb81 Fix colocate table not delete tablet in backend bug (#626) 2019-02-15 09:13:29 +08:00
9b3453f751 Fix unused tablet bug (#630) 2019-02-14 11:04:17 +08:00
7c085974ff Add a Gitter chat badge to README.md (#624) 2019-02-12 18:49:38 +08:00
89339f54ef Set thirdparty env in Docker image (#623)
1. use url env of thirdparty instead of download thirdparty tar in docker file.
2019-02-03 19:29:14 +08:00
af7f0eaea8 Add an environmental variable to decide whether to patch compiler-rt (#621) 2019-02-03 13:45:36 +08:00
43133d08bf Add thirdparty list to Docker_build.md (#620) 2019-02-02 12:57:08 +08:00
192c1237de Update year in Notice file (#618)
* Update year in Notice file
* Change use_new_tablet_scheduler default value
2019-02-01 16:01:07 +08:00
0c864c47f8 Unify version information (#617) 2019-02-01 15:36:22 +08:00
381bef88ca Fix bug that CreateReplicaTask use wrong parameter (#616)
The dbId in CreateReplicaTask does not set correctly,
which may cause incorrect report result.
2019-02-01 13:38:23 +08:00
d5b9947d3e Optimize edit log write operation (#615)
1. No need to write edit log for init replica version sync.
2. Add a metric to monitor edit log size in bytes
2019-02-01 11:17:29 +08:00
30ee41aaa5 Make status returned be right (#613) 2019-01-31 21:25:46 +08:00
171eaa642f Fix BackendsProcDirTest ut (#612) 2019-01-31 20:09:15 +08:00
100eeb18cd Add test for colocate table (#587) 2019-01-31 19:23:12 +08:00
aba1b9e5d6 Reopen the thrift client when got exception (#610)
To avoid broken connection being reused.
2019-01-31 16:54:49 +08:00
af445b6cc2 Optimize something (#607)
1. Unify the thrift rpc timeout from BE to FE.
    Add a BE config 'thrift_rpc_timeout_ms', default is 5000
2. Add hostname in "show proc '/frontends';" stmt result.
3. Fix a lock order bug in Load.java
2019-01-31 13:30:45 +08:00
ca2ab5da59 Add more thrift log (#605) 2019-01-30 21:28:42 +08:00
08376b0557 Catch throwable in mysql listener thread (#603)
Also add thrift log to fe.log
2019-01-30 15:09:58 +08:00
ff12281a72 Call curl_global_init at the begining (#602)
To avoid concurrent initilization of libcurl, we call curl_global_init
in our main function.
2019-01-30 10:27:19 +08:00
3b23b01d12 Recovery tablet only when tablet version is missing (#601) 2019-01-29 21:17:41 +08:00
daa9d975ca Fix bugs of Tablet Scheduler (#600) 2019-01-29 15:35:07 +08:00
722eec16bb Optimize header load failure process (#598) 2019-01-29 12:23:30 +08:00
c5fa1423cf fix bug of file deleted by compaction (#597) 2019-01-28 16:17:22 +08:00
26acf83cb0 Make status returned be right (#594)
RunLengthByteReader should return right error code instead of EOF
2019-01-27 18:40:45 +08:00
67cdc723ac Fix bug that only REPLICA_MISSING repair need to create a new replica (#590) 2019-01-25 17:56:42 +08:00
9d71a930a2 Fix bug that repair slot may not be released when clone finished (#589) 2019-01-25 16:49:15 +08:00
9a272f0592 Optimize something (#585)
1. Optimize the error msg of Tablet scheduler.
2. Missing helper nodes info when modify Frontends.
3. Fix bug that olap tablet's header lock is not released.
2019-01-25 14:27:33 +08:00
e135e3d41e Add an example of help load (#584) 2019-01-25 11:18:10 +08:00
bc7e7409ca Allow repair VERSION_IMCOMPLETE tablet when ALTERing table (#583)
Previously we do not allow repair tablet if the table it belongs
to is under ALTER process. But it will possibly let the alter job
failed due to some replica's failure of load.
2019-01-24 15:39:05 +08:00
cd7a2c3fd5 Refactor CreateTableTest (#579) 2019-01-24 13:56:41 +08:00
aeb89ab4d3 Add ColocateMetaService (#562) 2019-01-24 11:20:12 +08:00
2912a16b16 Fix data race of header (#576) 2019-01-23 20:01:16 +08:00
c82879cb2e Fix bug that heartbeat error msg may be null (#574) 2019-01-23 17:24:29 +08:00
4f3954fd77 Fix bug that recvr thread update sub plan's QueryStatistics when it is destructed (#573) 2019-01-23 17:00:40 +08:00
079141e14a Add disk usage percent in SHOW BACKEND stmt (#571) 2019-01-23 14:08:33 +08:00
a9e9aef3ca Fix sync and trash bug (#570)
1. no need to save header when header has no incremental delta
2. make fsync tablet_meta configurable
3. add metric for meta operation
2019-01-22 20:13:09 +08:00
9e240d432a Fix replica version report bug (#569)
Replica with version hash equals to 0 should be handled correctly.
2019-01-22 16:48:24 +08:00
e11bdf2db5 Remove unit of measurement about query statistics in audit log (#568) 2019-01-22 14:38:39 +08:00
09df294898 Fix some bugs (#566)
1. Backup obj should set state to NORMAL.
2. Replica with version 1-0 should be handled correctly.
2019-01-22 12:21:55 +08:00
e80f6ed86a Fix uncorrect hll type length when creating table (#565) 2019-01-22 11:22:49 +08:00
f7155217bf Remove build rows counter in PartitionHashJoinNode (#557)
* Remove build rows counter in PartitionHashJoinNode
* Fix unit test fail in RuntimeProfileTest
* Add check for result type length in cast_to_string_val
2019-01-21 14:08:59 +08:00
0dd4c6e0a0 Fix ASAN compilation issue (#561) 2019-01-21 13:09:45 +08:00
54e98f6964 Auto fix missing version replica (#560) 2019-01-21 08:56:43 +08:00
4013d0834e Add Docker building guide in README.md (#553)
Add building guide of Docker image in README.md
2019-01-18 14:21:33 +08:00
51c128c8d1 Skip balance when colocate group is balancing (#548) 2019-01-18 14:13:42 +08:00