-
Notifications
You must be signed in to change notification settings - Fork 14
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
DRPC #37
Merged
Merged
DRPC #37
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5ed1f95
Adding PubSub implementation using DRPC, v0
368e691
Adding a new class
akshaisarma 893a639
First cut of DRPC pubsub
akshaisarma 2cb2c59
Checkstyle
akshaisarma daba977
Starting on tests
akshaisarma 447bea3
Testing
akshaisarma ec1336f
Pubscriber test and cleanup
akshaisarma f92e468
Adding DRPCQuerySubscriber tests
akshaisarma 5a16e24
Adding tests for DRPCResultPublisher
akshaisarma 69787d5
Cleanup
akshaisarma 689252d
Removing jersey and topology function
akshaisarma 030cd82
Review comment to rename urls
akshaisarma 285503b
Adding some logging for initialization
akshaisarma e3b8ec0
Catching exceptions other than PubSubException
akshaisarma 323ffb9
Review comments. Fixing emittedIDs bug
akshaisarma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/com/yahoo/bullet/storm/AbsoluteCountMetric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/com/yahoo/bullet/storm/SigarLoggingMetricsConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright 2017, Yahoo Inc. | ||
* Licensed under the terms of the Apache License, Version 2.0. | ||
* See the LICENSE file associated with the project for terms. | ||
*/ | ||
package com.yahoo.bullet.storm.drpc; | ||
|
||
import com.yahoo.bullet.Config; | ||
import com.yahoo.bullet.storm.BulletStormConfig; | ||
|
||
public class DRPCConfig extends BulletStormConfig { | ||
public static final String PREFIX = "bullet.pubsub.storm.drpc."; | ||
|
||
// The location of DRPC servers. | ||
public static final String DRPC_SERVERS = PREFIX + "servers"; | ||
// This is the name of the DRPC function used to register with the DRPC servers | ||
public static final String DRPC_FUNCTION = PREFIX + "function"; | ||
|
||
// HTTP configuration | ||
// The timeout and retry limits for HTTP connections to DRPC servers. | ||
public static final String DRPC_HTTP_CONNECT_TIMEOUT_MS = PREFIX + "http.connect.timeout.ms"; | ||
public static final String DRPC_HTTP_CONNECT_RETRY_LIMIT = PREFIX + "http.connect.retry.limit"; | ||
// This is the HTTP protocol to use when submitting to the DRPC server. | ||
public static final String DRPC_HTTP_PROTOCOL = PREFIX + "http.protocol"; | ||
// This is the port that the QUERY_SUBMISSION end talks to. | ||
public static final String DRPC_HTTP_PORT = PREFIX + "http.port"; | ||
// The path that queries must be POSTed to. This generally is "drpc". | ||
public static final String DRPC_HTTP_PATH = PREFIX + "http.path"; | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you want two blank lines here? |
||
// This is the maximum number of pending queries that can be read by a single subscriber in QUERY_PROCESSING | ||
// before a commit is needed. | ||
public static final String DRPC_MAX_UNCOMMITED_MESSAGES = PREFIX + "max.uncommitted.messages"; | ||
|
||
/** | ||
* Create a new DRPCConfig by reading in a file. | ||
* | ||
* @param file The file containing DRPC settings. | ||
*/ | ||
public DRPCConfig(String file) { | ||
// Load and merge with default bullet-storm settings. Storm defaults also contain the DRPC settings. | ||
this(new BulletStormConfig(file)); | ||
} | ||
|
||
/** | ||
* Creates a new DRPCConfig wrapping the given config. | ||
* | ||
* @param config The config to wrap. | ||
*/ | ||
public DRPCConfig(Config config) { | ||
super(config); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
"JoinBolt need not do that join."
Also, maybe call message.getId() just once and save to value to avoid calling the function 4 times?