-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHOENIX-5601 Add a new coprocessor for PHOENIX_TTL - PhoenixTTLRegionObserver #955
Conversation
...main/java/org/apache/phoenix/coprocessor/metrics/MetricsPhoenixCoprocessorSourceFactory.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/metrics/MetricsPhoenixTTLSource.java
Show resolved
Hide resolved
...x-core/src/main/java/org/apache/phoenix/coprocessor/metrics/MetricsPhoenixTTLSourceImpl.java
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixTTLRegionObserver.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpisaac Added some comments and questions. Please take a look. Overall looks great!
phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewTTLIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewTTLIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewTTLIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewTTLIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/it/java/org/apache/phoenix/end2end/ViewTTLIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixTTLRegionObserver.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/util/ScanUtil.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/test/java/org/apache/phoenix/query/PhoenixTestBuilder.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/test/java/org/apache/phoenix/query/PhoenixTestBuilder.java
Outdated
Show resolved
Hide resolved
@yanxinyi @ChinmaySKulkarni |
💔 -1 overall
This message was automatically generated. |
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/PhoenixTTLRegionObserver.java
Show resolved
Hide resolved
...main/java/org/apache/phoenix/coprocessor/metrics/MetricsPhoenixCoprocessorSourceFactory.java
Show resolved
Hide resolved
return INSTANCE; | ||
} | ||
|
||
public synchronized MetricsPhoenixTTLSource getPhoenixTTLSource() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpisaac can we address this please?
@@ -466,4 +482,78 @@ public SortOrder getSortOrder() { | |||
assertArrayEquals(expectedEndKey, endKey); | |||
} | |||
} | |||
|
|||
public static class PhoenixTTLScanUtilTest extends BaseConnectionlessQueryTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice tests @jpisaac !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
if (!SchemaUtil.isSystemTable(tableName)) { | ||
if (!descriptor.hasCoprocessor(PhoenixTTLRegionObserver.class.getName())) { | ||
descriptor.addCoprocessor( | ||
PhoenixTTLRegionObserver.class.getName(), null, priority-2, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why priority - 2 here?
JIRA is resolved, closing PR |
No description provided.