Skip to content
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

Set KAFKA_OPTS to empty in OMB #16577

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

travisdowns
Copy link
Member

@travisdowns travisdowns commented Feb 12, 2024

Set KAFKA_OPTS to a single space in OMB, which is required to use newer OMB versions as otherwise we try to use a -javaagent from a location that doesn't exist in DT OMB setup (see
bin/benchmark-workers script).

Single empty space is because a totally empty KAFKA_OPTS will still be overridden by the bin/benchmark-workers script.

Issue redpanda-data/core-internal#1016.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

  • none

Set KAFKA_OPTS to a single space in OMB, which is required to use
newer OMB versions as otherwise we try to use a -javaagent from a
location that doesn't exist in DT OMB setup (see
bin/benchmark-workers script).

Single empty space is because a totally empty KAFKA_OPTS will still
be overridden by the bin/benchmark-workers script.

Issue redpanda-data/core-internal#1016.
--stats-port {OpenMessagingBenchmarkWorkers.STATS_PORT} \
>> {OpenMessagingBenchmarkWorkers.STDOUT_STDERR_CAPTURE} 2>&1 & disown"
start_cmd = (
f"cd /opt/openmessaging-benchmark; "
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also changed this to use this other apparently more pythonic pattern for multi-line strings, because all the intendation space was actually ending up in the command (hard to read in the logfile).

start_cmd = (
f"cd /opt/openmessaging-benchmark; "
f"HEAP_OPTS=\" \" "
f"KAFKA_OPTS=\" \" "
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 1 line is actual material change. The redpanda main OMB branch has KAFKA_OPTS use now, so once we update the SHA this will break, fixing this preemptively.

@travisdowns
Copy link
Member Author

/ci-repeat

@travisdowns travisdowns merged commit c0e920d into redpanda-data:dev Feb 16, 2024
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants