Skip to content

Commit 50669eb

Browse files
authored
Support opensearch-sql:run and update developer_guide doc (opensearch-project#1099)
Support opensearch-sql:run Update developer_guide doc. add prometheus and filesystem description. Add .java-version to .gitignore Signed-off-by: Peng Huo <[email protected]>
1 parent cfb2650 commit 50669eb

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ gen
4444
/artifacts/
4545
/.pid.lock
4646
/.prom.pid.lock
47+
48+
.java-version

DEVELOPER_GUIDE.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ The plugin codebase is in standard layout of Gradle project::
141141
├── core
142142
├── doctest
143143
├── opensearch
144+
├── filesystem
145+
├── prometheus
144146
├── integ-test
145147
├── legacy
146148
├── plugin
@@ -159,6 +161,8 @@ Here are sub-folders (Gradle modules) for plugin source code:
159161
- ``ppl``: PPL language processor.
160162
- ``core``: core query engine.
161163
- ``opensearch``: OpenSearch storage engine.
164+
- ``prometheus``: Prometheus storage engine.
165+
- ``filesystem``: File System storage engine (in development).
162166
- ``protocol``: request/response protocol formatter.
163167
- ``common``: common util code.
164168
- ``integ-test``: integration and comparison test.

plugin/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ plugins {
3030
}
3131

3232
apply plugin: 'opensearch.pluginzip'
33+
apply plugin: 'opensearch.rest-test'
3334

3435
ext {
3536
projectSubstitutions = [:]
@@ -226,3 +227,19 @@ afterEvaluate {
226227
}
227228
}
228229
}
230+
231+
testClusters.integTest {
232+
plugin(project.tasks.bundlePlugin.archiveFile)
233+
234+
// debug with command, ./gradlew opensearch-sql:run -DdebugJVM. --debug-jvm does not work with keystore.
235+
if (System.getProperty("debugJVM") != null) {
236+
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005'
237+
}
238+
239+
// add customized keystore
240+
keystore 'plugins.query.federation.datasources.config', new File("$projectDir/src/test/resources/", 'datasources.json')
241+
}
242+
243+
run {
244+
useCluster testClusters.integTest
245+
}

0 commit comments

Comments
 (0)