Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

jdbc sampler to run script (multiple statements)

オープン
#6,467 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
databases

調査の方向性

この issue では、複数の文を扱う Script window を備えた新しい「JDBC Script Request」sampler を提案しています。既存の JDBC sampler と Query window を確認し、文の実行、トランザクション、失敗、コミット、ロールバックをどのように動作させるべきかを定義してください。スクリプトが要求されたトランザクション動作で 1 つの sampler として実行されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement to-triage
Use case
  1. Often we need to run many statements (e.g. to drop then create the tables, indexes and keys needed by a test)
    Splitting each of these into individual samplers is tedious and doesn't help in that they either all work or all fail.
  2. Inserting lots of static data ready for a testing is something which really needs the ability to run as a script (i.e. all the inserts in a single sampler).
  3. combine dependent inserts (i.e those joined by foreign key) into one transaction and sampler). E.g. a user and their address.
Possible solution

a new sampler called "JDBC Script Request", which can execute any number of statements pasted into the "Script" window (which is more or less the same as the "Query" window).
Ideally a check box to run the script in a separate transaction, with an auto rollback after completion (i.e. we would need to add a commit; statement as the last line of the script, in which case the rollback does nothing. that way if one statement fails, they all fail (and get rolled back).

Possible workarounds

No response

JMeter Version

5.6.3

Java Version

21 (zulu)

OS Version

win 11

主要言語
Java
スター
9.6k
フォーク
2.3k
平均マージ
18時間 33分
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/jmeter のほかの issue

apache/jmeter の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。