Skip to content

Commit

Permalink
find_outlier_index fix result
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyanzhao committed Oct 26, 2020
1 parent 08ebf7f commit 084a6a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion rdsn
Submodule rdsn updated 93 files
+2 −6 include/dsn/dist/replication/replication.codes.h
+0 −9 include/dsn/dist/replication/replication_enums.h
+0 −14 include/dsn/dist/replication/replication_types.h
+3 −3 src/aio/aio_provider.h
+0 −1 src/aio/disk_engine.h
+139 −47 src/aio/native_linux_aio_provider.cpp
+34 −4 src/aio/native_linux_aio_provider.h
+116 −59 src/block_service/block_service_manager.cpp
+0 −5 src/block_service/block_service_manager.h
+3 −3 src/block_service/local/local_service.cpp
+1 −8 src/block_service/test/block_service_manager_test.cpp
+1 −1 src/block_service/test/config-test.ini
+0 −10 src/common/replication_types.cpp
+6 −2 src/failure_detector/test/config-test.ini
+2 −2 src/failure_detector/test/config-whitelist-test-failed.ini
+2 −2 src/failure_detector/test/config-whitelist-test.ini
+0 −14 src/meta/meta_data.h
+50 −74 src/meta/meta_split_service.cpp
+71 −115 src/meta/test/meta_split_service_test.cpp
+1 −2 src/nfs/nfs_client_impl.cpp
+1 −1 src/replica/backup/test/config-test.ini
+1 −1 src/replica/bulk_load/test/config-test.ini
+5 −1 src/replica/duplication/test/config-test.ini
+1 −1 src/replica/mutation_log.cpp
+2 −2 src/replica/replica.cpp
+0 −5 src/replica/replica_check.cpp
+0 −8 src/replica/replica_config.cpp
+1 −3 src/replica/replication_app_base.cpp
+61 −108 src/replica/split/replica_split_manager.cpp
+2 −4 src/replica/split/replica_split_manager.h
+5 −1 src/replica/split/test/config-test.ini
+102 −127 src/replica/split/test/replica_split_test.cpp
+5 −1 src/replica/storage/simple_kv/config.ini
+5 −1 src/replica/storage/simple_kv/test/case-000.ini
+5 −1 src/replica/storage/simple_kv/test/case-001.ini
+5 −1 src/replica/storage/simple_kv/test/case-002.ini
+5 −1 src/replica/storage/simple_kv/test/case-003.ini
+5 −1 src/replica/storage/simple_kv/test/case-004.ini
+5 −1 src/replica/storage/simple_kv/test/case-005.ini
+5 −1 src/replica/storage/simple_kv/test/case-006.ini
+5 −1 src/replica/storage/simple_kv/test/case-100.ini
+5 −1 src/replica/storage/simple_kv/test/case-101.ini
+5 −1 src/replica/storage/simple_kv/test/case-102.ini
+5 −1 src/replica/storage/simple_kv/test/case-103.ini
+5 −1 src/replica/storage/simple_kv/test/case-104.ini
+5 −1 src/replica/storage/simple_kv/test/case-105.ini
+5 −1 src/replica/storage/simple_kv/test/case-106.ini
+5 −1 src/replica/storage/simple_kv/test/case-107.ini
+5 −1 src/replica/storage/simple_kv/test/case-108.ini
+5 −1 src/replica/storage/simple_kv/test/case-109.ini
+5 −1 src/replica/storage/simple_kv/test/case-200.ini
+5 −1 src/replica/storage/simple_kv/test/case-201.ini
+5 −1 src/replica/storage/simple_kv/test/case-202-0.ini
+5 −1 src/replica/storage/simple_kv/test/case-202-1.ini
+5 −1 src/replica/storage/simple_kv/test/case-203-0.ini
+5 −1 src/replica/storage/simple_kv/test/case-203-1.ini
+5 −1 src/replica/storage/simple_kv/test/case-204.ini
+5 −1 src/replica/storage/simple_kv/test/case-205.ini
+5 −1 src/replica/storage/simple_kv/test/case-206.ini
+5 −1 src/replica/storage/simple_kv/test/case-207.ini
+5 −1 src/replica/storage/simple_kv/test/case-208.ini
+5 −1 src/replica/storage/simple_kv/test/case-209.ini
+5 −1 src/replica/storage/simple_kv/test/case-210.ini
+5 −1 src/replica/storage/simple_kv/test/case-211.ini
+5 −1 src/replica/storage/simple_kv/test/case-212.ini
+5 −1 src/replica/storage/simple_kv/test/case-213.ini
+5 −1 src/replica/storage/simple_kv/test/case-214.ini
+5 −1 src/replica/storage/simple_kv/test/case-215.ini
+5 −1 src/replica/storage/simple_kv/test/case-216.ini
+5 −1 src/replica/storage/simple_kv/test/case-300-0.ini
+5 −1 src/replica/storage/simple_kv/test/case-300-1.ini
+5 −1 src/replica/storage/simple_kv/test/case-300-2.ini
+5 −1 src/replica/storage/simple_kv/test/case-301.ini
+5 −1 src/replica/storage/simple_kv/test/case-302.ini
+5 −1 src/replica/storage/simple_kv/test/case-303.ini
+5 −1 src/replica/storage/simple_kv/test/case-304.ini
+5 −1 src/replica/storage/simple_kv/test/case-305.ini
+5 −1 src/replica/storage/simple_kv/test/case-306.ini
+5 −1 src/replica/storage/simple_kv/test/case-307.ini
+5 −1 src/replica/storage/simple_kv/test/case-400.ini
+5 −1 src/replica/storage/simple_kv/test/case-401.ini
+5 −1 src/replica/storage/simple_kv/test/case-402.ini
+5 −1 src/replica/storage/simple_kv/test/case-600.ini
+5 −1 src/replica/storage/simple_kv/test/case-601.ini
+5 −1 src/replica/storage/simple_kv/test/case-602.ini
+5 −1 src/replica/storage/simple_kv/test/case-603.ini
+5 −1 src/replica/storage/simple_kv/test/config.ini
+5 −1 src/replica/test/config-test.ini
+0 −1 src/replica/test/log_file_test.cpp
+0 −2 src/replica/test/mock_utils.h
+0 −11 src/replication.thrift
+7 −10 src/runtime/test/netprovider.cpp
+2 −2 src/zookeeper/test/config-test.ini
2 changes: 0 additions & 2 deletions src/server/hotkey_collector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ find_outlier_index(const std::vector<uint64_t> &captured_keys, int threshold, in
}
standard_deviation = sqrt(standard_deviation / (data_size - 2));
double hot_point = (hot_value - captured_keys_avg_count) / standard_deviation;
detect_hotkey_result result;
if (hot_point >= threshold) {
result.coarse_bucket_index = hot_index;
return true;
} else {
hot_index = -1;
Expand Down

0 comments on commit 084a6a4

Please sign in to comment.