-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the index mode failure on multi-segments (#558)
- Loading branch information
Showing
8 changed files
with
364 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Licensed to Apache Software Foundation (ASF) under one or more contributor | ||
# license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright | ||
# ownership. Apache Software Foundation (ASF) licenses this file to you under | ||
# the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
name: "service_traffic" | ||
groups: [ "sw_metric" ] | ||
tagProjection: | ||
tagFamilies: | ||
- name: "default" | ||
tags: [ "id", "service_id", "name", "short_name", "service_group", "layer" ] | ||
criteria: | ||
condition: | ||
name: "layer" | ||
op: "BINARY_OP_EQ" | ||
value: | ||
int: | ||
value: "-1" |
154 changes: 154 additions & 0 deletions
154
test/cases/measure/data/testdata/service_traffic_data_old.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
[ | ||
{ | ||
"tag_families": [ | ||
{ | ||
"tags": [ | ||
{ | ||
"str": { | ||
"value": "1" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_1_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_name_1_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_short_name_1_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "group1_expired" | ||
} | ||
}, | ||
{ | ||
"int": { | ||
"value": 1 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"tag_families": [ | ||
{ | ||
"tags": [ | ||
{ | ||
"str": { | ||
"value": "2" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_2_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_name_2_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_short_name_2_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "group1" | ||
} | ||
}, | ||
{ | ||
"int": { | ||
"value": 2 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"tag_families": [ | ||
{ | ||
"tags": [ | ||
{ | ||
"str": { | ||
"value": "3" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_3_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_name_3_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_short_name_3_expired" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "group1_expired" | ||
} | ||
}, | ||
{ | ||
"int": { | ||
"value": 1 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"tag_families": [ | ||
{ | ||
"tags": [ | ||
{ | ||
"str": { | ||
"value": "4" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_4" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_name_4" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "service_short_name_4" | ||
} | ||
}, | ||
{ | ||
"str": { | ||
"value": "group4" | ||
} | ||
}, | ||
{ | ||
"int": { | ||
"value": 3 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.