Add CorruptedTsFileException for TsFile corruption errors with file path#18304
Add CorruptedTsFileException for TsFile corruption errors with file path#18304shuwenwei wants to merge 4 commits into
Quality Gate failed
Failed conditions
E Reliability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
sonarqubecloud / SonarCloud Code Analysis
Abbreviation in name 'getTTLTables' must contain no more than '2' consecutive capital letters.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxGXpXjFugKaiQOwk&open=AZ-TxGXpXjFugKaiQOwk&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Cast one of the operands of this addition operation to a "long".
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHH0XjFugKaiQOxI&open=AZ-TxHH0XjFugKaiQOxI&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Replace this instanceof check and cast with 'instanceof ConfigTableNode configtablenode'
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHU1XjFugKaiQOxR&open=AZ-TxHU1XjFugKaiQOxR&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Reduce the total number of break and continue statements in this loop to use at most one.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG9uXjFugKaiQOw8&open=AZ-TxG9uXjFugKaiQOw8&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Fix this access that will throw a NullPointerException when executed.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHNvXjFugKaiQOxO&open=AZ-TxHNvXjFugKaiQOxO&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Expected @throws tag for 'CorruptedTsFileException'.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG2KXjFugKaiQOwt&open=AZ-TxG2KXjFugKaiQOwt&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Replace this instanceof check and cast with 'instanceof DiskChunkLoader diskchunkloader'
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG3WXjFugKaiQOw0&open=AZ-TxG3WXjFugKaiQOw0&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 75 to 64, Complexity from 15 to 14, Nesting Level from 5 to 2, Number of Variables from 11 to 6.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHU1XjFugKaiQOxS&open=AZ-TxHU1XjFugKaiQOxS&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Line is longer than 100 characters (found 130).
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHclXjFugKaiQOxd&open=AZ-TxHclXjFugKaiQOxd&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Move this method into "Reservation".
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHYvXjFugKaiQOxW&open=AZ-TxHYvXjFugKaiQOxW&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Use try-with-resources or close this "Reservation" in a "finally" clause.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHZJXjFugKaiQOxX&open=AZ-TxHZJXjFugKaiQOxX&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHZnXjFugKaiQOxa&open=AZ-TxHZnXjFugKaiQOxa&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Line is longer than 100 characters (found 197).
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHZJXjFugKaiQOxZ&open=AZ-TxHZJXjFugKaiQOxZ&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Expected @throws tag for 'CorruptedTsFileException'.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG2KXjFugKaiQOwv&open=AZ-TxG2KXjFugKaiQOwv&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Line is longer than 100 characters (found 151).
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG2KXjFugKaiQOwu&open=AZ-TxG2KXjFugKaiQOwu&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Replace this instanceof check and cast with 'instanceof Reservation reservation'
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHYvXjFugKaiQOxV&open=AZ-TxHYvXjFugKaiQOxV&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal " please check the logs for the corrupted file path." 4 times.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHOqXjFugKaiQOxP&open=AZ-TxHOqXjFugKaiQOxP&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Line is longer than 100 characters (found 147).
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG3WXjFugKaiQOw3&open=AZ-TxG3WXjFugKaiQOw3&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Extract this nested try block into a separate method.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxGzPXjFugKaiQOwp&open=AZ-TxGzPXjFugKaiQOwp&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHDVXjFugKaiQOxC&open=AZ-TxHDVXjFugKaiQOxC&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Replace generic exceptions with specific library exceptions or a custom exception.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG_ZXjFugKaiQOxA&open=AZ-TxG_ZXjFugKaiQOxA&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Method has 10 parameters, which is greater than 7 authorized.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxGwGXjFugKaiQOwm&open=AZ-TxGwGXjFugKaiQOwm&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG3WXjFugKaiQOw2&open=AZ-TxG3WXjFugKaiQOw2&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Use an "AtomicInteger" for this field; its operations are atomic.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxHH0XjFugKaiQOxJ&open=AZ-TxHH0XjFugKaiQOxJ&pullRequest=18304
sonarqubecloud / SonarCloud Code Analysis
Use "java.util.Random.nextLong()" instead.
See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ-TxG_ZXjFugKaiQOxB&open=AZ-TxG_ZXjFugKaiQOxB&pullRequest=18304