File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
server/src/main/java/org/elasticsearch/transport Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,10 @@ public void writeTo(StreamOutput out) throws IOException {
96
96
out .writeVLong (rxSize );
97
97
out .writeVLong (txCount );
98
98
out .writeVLong (txSize );
99
- assert (inboundHandlingTimeBucketFrequencies .length > 0 ) == (outboundHandlingTimeBucketFrequencies .length > 0 );
99
+ assert inboundHandlingTimeBucketFrequencies .length == HandlingTimeTracker .BUCKET_COUNT ;
100
+ assert outboundHandlingTimeBucketFrequencies .length == HandlingTimeTracker .BUCKET_COUNT ;
100
101
if (out .getTransportVersion ().before (TransportVersions .TRANSPORT_STATS_HANDLING_TIME_REQUIRED )) {
101
- out .writeBoolean (inboundHandlingTimeBucketFrequencies . length > 0 );
102
+ out .writeBoolean (true );
102
103
}
103
104
for (long handlingTimeBucketFrequency : inboundHandlingTimeBucketFrequencies ) {
104
105
out .writeVLong (handlingTimeBucketFrequency );
You can’t perform that action at this time.
0 commit comments