Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

sarankk
Copy link
Contributor

@sarankk sarankk commented May 16, 2022

Co-authored-by: Francisco Guerrero

@sarankk sarankk force-pushed the move-stream-handler branch 5 times, most recently from b9d98ad to 2be5364 Compare May 16, 2022 23:16
@sarankk sarankk force-pushed the move-stream-handler branch 2 times, most recently from 2c3bbcf to 2f56005 Compare June 6, 2022 08:05
Copy link
Contributor

@yifan-c yifan-c left a 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
Copy link
Contributor

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.

Copy link
Contributor

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

src/main/java/org/apache/cassandra/sidecar/MainModule.java Outdated Show resolved Hide resolved
@sarankk sarankk requested a review from yifan-c June 10, 2022 22:10
@@ -22,6 +22,7 @@ test {
}

dependencies {
compile "io.vertx:vertx-web-api-contract:$vertxVersion"
Copy link
Contributor

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?

Copy link
Contributor Author

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";
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

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

…or streaming file

Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
@yifan-c yifan-c closed this Jul 1, 2022
@sarankk sarankk deleted the move-stream-handler branch September 1, 2023 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants