Skip to content

Commit

Permalink
chore: replace deprecated HELIO_STACK_CHECK (#4465)
Browse files Browse the repository at this point in the history
* remove HELIO_STACK_CHECK
* use FLAGS_fiber_safety_margin

---------

Signed-off-by: kostas <[email protected]>
  • Loading branch information
kostasrim authored Jan 20, 2025
1 parent ac8e1c8 commit c759eb8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
-DCMAKE_CXX_COMPILER="${{matrix.compiler.cxx}}" \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_FLAGS="${{matrix.cxx_flags}} -no-pie" -DWITH_AWS:BOOL=OFF \
-DHELIO_STACK_CHECK:STRING=4096 \
-L
cd ${GITHUB_WORKSPACE}/build && pwd
du -hcs _deps/
Expand All @@ -135,7 +134,7 @@ jobs:
cd ${GITHUB_WORKSPACE}/build
echo Run ctest -V -L DFLY
GLOG_alsologtostderr=1 GLOG_vmodule=rdb_load=1,rdb_save=1,snapshot=1 \
FLAGS_list_experimental_v2=true timeout 20m ctest -V -L DFLY
FLAGS_fiber_safety_margin=4096 FLAGS_list_experimental_v2=true timeout 20m ctest -V -L DFLY
echo "Running tests with --force_epoll"
Expand All @@ -148,19 +147,20 @@ jobs:
EOF
gdb -ix ./init.gdb --batch -ex r --args ./dragonfly_test --force_epoll
FLAGS_force_epoll=true GLOG_vmodule=rdb_load=1,rdb_save=1,snapshot=1 timeout 20m ctest -V -L DFLY
FLAGS_fiber_safety_margin=4096 FLAGS_force_epoll=true GLOG_vmodule=rdb_load=1,rdb_save=1,snapshot=1 timeout 20m ctest -V -L DFLY
echo "Finished running tests with --force_epoll"
echo "Running tests with --cluster_mode=emulated"
FLAGS_cluster_mode=emulated timeout 20m ctest -V -L DFLY
FLAGS_fiber_safety_margin=4096 FLAGS_cluster_mode=emulated timeout 20m ctest -V -L DFLY
echo "Running tests with both --cluster_mode=emulated & --lock_on_hashtags"
FLAGS_cluster_mode=emulated FLAGS_lock_on_hashtags=true timeout 20m ctest -V -L DFLY
FLAGS_fiber_safety_margin=4096 FLAGS_cluster_mode=emulated FLAGS_lock_on_hashtags=true timeout 20m ctest -V -L DFLY
timeout 5m ./dragonfly_test
timeout 5m ./json_family_test --jsonpathv2=false
timeout 5m ./tiered_storage_test --vmodule=db_slice=2 --logtostderr
- name: Upload unit logs on failure
if: failure()
uses: actions/upload-artifact@v4
Expand Down
7 changes: 0 additions & 7 deletions src/server/detail/compressor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,9 @@ io::Result<io::Bytes> Lz4Compressor::Compress(io::Bytes data) {
compr_buf_.reserve(buf_size);
}

// TODO: to remove LZ4F_compressFrame code once we confirm this code actually works.
#if 1
size_t frame_size =
LZ4F_compressFrame_usingCDict(cctx_, compr_buf_.data(), compr_buf_.capacity(), data.data(),
data.size(), nullptr /* dict */, &lz4_pref);
#else
size_t frame_size = LZ4F_compressFrame(compr_buf_.data(), compr_buf_.capacity(), data.data(),
data.size(), &lz4_pref);
#endif

if (LZ4F_isError(frame_size)) {
LOG(ERROR) << "LZ4F_compressFrame failed with error " << LZ4F_getErrorName(frame_size);
return nonstd::make_unexpected(make_error_code(errc::operation_not_supported));
Expand Down
3 changes: 3 additions & 0 deletions tests/dragonfly/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ def create(self, existing_port=None, path=None, version=100, **kwargs) -> DflyIn
if version >= 1.21 and "serialization_max_chunk_size" not in args:
args.setdefault("serialization_max_chunk_size", 300000)

if version >= 1.26:
args.setdefault("fiber_safety_margin=4096")

for k, v in args.items():
args[k] = v.format(**self.params.env) if isinstance(v, str) else v

Expand Down

0 comments on commit c759eb8

Please sign in to comment.