Skip to content

Add workaround in dev docs for issue with OpenSearch image #18168

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/dev/development/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,21 @@ Errors when executing ``make initdb``
opensearch wants a lot of memory (Dustin gives warehouse ~4GB locally).
Refer to the tip under :ref:`running-warehouse-containers` section for more details.

* If ``make initdb`` fails with an error like::

A fatal error has been detected by the Java Runtime Environment:
SIGILL (0x4) at pc=0x0000f819dfc67c5c, pid=25, tid=26

while building the ``warehouse-opensearch`` image, this is a known issue
with OpenSearch in Apple M4 processors. A workaround (described in
`this comment <https://github.com/elastic/elasticsearch/issues/118583#issuecomment-2567270484>`_)
Copy link
Member

Choose a reason for hiding this comment

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

Curious - this link is from the elasticsearch-side on the world, and we're using opensearch. Is it possible that's been fixed over there / possibly in another version, or something else?

Copy link
Member

Choose a reason for hiding this comment

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

@facutuesca can confirm, but I believe the issue is present in both -- based on the discussion in that issue, users are seeing the both the same crash and have the same fix.

is to add the following line to ``dev/compose/opensearch/Dockerfile.yml`` (after
the FROM line):

.. code-block:: docker

ENV _JAVA_OPTIONS=-XX:UseSVE=0


"no space left on device" when using ``docker compose``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Loading