ISSUE #224: listing logs should exclude <default>
Descriptions of the changes in this PR:
exclude `<default>` from listing logs
(the tests are covered by #227)
Author: Sijie Guo <sijie@apache.org>
Reviewers: Jia Zhai <None>
This closes #229 from sijie/fix_listing_log_pr, closes #224
diff --git a/distributedlog-core/src/main/java/org/apache/distributedlog/util/DLUtils.java b/distributedlog-core/src/main/java/org/apache/distributedlog/util/DLUtils.java
index 833c9f3..a0083b2 100644
--- a/distributedlog-core/src/main/java/org/apache/distributedlog/util/DLUtils.java
+++ b/distributedlog-core/src/main/java/org/apache/distributedlog/util/DLUtils.java
@@ -279,7 +279,7 @@
* @return true if it is reserved name, otherwise false.
*/
public static boolean isReservedStreamName(String name) {
- return name.startsWith(".");
+ return name.startsWith(".") || name.startsWith("<");
}
/**