You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/08/02 13:07:22 UTC
[GitHub] [druid] tejaswini-imply opened a new pull request, #12852: Removes FiniteFirehoseFactory and its implementations
tejaswini-imply opened a new pull request, #12852:
URL: https://github.com/apache/druid/pull/12852
### Description
The `FiniteFirehoseFactory` and `InputRowParser` classes were deprecated in 0.17.0 (https://github.com/apache/druid/pull/8823) in favor of `InputSource` & `InputFormat`. This PR removes the `FiniteFirehoseFactory` and all its implementations along with classes solely used by them like `Fetcher` (Used by `PrefetchableTextFilesFirehoseFactory`). Refactors classes including tests using `FiniteFirehoseFactory` to use `InputSource` instead.
Removing `InputRowParser` may not be as trivial as many classes that aren't deprecated depends on it (with no alternatives), like `EventReceiverFirehoseFactory`. Hence `FireHoseFactory`, `EventReceiverFirehoseFactory`, and `Firehose` are marked deprecated.
**Discussion thread:** https://lists.apache.org/thread/lq5846jy7j4kf6r379cy4gpgqzdkfsf3
<hr/>
#### Fixed the bug in `AbstractParallelIndexSupervisorTaskTest#compareTaskReports(..)`
Indexing Task tests assert generated reports are as expected using `compareTaskReports(..)`. This becomes flaky in the case of Sequential Index Task since the generated `movingAverages` field in reports varies with task execution time. This PR modifies the method to skip this field.
#### Renamed the class `TestRealtimeTask` to `TestIndexTask`
Only `RemoteTaskRunnerTest` & `WorkerTaskMonitorTest` uses `RealtimeTask` currently. Modifying the name to `TestIndexTask` and implementing `IndexTask` (to use `InputSource` instead of `FirehoseFactory`) shouldn't affect both tests as they're simply testing `RemoteTaskRunner` & `WorkerTaskMonitor` functionalities, and they are task agnostic.
#### Assumption made for `SamplerResource`:
`/druid/indexer/v1/sampler` API receives `SamplerSpec`, and in the case of Seekable stream, it expects to contain non-null `InputFormat` with this PR. Verified that the current code or different ingestions on the console aren't sending null `InputFormat` in the spec.
<hr>
This PR has:
- [x] been self-reviewed.
- [ ] using the [concurrency checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md) (Remove this item if the PR doesn't have any relation to concurrency.)
- [ ] added documentation for new or modified features or behaviors.
- [x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
- [ ] added or updated version, license, or notice information in [licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
- [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
- [ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met.
- [ ] added integration tests.
- [x] been tested in a test Druid cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1212273114
This pull request **fixes 1 alert** when merging 6c3e09f486fa2c9909c66f73524c115270336abe into b4985ccd5e9b10fec847b3316259fc97996eebca - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-0627aed9b17cd1d20b5fc7682320ea80224358c2)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r941641498
##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamSamplerSpec.java:
##########
@@ -86,140 +69,25 @@ public SeekableStreamSamplerSpec(
public SamplerResponse sample()
{
final InputSource inputSource;
- final InputFormat inputFormat;
- if (dataSchema.getParser() != null) {
Review Comment:
Thanks for the review, @abhishekagarwal87. I've addressed your concerns in the latest commit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1213434498
This pull request **fixes 1 alert** when merging a1a9ce65c57285b350e1451beb69ef76ccf13106 into 3a3271eddc946599e1c9b81154d2f37663b186c5 - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-bfc5188dd53f9615231a320556f526b3ffec2be1)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r944144957
##########
server/src/main/java/org/apache/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java:
##########
@@ -79,6 +79,7 @@
* Builds firehoses that accept events through the {@link EventReceiver} interface. Can also register these
* firehoses with an {@link ServiceAnnouncingChatHandlerProvider}.
*/
+@Deprecated
Review Comment:
Just wanted to know, since `FirehoseFactory` is marked deprecated, does it imply the implementations are deprecated as well? In that case, marking `EventReceiverFirehoseFactory` as deprecated already is redundant and will remove it, in otherwise scenario I'll mark all 4 deprecated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] paul-rogers commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
paul-rogers commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1203328846
Thanks much for making this fix. An impressive amount of code is deleted in this PR!
I wonder, will this fix the many issues with [`PrefetchableTextFilesFirehoseFactoryTest`](https://github.com/apache/druid/issues/12638)? It seems that one fails about 10-20% of the time for me in Travis builds.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] paul-rogers commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
paul-rogers commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1206834559
LGTM (non-binding)
Would love to see this gets merged as this will unblock PRs that are failing builds due to the tests which this PR fixes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1260162335
This pull request **fixes 1 alert** when merging ed89707b3eacfc8fc4d5fb29a412b478a121340b into 0d7bf66578479afd920ba96db4c44a01e912833b - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-00d58d2280c40e89f04398c4c34d133a51910c3b)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1212697135
This pull request **fixes 1 alert** when merging c9f816ccd6c0433faf286db5bce28a19f483186c into 38af5f7b57769e026f028a56bb9be8003e01ddc5 - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-c4c9f0d8edb568f11ca201608cd68657e936b6e2)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1212808073
This pull request **fixes 1 alert** when merging 2aa663982a51578fa3b7f68da56223a8d6b9ecf1 into 38af5f7b57769e026f028a56bb9be8003e01ddc5 - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-965a13568e513697c97975362fc0a53646b7c852)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r942306698
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexIngestionSpec.java:
##########
@@ -45,9 +44,7 @@ public ParallelIndexIngestionSpec(
super(dataSchema, ioConfig, tuningConfig);
if (dataSchema.getParserMap() != null && ioConfig.getInputSource() != null) {
- if (!(ioConfig.getInputSource() instanceof FirehoseFactoryToInputSourceAdaptor)) {
- throw new IAE("Cannot use parser and inputSource together. Try using inputFormat instead of parser.");
- }
+ throw new IAE("Cannot use parser and inputSource together. Try using inputFormat instead of parser.");
Review Comment:
input source here can't be an instance of adapter input source since the user can't create it directly, and it's generated by `IndexTask.IndexIOConfig.getNonNullInputSource()` from `InputRowParser` & `FiniteFirehoseFactory` previously in case `InputSource` is null, now that `FiniteFirehoseFactory` is removed user has to submit non-null input source for batch index tasks for all the cases where FiniteFirehoseFactory instantiating spec was used.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1203498968
Hi @paul-rogers, This PR removes `PrefetchableTextFilesFirehoseFactory` and its test entirely since it's an implementation of `FiniteFirehoseFactory`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1204749746
Hi, @vogievetsky, there are a couple of places that need to be changed in native-batch-firehose.md, native-batch.md, few extension configurations. It'll be done in current PR itself. Thanks for notifying.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r944144957
##########
server/src/main/java/org/apache/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java:
##########
@@ -79,6 +79,7 @@
* Builds firehoses that accept events through the {@link EventReceiver} interface. Can also register these
* firehoses with an {@link ServiceAnnouncingChatHandlerProvider}.
*/
+@Deprecated
Review Comment:
Just wanted to know, since `FirehoseFactory` is marked deprecated, does it imply the implementations are deprecated as well? In that case, me marking `EventReceiverFirehoseFactory` as deprecated already is redundant and will remove it, in otherwise scenario I'll mark all 4 deprecated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1203564886
This pull request **fixes 1 alert** when merging 10ac5b31d502398d223e4350f13d90dbff8f2e19 into 2912a36a202672b2b025ef447c5bcbded7b20990 - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-49604e7a8fd0ecf4739d4c6e6794622477a6e106)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r939947073
##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamSamplerSpec.java:
##########
@@ -86,140 +69,25 @@ public SeekableStreamSamplerSpec(
public SamplerResponse sample()
{
final InputSource inputSource;
- final InputFormat inputFormat;
- if (dataSchema.getParser() != null) {
Review Comment:
this will still be needed till the time we can remove the `parser` related code as well. I suggest that we keep the adapters around for now. We could refactor the adapters such that we can still get rid of all the *firehose* code. Just enough so that people using the parser can still use the sampler.
##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamSamplerSpec.java:
##########
@@ -77,6 +59,7 @@ public SeekableStreamSamplerSpec(
{
this.dataSchema = Preconditions.checkNotNull(ingestionSpec, "[spec] is required").getDataSchema();
this.ioConfig = Preconditions.checkNotNull(ingestionSpec.getIoConfig(), "[spec.ioConfig] is required");
+ this.inputFormat = Preconditions.checkNotNull(ioConfig.getInputFormat(), "[spec.ioConfig.inputFormat] is required");
Review Comment:
I don't think we can do this yet. I have seen `parser` still being used by folks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1204754073
Hi, @paul-rogers, We were comparing the generated task reports with time-based stats fields i.e. `movingAverages` against expected values, which is ignored during comparison with this PR and will not fail for any parallel indexing task test using this method to compare reports.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] paul-rogers commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
paul-rogers commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1204215869
We also had an offline discussion about `MultiPhaseParallelIndexingRowStatsTest`, which failed in one of my PRs. I see that the base class, `AbstractMultiPhaseParallelIndexingTest`, is adjusted in this PR, but `MultiPhaseParallelIndexingRowStatsTest` is not changed. Just want to confirm that this PR will fix the issue with that test: that we are comparing the time-based stats against expected values, and that the test randomly fails as a result since we can't guarantee execution duration.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1211606190
thank you for explaining @tejaswini-imply. I understand it better now and I am at more ease 😄 can you look into the build failures? Would like to see a green build before giving +1 on this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] github-code-scanning[bot] commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by "github-code-scanning[bot] (via GitHub)" <gi...@apache.org>.
github-code-scanning[bot] commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r1099894611
##########
indexing-service/src/test/java/org/apache/druid/indexing/common/task/batch/parallel/AbstractMultiPhaseParallelIndexingTest.java:
##########
@@ -243,22 +241,20 @@
} else {
Preconditions.checkArgument(inputFormat == null);
ParallelIndexIOConfig ioConfig = new ParallelIndexIOConfig(
- new LocalFirehoseFactory(inputDirectory, filter, null),
+ null,
+ new LocalInputSource(inputDirectory, filter),
+ createInputFormatFromParseSpec(parseSpec),
appendToExisting,
dropExisting
);
- //noinspection unchecked
ingestionSpec = new ParallelIndexIngestionSpec(
new DataSchema(
- "dataSource",
- getObjectMapper().convertValue(
- new StringInputRowParser(parseSpec, null),
- Map.class
- ),
+ DATASOURCE,
+ parseSpec.getTimestampSpec(),
Review Comment:
## Dereferenced variable may be null
Variable [parseSpec](1) may be null at this access because of [this](2) null argument.
Variable [parseSpec](1) may be null at this access because of [this](3) null argument.
[Show more details](https://github.com/apache/druid/security/code-scanning/4250)
##########
extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/KafkaSamplerSpecTest.java:
##########
@@ -167,6 +174,87 @@
OBJECT_MAPPER
);
+ runSamplerAndCompareResponse(samplerSpec, true);
+ }
+
+ @Test
+ public void testWithInputRowParser() throws IOException
+ {
+ insertData(generateRecords(TOPIC));
+
+ ObjectMapper objectMapper = new DefaultObjectMapper();
+ TimestampSpec timestampSpec = new TimestampSpec("timestamp", "iso", null);
+ DimensionsSpec dimensionsSpec = new DimensionsSpec(
+ Arrays.asList(
+ new StringDimensionSchema("dim1"),
+ new StringDimensionSchema("dim1t"),
+ new StringDimensionSchema("dim2"),
+ new LongDimensionSchema("dimLong"),
+ new FloatDimensionSchema("dimFloat")
+ )
+ );
+ InputRowParser parser = new StringInputRowParser(new JSONParseSpec(timestampSpec, dimensionsSpec, JSONPathSpec.DEFAULT, null, null), "UTF8");
+
+ DataSchema dataSchema = new DataSchema(
+ "test_ds",
+ objectMapper.readValue(objectMapper.writeValueAsBytes(parser), Map.class),
+ new AggregatorFactory[]{
+ new DoubleSumAggregatorFactory("met1sum", "met1"),
+ new CountAggregatorFactory("rows")
+ },
+ new UniformGranularitySpec(Granularities.DAY, Granularities.NONE, null),
+ null,
+ objectMapper
+ );
Review Comment:
## Deprecated method or constructor invocation
Invoking [DataSchema.DataSchema](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/4238)
##########
extensions-core/kinesis-indexing-service/src/test/java/org/apache/druid/indexing/kinesis/KinesisSamplerSpecTest.java:
##########
@@ -112,30 +118,93 @@
}
@Test(timeout = 10_000L)
- public void testSample() throws Exception
+ public void testSample() throws InterruptedException
{
- EasyMock.expect(recordSupplier.getPartitionIds(STREAM)).andReturn(ImmutableSet.of(SHARD_ID)).once();
-
- recordSupplier.assign(ImmutableSet.of(StreamPartition.of(STREAM, SHARD_ID)));
- EasyMock.expectLastCall().once();
+ KinesisSupervisorSpec supervisorSpec = new KinesisSupervisorSpec(
+ null,
+ DATA_SCHEMA,
+ null,
+ new KinesisSupervisorIOConfig(
+ STREAM,
+ new JsonInputFormat(new JSONPathSpec(true, ImmutableList.of()), ImmutableMap.of(), false, false, false),
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ true,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ false
+ ),
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ );
- recordSupplier.seekToEarliest(ImmutableSet.of(StreamPartition.of(STREAM, SHARD_ID)));
- EasyMock.expectLastCall().once();
+ KinesisSamplerSpec samplerSpec = new TestableKinesisSamplerSpec(
+ supervisorSpec,
+ new SamplerConfig(5, null, null, null),
+ new InputSourceSampler(new DefaultObjectMapper()),
+ null
+ );
- EasyMock.expect(recordSupplier.poll(EasyMock.anyLong())).andReturn(generateRecords(STREAM)).once();
+ runSamplerAndCompareResponse(samplerSpec, true);
+ }
- recordSupplier.close();
- EasyMock.expectLastCall().once();
+ @Test
+ public void testWithInputRowParser() throws IOException
+ {
+ ObjectMapper objectMapper = new DefaultObjectMapper();
+ TimestampSpec timestampSpec = new TimestampSpec("timestamp", "iso", null);
+ DimensionsSpec dimensionsSpec = new DimensionsSpec(
+ Arrays.asList(
+ new StringDimensionSchema("dim1"),
+ new StringDimensionSchema("dim1t"),
+ new StringDimensionSchema("dim2"),
+ new LongDimensionSchema("dimLong"),
+ new FloatDimensionSchema("dimFloat")
+ )
+ );
+ InputRowParser parser = new StringInputRowParser(new JSONParseSpec(timestampSpec, dimensionsSpec, JSONPathSpec.DEFAULT, null, null), "UTF8");
- replayAll();
+ DataSchema dataSchema = new DataSchema(
+ "test_ds",
+ objectMapper.readValue(objectMapper.writeValueAsBytes(parser), Map.class),
+ new AggregatorFactory[]{
+ new DoubleSumAggregatorFactory("met1sum", "met1"),
+ new CountAggregatorFactory("rows")
+ },
+ new UniformGranularitySpec(Granularities.DAY, Granularities.NONE, null),
+ null,
+ objectMapper
+ );
Review Comment:
## Deprecated method or constructor invocation
Invoking [DataSchema.DataSchema](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/4239)
##########
indexing-service/src/test/java/org/apache/druid/indexing/seekablestream/SeekableStreamSamplerSpecTest.java:
##########
@@ -0,0 +1,354 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.druid.indexing.seekablestream;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import org.apache.druid.client.indexing.SamplerResponse;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.data.input.InputFormat;
+import org.apache.druid.data.input.impl.ByteEntity;
+import org.apache.druid.data.input.impl.DimensionsSpec;
+import org.apache.druid.data.input.impl.FloatDimensionSchema;
+import org.apache.druid.data.input.impl.JSONParseSpec;
+import org.apache.druid.data.input.impl.LongDimensionSchema;
+import org.apache.druid.data.input.impl.StringDimensionSchema;
+import org.apache.druid.data.input.impl.StringInputRowParser;
+import org.apache.druid.data.input.impl.TimestampSpec;
+import org.apache.druid.indexing.overlord.sampler.InputSourceSampler;
+import org.apache.druid.indexing.overlord.sampler.SamplerConfig;
+import org.apache.druid.indexing.overlord.sampler.SamplerTestUtils;
+import org.apache.druid.indexing.seekablestream.common.OrderedPartitionableRecord;
+import org.apache.druid.indexing.seekablestream.common.RecordSupplier;
+import org.apache.druid.indexing.seekablestream.common.StreamPartition;
+import org.apache.druid.indexing.seekablestream.supervisor.IdleConfig;
+import org.apache.druid.indexing.seekablestream.supervisor.SeekableStreamSupervisorIOConfig;
+import org.apache.druid.indexing.seekablestream.supervisor.SeekableStreamSupervisorSpec;
+import org.apache.druid.indexing.seekablestream.supervisor.autoscaler.AutoScalerConfig;
+import org.apache.druid.jackson.DefaultObjectMapper;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.granularity.Granularities;
+import org.apache.druid.java.util.common.parsers.JSONPathSpec;
+import org.apache.druid.query.aggregation.AggregatorFactory;
+import org.apache.druid.query.aggregation.CountAggregatorFactory;
+import org.apache.druid.query.aggregation.DoubleSumAggregatorFactory;
+import org.apache.druid.segment.indexing.DataSchema;
+import org.apache.druid.segment.indexing.granularity.UniformGranularitySpec;
+import org.easymock.EasyMock;
+import org.easymock.EasyMockSupport;
+import org.joda.time.DateTime;
+import org.joda.time.Period;
+import org.junit.Assert;
+import org.junit.Test;
+
+import javax.annotation.Nullable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+public class SeekableStreamSamplerSpecTest extends EasyMockSupport
+{
+ private static final ObjectMapper OBJECT_MAPPER = new DefaultObjectMapper();
+ private static final String STREAM = "sampling";
+ private static final String SHARD_ID = "1";
+
+ private final SeekableStreamSupervisorSpec supervisorSpec = mock(SeekableStreamSupervisorSpec.class);
+
+ static {
+ NullHandling.initializeForTests();
+ }
+
+ private final RecordSupplier recordSupplier = mock(RecordSupplier.class);
+
+ private static List<OrderedPartitionableRecord<String, String, ByteEntity>> generateRecords(String stream)
+ {
+ return ImmutableList.of(
+ new OrderedPartitionableRecord<>(stream, "1", "0", jb("2008", "a", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(stream, "1", "1", jb("2009", "b", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(stream, "1", "2", jb("2010", "c", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(
+ stream,
+ "1",
+ "5",
+ jb("246140482-04-24T15:36:27.903Z", "x", "z", "10", "20.0", "1.0")
+ ),
+ new OrderedPartitionableRecord<>(
+ stream,
+ "1",
+ "6",
+ Collections.singletonList(new ByteEntity(StringUtils.toUtf8("unparseable")))
+ ),
+ new OrderedPartitionableRecord<>(stream, "1", "8", Collections.singletonList(new ByteEntity(StringUtils.toUtf8("{}"))))
+ );
+ }
+
+ @Test(timeout = 10_000L)
+ public void testSampleWithInputRowParser() throws Exception
+ {
+ final DataSchema dataSchema = new DataSchema(
+ "test_ds",
+ OBJECT_MAPPER.convertValue(
+ new StringInputRowParser(
+ new JSONParseSpec(
+ new TimestampSpec("timestamp", "iso", null),
+ new DimensionsSpec(
+ Arrays.asList(
+ new StringDimensionSchema("dim1"),
+ new StringDimensionSchema("dim1t"),
+ new StringDimensionSchema("dim2"),
+ new LongDimensionSchema("dimLong"),
+ new FloatDimensionSchema("dimFloat")
+ )
+ ),
+ new JSONPathSpec(true, ImmutableList.of()),
+ ImmutableMap.of(),
+ false
+ )
+ ),
+ Map.class
+ ),
+ new AggregatorFactory[]{
+ new DoubleSumAggregatorFactory("met1sum", "met1"),
+ new CountAggregatorFactory("rows")
+ },
+ new UniformGranularitySpec(Granularities.DAY, Granularities.NONE, null),
+ null,
+ OBJECT_MAPPER
+ );
Review Comment:
## Deprecated method or constructor invocation
Invoking [DataSchema.DataSchema](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/4244)
##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamSamplerSpec.java:
##########
@@ -141,30 +139,42 @@
}
@Override
- public Stream<InputSplit<Object>> getSplits(@Nullable SplitHintSpec splitHintSpec)
+ public Stream<InputSplit> createSplits(InputFormat inputFormat, @Nullable SplitHintSpec splitHintSpec)
{
throw new UnsupportedOperationException();
}
@Override
- public int getNumSplits(@Nullable SplitHintSpec splitHintSpec)
+ public int estimateNumSplits(InputFormat inputFormat, @Nullable SplitHintSpec splitHintSpec)
{
throw new UnsupportedOperationException();
}
@Override
- public FiniteFirehoseFactory withSplit(InputSplit split)
+ public SplittableInputSource withSplit(InputSplit split)
{
throw new UnsupportedOperationException();
}
+
+ @Override
+ public boolean needsFormat()
+ {
+ return false;
+ }
+
+ @Override
+ protected InputSourceReader fixedFormatReader(InputRowSchema inputRowSchema, @Nullable File temporaryDirectory)
+ {
+ return new SeekableStreamSamplerInputSourceReader(parser);
+ }
}
- private class SeekableStreamSamplerFirehose implements Firehose
+ private class SeekableStreamSamplerInputSourceReader implements InputSourceReader
Review Comment:
## Inner class could be static
SeekableStreamSamplerInputSourceReader could be made static, since the enclosing instance is used only in its constructor.
[Show more details](https://github.com/apache/druid/security/code-scanning/4251)
##########
indexing-service/src/test/java/org/apache/druid/indexing/seekablestream/SeekableStreamSamplerSpecTest.java:
##########
@@ -0,0 +1,354 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.druid.indexing.seekablestream;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import org.apache.druid.client.indexing.SamplerResponse;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.data.input.InputFormat;
+import org.apache.druid.data.input.impl.ByteEntity;
+import org.apache.druid.data.input.impl.DimensionsSpec;
+import org.apache.druid.data.input.impl.FloatDimensionSchema;
+import org.apache.druid.data.input.impl.JSONParseSpec;
+import org.apache.druid.data.input.impl.LongDimensionSchema;
+import org.apache.druid.data.input.impl.StringDimensionSchema;
+import org.apache.druid.data.input.impl.StringInputRowParser;
+import org.apache.druid.data.input.impl.TimestampSpec;
+import org.apache.druid.indexing.overlord.sampler.InputSourceSampler;
+import org.apache.druid.indexing.overlord.sampler.SamplerConfig;
+import org.apache.druid.indexing.overlord.sampler.SamplerTestUtils;
+import org.apache.druid.indexing.seekablestream.common.OrderedPartitionableRecord;
+import org.apache.druid.indexing.seekablestream.common.RecordSupplier;
+import org.apache.druid.indexing.seekablestream.common.StreamPartition;
+import org.apache.druid.indexing.seekablestream.supervisor.IdleConfig;
+import org.apache.druid.indexing.seekablestream.supervisor.SeekableStreamSupervisorIOConfig;
+import org.apache.druid.indexing.seekablestream.supervisor.SeekableStreamSupervisorSpec;
+import org.apache.druid.indexing.seekablestream.supervisor.autoscaler.AutoScalerConfig;
+import org.apache.druid.jackson.DefaultObjectMapper;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.granularity.Granularities;
+import org.apache.druid.java.util.common.parsers.JSONPathSpec;
+import org.apache.druid.query.aggregation.AggregatorFactory;
+import org.apache.druid.query.aggregation.CountAggregatorFactory;
+import org.apache.druid.query.aggregation.DoubleSumAggregatorFactory;
+import org.apache.druid.segment.indexing.DataSchema;
+import org.apache.druid.segment.indexing.granularity.UniformGranularitySpec;
+import org.easymock.EasyMock;
+import org.easymock.EasyMockSupport;
+import org.joda.time.DateTime;
+import org.joda.time.Period;
+import org.junit.Assert;
+import org.junit.Test;
+
+import javax.annotation.Nullable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+public class SeekableStreamSamplerSpecTest extends EasyMockSupport
+{
+ private static final ObjectMapper OBJECT_MAPPER = new DefaultObjectMapper();
+ private static final String STREAM = "sampling";
+ private static final String SHARD_ID = "1";
+
+ private final SeekableStreamSupervisorSpec supervisorSpec = mock(SeekableStreamSupervisorSpec.class);
+
+ static {
+ NullHandling.initializeForTests();
+ }
+
+ private final RecordSupplier recordSupplier = mock(RecordSupplier.class);
+
+ private static List<OrderedPartitionableRecord<String, String, ByteEntity>> generateRecords(String stream)
+ {
+ return ImmutableList.of(
+ new OrderedPartitionableRecord<>(stream, "1", "0", jb("2008", "a", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(stream, "1", "1", jb("2009", "b", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(stream, "1", "2", jb("2010", "c", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(
+ stream,
+ "1",
+ "5",
+ jb("246140482-04-24T15:36:27.903Z", "x", "z", "10", "20.0", "1.0")
+ ),
+ new OrderedPartitionableRecord<>(
+ stream,
+ "1",
+ "6",
+ Collections.singletonList(new ByteEntity(StringUtils.toUtf8("unparseable")))
+ ),
+ new OrderedPartitionableRecord<>(stream, "1", "8", Collections.singletonList(new ByteEntity(StringUtils.toUtf8("{}"))))
+ );
+ }
+
+ @Test(timeout = 10_000L)
+ public void testSampleWithInputRowParser() throws Exception
+ {
+ final DataSchema dataSchema = new DataSchema(
+ "test_ds",
+ OBJECT_MAPPER.convertValue(
+ new StringInputRowParser(
+ new JSONParseSpec(
+ new TimestampSpec("timestamp", "iso", null),
+ new DimensionsSpec(
+ Arrays.asList(
+ new StringDimensionSchema("dim1"),
+ new StringDimensionSchema("dim1t"),
+ new StringDimensionSchema("dim2"),
+ new LongDimensionSchema("dimLong"),
+ new FloatDimensionSchema("dimFloat")
+ )
+ ),
+ new JSONPathSpec(true, ImmutableList.of()),
+ ImmutableMap.of(),
+ false
+ )
+ ),
+ Map.class
+ ),
+ new AggregatorFactory[]{
+ new DoubleSumAggregatorFactory("met1sum", "met1"),
+ new CountAggregatorFactory("rows")
+ },
+ new UniformGranularitySpec(Granularities.DAY, Granularities.NONE, null),
+ null,
+ OBJECT_MAPPER
+ );
+
+ final SeekableStreamSupervisorIOConfig supervisorIOConfig = new TestableSeekableStreamSupervisorIOConfig(
+ STREAM,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ true,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ );
+
+ EasyMock.expect(recordSupplier.getPartitionIds(STREAM)).andReturn(ImmutableSet.of(SHARD_ID)).once();
+ EasyMock.expect(supervisorSpec.getDataSchema()).andReturn(dataSchema).once();
Review Comment:
## Deprecated method or constructor invocation
Invoking [SeekableStreamSupervisorSpec.getDataSchema](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/4246)
##########
indexing-service/src/test/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexSupervisorTaskTest.java:
##########
@@ -291,6 +295,83 @@
null
);
}
+
+ @Test
+ public void testFailToConstructWhenBothInputSourceAndParserAreSet()
+ {
+ final ObjectMapper mapper = new DefaultObjectMapper();
+ final ParallelIndexIOConfig ioConfig = new ParallelIndexIOConfig(
+ null,
+ new InlineInputSource("test"),
+ null,
+ false,
+ null
+ );
+ final ParallelIndexTuningConfig tuningConfig = new ParallelIndexTuningConfig(
+ null,
+ null,
+ null,
+ 10,
+ 1000L,
+ null,
+ null,
+ null,
+ null,
+ new HashedPartitionsSpec(null, 10, null),
+ new IndexSpec(
+ new RoaringBitmapSerdeFactory(true),
+ CompressionStrategy.UNCOMPRESSED,
+ CompressionStrategy.LZF,
+ LongEncodingStrategy.LONGS
+ ),
+ new IndexSpec(),
+ 1,
+ true,
+ true,
+ 10000L,
+ OffHeapMemorySegmentWriteOutMediumFactory.instance(),
+ null,
+ 10,
+ 100,
+ 20L,
+ new Duration(3600),
+ 128,
+ null,
+ null,
+ false,
+ null,
+ null,
+ null,
+ null,
+ null
+ );
+
+ expectedException.expect(IAE.class);
+ expectedException.expectMessage("Cannot use parser and inputSource together. Try using inputFormat instead of parser.");
+ new ParallelIndexIngestionSpec(
+ new DataSchema(
+ "datasource",
+ mapper.convertValue(
+ new StringInputRowParser(
+ new JSONParseSpec(
+ new TimestampSpec(null, null, null),
+ DimensionsSpec.EMPTY,
+ null,
+ null,
+ null
+ )
+ ),
+ Map.class
+ ),
+ null,
+ null,
+ null,
+ mapper
+ ),
Review Comment:
## Deprecated method or constructor invocation
Invoking [DataSchema.DataSchema](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/4242)
##########
indexing-service/src/test/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexSupervisorTaskTest.java:
##########
@@ -291,6 +295,83 @@
null
);
}
+
+ @Test
+ public void testFailToConstructWhenBothInputSourceAndParserAreSet()
+ {
+ final ObjectMapper mapper = new DefaultObjectMapper();
+ final ParallelIndexIOConfig ioConfig = new ParallelIndexIOConfig(
+ null,
+ new InlineInputSource("test"),
+ null,
+ false,
+ null
+ );
+ final ParallelIndexTuningConfig tuningConfig = new ParallelIndexTuningConfig(
+ null,
+ null,
+ null,
+ 10,
+ 1000L,
+ null,
+ null,
+ null,
+ null,
+ new HashedPartitionsSpec(null, 10, null),
+ new IndexSpec(
+ new RoaringBitmapSerdeFactory(true),
+ CompressionStrategy.UNCOMPRESSED,
+ CompressionStrategy.LZF,
+ LongEncodingStrategy.LONGS
+ ),
+ new IndexSpec(),
+ 1,
+ true,
+ true,
+ 10000L,
+ OffHeapMemorySegmentWriteOutMediumFactory.instance(),
+ null,
+ 10,
+ 100,
+ 20L,
+ new Duration(3600),
+ 128,
+ null,
+ null,
+ false,
+ null,
+ null,
+ null,
+ null,
+ null
+ );
+
+ expectedException.expect(IAE.class);
+ expectedException.expectMessage("Cannot use parser and inputSource together. Try using inputFormat instead of parser.");
+ new ParallelIndexIngestionSpec(
+ new DataSchema(
+ "datasource",
+ mapper.convertValue(
+ new StringInputRowParser(
+ new JSONParseSpec(
+ new TimestampSpec(null, null, null),
+ DimensionsSpec.EMPTY,
+ null,
+ null,
+ null
+ )
+ ),
Review Comment:
## Deprecated method or constructor invocation
Invoking [StringInputRowParser.StringInputRowParser](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/4243)
##########
indexing-service/src/test/java/org/apache/druid/indexing/seekablestream/SeekableStreamSamplerSpecTest.java:
##########
@@ -0,0 +1,354 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.druid.indexing.seekablestream;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+import com.google.common.collect.ImmutableSet;
+import org.apache.druid.client.indexing.SamplerResponse;
+import org.apache.druid.common.config.NullHandling;
+import org.apache.druid.data.input.InputFormat;
+import org.apache.druid.data.input.impl.ByteEntity;
+import org.apache.druid.data.input.impl.DimensionsSpec;
+import org.apache.druid.data.input.impl.FloatDimensionSchema;
+import org.apache.druid.data.input.impl.JSONParseSpec;
+import org.apache.druid.data.input.impl.LongDimensionSchema;
+import org.apache.druid.data.input.impl.StringDimensionSchema;
+import org.apache.druid.data.input.impl.StringInputRowParser;
+import org.apache.druid.data.input.impl.TimestampSpec;
+import org.apache.druid.indexing.overlord.sampler.InputSourceSampler;
+import org.apache.druid.indexing.overlord.sampler.SamplerConfig;
+import org.apache.druid.indexing.overlord.sampler.SamplerTestUtils;
+import org.apache.druid.indexing.seekablestream.common.OrderedPartitionableRecord;
+import org.apache.druid.indexing.seekablestream.common.RecordSupplier;
+import org.apache.druid.indexing.seekablestream.common.StreamPartition;
+import org.apache.druid.indexing.seekablestream.supervisor.IdleConfig;
+import org.apache.druid.indexing.seekablestream.supervisor.SeekableStreamSupervisorIOConfig;
+import org.apache.druid.indexing.seekablestream.supervisor.SeekableStreamSupervisorSpec;
+import org.apache.druid.indexing.seekablestream.supervisor.autoscaler.AutoScalerConfig;
+import org.apache.druid.jackson.DefaultObjectMapper;
+import org.apache.druid.java.util.common.StringUtils;
+import org.apache.druid.java.util.common.granularity.Granularities;
+import org.apache.druid.java.util.common.parsers.JSONPathSpec;
+import org.apache.druid.query.aggregation.AggregatorFactory;
+import org.apache.druid.query.aggregation.CountAggregatorFactory;
+import org.apache.druid.query.aggregation.DoubleSumAggregatorFactory;
+import org.apache.druid.segment.indexing.DataSchema;
+import org.apache.druid.segment.indexing.granularity.UniformGranularitySpec;
+import org.easymock.EasyMock;
+import org.easymock.EasyMockSupport;
+import org.joda.time.DateTime;
+import org.joda.time.Period;
+import org.junit.Assert;
+import org.junit.Test;
+
+import javax.annotation.Nullable;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+public class SeekableStreamSamplerSpecTest extends EasyMockSupport
+{
+ private static final ObjectMapper OBJECT_MAPPER = new DefaultObjectMapper();
+ private static final String STREAM = "sampling";
+ private static final String SHARD_ID = "1";
+
+ private final SeekableStreamSupervisorSpec supervisorSpec = mock(SeekableStreamSupervisorSpec.class);
+
+ static {
+ NullHandling.initializeForTests();
+ }
+
+ private final RecordSupplier recordSupplier = mock(RecordSupplier.class);
+
+ private static List<OrderedPartitionableRecord<String, String, ByteEntity>> generateRecords(String stream)
+ {
+ return ImmutableList.of(
+ new OrderedPartitionableRecord<>(stream, "1", "0", jb("2008", "a", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(stream, "1", "1", jb("2009", "b", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(stream, "1", "2", jb("2010", "c", "y", "10", "20.0", "1.0")),
+ new OrderedPartitionableRecord<>(
+ stream,
+ "1",
+ "5",
+ jb("246140482-04-24T15:36:27.903Z", "x", "z", "10", "20.0", "1.0")
+ ),
+ new OrderedPartitionableRecord<>(
+ stream,
+ "1",
+ "6",
+ Collections.singletonList(new ByteEntity(StringUtils.toUtf8("unparseable")))
+ ),
+ new OrderedPartitionableRecord<>(stream, "1", "8", Collections.singletonList(new ByteEntity(StringUtils.toUtf8("{}"))))
+ );
+ }
+
+ @Test(timeout = 10_000L)
+ public void testSampleWithInputRowParser() throws Exception
+ {
+ final DataSchema dataSchema = new DataSchema(
+ "test_ds",
+ OBJECT_MAPPER.convertValue(
+ new StringInputRowParser(
+ new JSONParseSpec(
+ new TimestampSpec("timestamp", "iso", null),
+ new DimensionsSpec(
+ Arrays.asList(
+ new StringDimensionSchema("dim1"),
+ new StringDimensionSchema("dim1t"),
+ new StringDimensionSchema("dim2"),
+ new LongDimensionSchema("dimLong"),
+ new FloatDimensionSchema("dimFloat")
+ )
+ ),
+ new JSONPathSpec(true, ImmutableList.of()),
+ ImmutableMap.of(),
+ false
+ )
+ ),
Review Comment:
## Deprecated method or constructor invocation
Invoking [StringInputRowParser.StringInputRowParser](1) should be avoided because it has been deprecated.
[Show more details](https://github.com/apache/druid/security/code-scanning/4245)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] vogievetsky commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
vogievetsky commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1203534704
Does anything need to be removed from the docs? Is that going to be done in a separate PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1202689685
This pull request **fixes 1 alert** when merging d11e740724b43f137a0afa942f53fb5587be949e into eabce8a1590d564702321fea98157289776e63c5 - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-54157e78af909d4855d86bddafffe3a36879ceea)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r942317118
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/IndexTask.java:
##########
@@ -1196,16 +1190,9 @@ public InputFormat getInputFormat()
return inputFormat;
}
- public InputSource getNonNullInputSource(@Nullable InputRowParser inputRowParser)
+ public InputSource getNonNullInputSource()
Review Comment:
This might not be needed since, from what I observed either we can mention `ioConfig#firehoseFactory + dataSchema#parser` or `ioConfig#inputSource + ioConfig#inputFormat` combination in the ingestion spec, now that FiniteFirehoseFactory is removed user has to shift to using `ioConfig#inputSource + ioConfig#inputFormat`. In the case of `SeekableStreamSamplerSpec`, adapters have to be used since users can submit either `ioConfig#inputFormat` or `dataSchema#parser`, and `FirehoseFactory` or `InputSource` isn't submitted in `SeekableStreamIndexTaskIOConfig`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1209775763
This pull request **fixes 1 alert** when merging 76fd722a1f1665ce4b06d33e16471b68e6c27970 into 2855fb6ff8181d83fa679db26c8bbddf839391fd - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-d8eae17b043571b52c8d4e05d703cbaf0ed56be3)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] clintropolis commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
clintropolis commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r945207164
##########
server/src/main/java/org/apache/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java:
##########
@@ -79,6 +79,7 @@
* Builds firehoses that accept events through the {@link EventReceiver} interface. Can also register these
* firehoses with an {@link ServiceAnnouncingChatHandlerProvider}.
*/
+@Deprecated
Review Comment:
I think it doesn't hurt to mark them all with `@Deprectated` since it doesn't look like intellij visually marks them as deprecated (with the strikethrough) if just the interface is deprecated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] clintropolis commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
clintropolis commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1215980464
I think the compaction integration tests might be legitimately failing (i restarted them all last night and still not passing). I haven't looked closer yet to see what the issue might be.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r944143222
##########
indexing-service/src/test/java/org/apache/druid/indexing/overlord/RemoteTaskRunnerTest.java:
##########
@@ -816,7 +816,7 @@ public void testBlacklistZKWorkers() throws Exception
makeRemoteTaskRunner(rtrConfig);
- TestRealtimeTask task1 = new TestRealtimeTask(
+ TestIndexTask task1 = new TestIndexTask(
"realtime1",
Review Comment:
Oh totally overlooked them! Thanks for pointing out @clintropolis.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] clintropolis commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
clintropolis commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r944098743
##########
indexing-service/src/test/java/org/apache/druid/indexing/overlord/RemoteTaskRunnerTest.java:
##########
@@ -816,7 +816,7 @@ public void testBlacklistZKWorkers() throws Exception
makeRemoteTaskRunner(rtrConfig);
- TestRealtimeTask task1 = new TestRealtimeTask(
+ TestIndexTask task1 = new TestIndexTask(
"realtime1",
Review Comment:
super nit-picky, but these task ids are kind of funny since they are no longer realtime tasks
##########
server/src/main/java/org/apache/druid/segment/realtime/firehose/EventReceiverFirehoseFactory.java:
##########
@@ -79,6 +79,7 @@
* Builds firehoses that accept events through the {@link EventReceiver} interface. Can also register these
* firehoses with an {@link ServiceAnnouncingChatHandlerProvider}.
*/
+@Deprecated
Review Comment:
I think `TimedShutoffFirehoseFactory` and `ClippedFirehoseFactory` need marked deprecated too?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 merged pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by "abhishekagarwal87 (via GitHub)" <gi...@apache.org>.
abhishekagarwal87 merged PR #12852:
URL: https://github.com/apache/druid/pull/12852
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r942325805
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/InputSourceSplitParallelIndexTaskRunner.java:
##########
@@ -86,13 +83,8 @@ final SubTaskSpec<T> newTaskSpec(InputSplit split)
{
final FirehoseFactory firehoseFactory;
final InputSource inputSource;
- if (baseInputSource instanceof FirehoseFactoryToInputSourceAdaptor) {
- firehoseFactory = ((FirehoseFactoryToInputSourceAdaptor) baseInputSource).getFirehoseFactory().withSplit(split);
- inputSource = null;
- } else {
- firehoseFactory = null;
- inputSource = baseInputSource.withSplit(split);
- }
+ firehoseFactory = null;
+ inputSource = baseInputSource.withSplit(split);
Review Comment:
As mentioned in the other comment `baseInputSource` can't be an instance of adapter input source since it's generated by `IndexTask.IndexIOConfig.getNonNullInputSource()` from `InputRowParser` & `FiniteFirehoseFactory` previously in case `InputSource` is null, now that `FiniteFirehoseFactory` is removed user has to submit non-null input source for batch index tasks for all the cases where `FiniteFirehoseFactory` instantiating spec was used.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1212443604
This pull request **fixes 1 alert** when merging 01e0c90a104ad79f65d20c0cd4ed180568d3de60 into 38af5f7b57769e026f028a56bb9be8003e01ddc5 - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-3c65f4918ce9b6a0c4deda430bfc49b57450da07)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a diff in pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on code in PR #12852:
URL: https://github.com/apache/druid/pull/12852#discussion_r942084771
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/InputSourceSplitParallelIndexTaskRunner.java:
##########
@@ -86,13 +83,8 @@ final SubTaskSpec<T> newTaskSpec(InputSplit split)
{
final FirehoseFactory firehoseFactory;
final InputSource inputSource;
- if (baseInputSource instanceof FirehoseFactoryToInputSourceAdaptor) {
- firehoseFactory = ((FirehoseFactoryToInputSourceAdaptor) baseInputSource).getFirehoseFactory().withSplit(split);
- inputSource = null;
- } else {
- firehoseFactory = null;
- inputSource = baseInputSource.withSplit(split);
- }
+ firehoseFactory = null;
+ inputSource = baseInputSource.withSplit(split);
Review Comment:
would this work if baseInputSource is an adapter input source from a parser?
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/IndexTask.java:
##########
@@ -1196,16 +1190,9 @@ public InputFormat getInputFormat()
return inputFormat;
}
- public InputSource getNonNullInputSource(@Nullable InputRowParser inputRowParser)
+ public InputSource getNonNullInputSource()
Review Comment:
this too needs a fix similar to the one you did in SeekableStreamSampler. We need to keep the adapters around.
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexIngestionSpec.java:
##########
@@ -45,9 +44,7 @@ public ParallelIndexIngestionSpec(
super(dataSchema, ioConfig, tuningConfig);
if (dataSchema.getParserMap() != null && ioConfig.getInputSource() != null) {
- if (!(ioConfig.getInputSource() instanceof FirehoseFactoryToInputSourceAdaptor)) {
- throw new IAE("Cannot use parser and inputSource together. Try using inputFormat instead of parser.");
- }
+ throw new IAE("Cannot use parser and inputSource together. Try using inputFormat instead of parser.");
Review Comment:
what if the parserMap is not null and input source is an adapter input source?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1212076936
This pull request **fixes 1 alert** when merging 62a32621ebc6bf03e9d22fd75435a5d26a4f4eef into b4985ccd5e9b10fec847b3316259fc97996eebca - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-fd0f7e9ff459f3e090804b35f6e93c04a34c54e7)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] lgtm-com[bot] commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
lgtm-com[bot] commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1216316880
This pull request **fixes 1 alert** when merging 5eda0b418e9088ac81fadb45faf70166baed799d into ec8bdeb9f6f2aac28e78eb41df210da7e74370bb - [view on LGTM.com](https://lgtm.com/projects/g/apache/druid/rev/pr-d88d93fe84785e15ff6313143e190b26cc675341)
**fixed alerts:**
* 1 for Server\-side request forgery
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] tejaswini-imply commented on pull request #12852: Removes FiniteFirehoseFactory and its implementations
Posted by GitBox <gi...@apache.org>.
tejaswini-imply commented on PR #12852:
URL: https://github.com/apache/druid/pull/12852#issuecomment-1216480946
@clintropolis I have tested it locally, and the compaction IT group tests or the modified `wikipedia_with_timestamp_index_task.json`, `wikipedia_index_task_with_dimension_spec.json` index task spec seems to have no issues. I am not sure what's causing the failures in Travis, though.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org