You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
misuses Java by comparing scrubMode to an empty string using the != operator.
As @haaawk noted, this is wrong as in Java != compares references, not values.
The text was updated successfully, but these errors were encountered:
Please in the future file issues in a way that indicates user impact.
Agreed. I'm not exactly sure what the user impact is in this case. I think that the user might pass an empty scrub mode and we won't detect it here.
But storage_service scrub api handles an empty scrub_mode as the legacy api and it looked at the skip_corrupted option in this case and in any case it defaults to the ABORT scrub_mode which is exactly what will happen if the test condition detected the empty string correctly.
So bottom line, modulo testing I think there should be no user impact.
Change 70b19e6 introduce a
scrubMode
parameter toscrub
.But,
scylla-jmx/src/main/java/org/apache/cassandra/service/StorageService.java
Line 1805 in 70b19e6
misuses Java by comparing
scrubMode
to an empty string using the!=
operator.As @haaawk noted, this is wrong as in Java
!=
compares references, not values.The text was updated successfully, but these errors were encountered: