-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Implement KCL Deaggregation #6917
Closed
justinborromeo
wants to merge
43
commits into
apache:master
from
justinborromeo:6714-Implement-KCL-Deaggregation
Closed
Changes from 16 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
2d59c8b
Created a protobuf schema for user records
justinborromeo a4e5134
Renamed UserRecord to KinesisAggregatedRecord
justinborromeo edf8644
Untested implementation of deaggregation
justinborromeo e6cd3f8
Happy path deaggregation test
justinborromeo 8472c33
Added tests for preconditions
justinborromeo 4ee535a
Non-aggregated records work
justinborromeo f5608ae
Live tested on Kinesis stream, tests finished
justinborromeo 629e9ac
Fixed small message bug and added test
justinborromeo 46be748
Made path relative for test files
justinborromeo 87059c1
Protobuf java class is now generated (codestyle is ignored)
justinborromeo 070b90c
Oops there were some extra commas
justinborromeo 3294efd
Suppress override errors on protoc-generated files
justinborromeo 2788990
.
justinborromeo 957231b
Added log message for invalid protocol buffer exception
justinborromeo 9a94ea6
Teamcity why u do dis to me
justinborromeo 5359a26
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo 93cfa38
Added protoc generated source as source
justinborromeo a77ef0d
Added suppression for AggregatedRecordProtos
justinborromeo e153624
Trying a new suppression
justinborromeo d70538d
Trying some stuff
justinborromeo f343b4c
Trying to suppress the checkstyle issues with protoc-compiled file
justinborromeo debcf21
Merge branch '6714-Implement-KCL-Deaggregation' of github.com:justinb…
justinborromeo b9bca93
Removed protoc compiler dependency
justinborromeo a39fdc4
Fixed import
justinborromeo 41d1d4f
Added Apache License
justinborromeo 7658a30
Changed pom to remove stuff that didn't work for TeamCity inspection
justinborromeo 21d2c25
Changed some classes to conform to checkstyle and added suppressions to
justinborromeo 1546695
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo 9696bfd
Kick TeamCity
justinborromeo 4268f8b
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo 5731689
kick teamcity (again)
justinborromeo 882b6d9
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo eef6b73
Improved naming and added a bit of javadoc
justinborromeo d3b39bf
Logic is much cleaner and use Druid util classes
justinborromeo 4345190
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo 542f912
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo 79ce422
Fixed weird import
justinborromeo 1b2db0e
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo 1d164ac
Merge branch 'master' into 6714-Implement-KCL-Deaggregation
justinborromeo 55787df
Merge branch 'master' of https://github.com/apache/incubator-druid in…
justinborromeo fd332bf
Fix tests
justinborromeo 8a67ff5
Change visibility of Magic Numbers
justinborromeo 63a0656
Merge branch '6714-Implement-KCL-Deaggregation' of github.com:justinb…
justinborromeo 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,97 +20,143 @@ | |
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.apache.druid.extensions</groupId> | ||
<artifactId>druid-kinesis-indexing-service</artifactId> | ||
<name>druid-kinesis-indexing-service</name> | ||
<description>druid-kinesis-indexing-service</description> | ||
<groupId>org.apache.druid.extensions</groupId> | ||
<artifactId>druid-kinesis-indexing-service</artifactId> | ||
<name>druid-kinesis-indexing-service</name> | ||
<description>druid-kinesis-indexing-service</description> | ||
|
||
<parent> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid</artifactId> | ||
<version>0.13.0-incubating-SNAPSHOT</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
<properties> | ||
<protobuf.version>3.6.1</protobuf.version> | ||
<checkstyle.skip>true</checkstyle.skip> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-core</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-indexing-service</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-server</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.amazonaws</groupId> | ||
<artifactId>aws-java-sdk-kinesis</artifactId> | ||
<version>${aws.sdk.version}</version> | ||
<exclusions> | ||
<!-- aws-java-sdk-core is provided by Druid core. --> | ||
<exclusion> | ||
<groupId>com.amazonaws</groupId> | ||
<artifactId>aws-java-sdk-core</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<parent> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid</artifactId> | ||
<version>0.13.0-incubating-SNAPSHOT</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
|
||
<dependency> | ||
<groupId>com.amazonaws</groupId> | ||
<artifactId>aws-java-sdk-sts</artifactId> | ||
<version>${aws.sdk.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.amazonaws</groupId> | ||
<artifactId>amazon-kinesis-client</artifactId> | ||
<version>1.9.2</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-core</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-indexing-service</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-server</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.amazonaws</groupId> | ||
<artifactId>aws-java-sdk-kinesis</artifactId> | ||
<version>${aws.sdk.version}</version> | ||
<exclusions> | ||
<!-- aws-java-sdk-core is provided by Druid core. --> | ||
<exclusion> | ||
<groupId>com.amazonaws</groupId> | ||
<artifactId>aws-java-sdk-core</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<!-- Tests --> | ||
<dependency> | ||
<groupId>org.easymock</groupId> | ||
<artifactId>easymock</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-server</artifactId> | ||
<version>${project.parent.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-processing</artifactId> | ||
<version>${project.parent.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-indexing-service</artifactId> | ||
<version>${project.parent.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
<dependency> | ||
<groupId>com.amazonaws</groupId> | ||
<artifactId>aws-java-sdk-sts</artifactId> | ||
<version>${aws.sdk.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
<version>${protobuf.version}</version> | ||
</dependency> | ||
|
||
<!-- Tests --> | ||
<dependency> | ||
<groupId>org.easymock</groupId> | ||
<artifactId>easymock</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-server</artifactId> | ||
<version>${project.parent.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-processing</artifactId> | ||
<version>${project.parent.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.druid</groupId> | ||
<artifactId>druid-indexing-service</artifactId> | ||
<version>${project.parent.version}</version> | ||
<type>test-jar</type> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.github.os72</groupId> | ||
<artifactId>protoc-jar-maven-plugin</artifactId> | ||
<version>3.6.0.2</version> | ||
<executions> | ||
<execution> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<addProtoSources>all</addProtoSources> | ||
<inputDirectories> | ||
<include>src/main/protobuf</include> | ||
</inputDirectories> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
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. If there's a way to target this towards a specific directory, lmk. |
||
<profile> | ||
<id>strict</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<compilerArgs> | ||
<!-- Protoc-generated classes miss @Override, that is not easy to fix --> | ||
<arg>-Xep:MissingOverride:WARN</arg> | ||
</compilerArgs> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
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
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.
Oops changing the indent from 4 spaces to 2 spaces (like all of the other poms) borked the diff.
The actual changes in this file are:
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.
Fwiw, adding
?w=1
to the PR URL (https://github.com/apache/incubator-druid/pull/6917/files?w=1) gets GitHub to show the diff in whitespace-doesn't-matter mode. In this case it makes it clearer what the real changes are.