-
Notifications
You must be signed in to change notification settings - Fork 33
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
Optimize file path builder and have separate handler for streaming file #29
Conversation
b9d98ad
to
2be5364
Compare
2c3bbcf
to
2f56005
Compare
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.
Look good overall.
The nits are weak. I am fine w/o addressing.
The question about the api change is concerning.
/** | ||
* Contains the keyspace and table name in Cassandra | ||
*/ | ||
public class CassandraQualifiedName |
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.
weak nit: QualifiedTableName
seems more fit.
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.
:( I liked CassandraQualifiedName
, but either is fine I guess
common/src/main/java/org/apache/cassandra/sidecar/common/utils/ValidationUtils.java
Outdated
Show resolved
Hide resolved
common/build.gradle
Outdated
@@ -22,6 +22,7 @@ test { | |||
} | |||
|
|||
dependencies { | |||
compile "io.vertx:vertx-web-api-contract:$vertxVersion" |
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.
do we need this dependency?
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.
We need either that or io.vertx:vertx-web
, changed it to io.vertx:vertx-web
to be consistent with main build.gradle
@@ -144,6 +148,22 @@ public Router vertxRouter(Vertx vertx, LoggerHandler loggerHandler, ErrorHandler | |||
// Docs index.html page | |||
StaticHandler docs = StaticHandler.create("docs"); | |||
router.route().path("/docs/*").handler(docs); | |||
|
|||
// add custom routers | |||
final String apiVersion = "/api/v1"; |
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.
do we have a constant for this?
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.
Added one now
/** | ||
* Properties maintained in common for all sub projects. | ||
*/ | ||
public class SidecarProps |
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.
do we need to introduce this class? Can the property be moved somewhere else?
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.
Moved that property to FileStreamer
src/main/java/org/apache/cassandra/sidecar/routes/StreamSSTableComponentHandler.java
Outdated
Show resolved
Hide resolved
cfa1be9
to
52101ff
Compare
…or streaming file Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
baa4ab8
to
37f502a
Compare
Co-authored-by: Francisco Guerrero