Skip to content

Commit

Permalink
debug crash
Browse files Browse the repository at this point in the history
  • Loading branch information
chaokunyang committed Oct 3, 2023
1 parent 6344442 commit d0a6d62
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Install bazel
run: ./ci/run_ci.sh install_bazel
- name: Install python
run: ./ci/run_ci.sh install_python
- name: Install pyfury
run: ./ci/run_ci.sh install_pyfury
# - name: Install bazel
# run: ./ci/run_ci.sh install_bazel
# - name: Install python
# run: ./ci/run_ci.sh install_python
# - name: Install pyfury
# run: ./ci/run_ci.sh install_pyfury
- name: Run CI with Maven
run: PATH="$HOME/miniconda/bin:$PATH" ./ci/run_ci.sh java${{ matrix.java-version }}
integration_tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public void testDeserializeUnexistedNewFury(
ClassLoader classLoader = getClass().getClassLoader();
for (Class<?> structClass :
new Class<?>[] {
Struct.createNumberStructClass("TestSkipUnexistedClass1", 2),
Struct.createStructClass("TestSkipUnexistedClass1", 2)
Struct.createNumberStructClass("TestSkipUnexistedClass2", 2),
Struct.createStructClass("TestSkipUnexistedClass2", 2)
}) {
Object pojo = Struct.createPOJO(structClass);
MetaContext context1 = new MetaContext();
Expand Down Expand Up @@ -152,7 +152,7 @@ public void testDeserializeUnexistedNewFury(
// https://github.com/alipay/fury/pull/923#issuecomment-1745035339
// Workaround by gc manually.
System.gc();
Thread.sleep(20);
Thread.sleep(1);
Object o3 = fury3.deserialize(bytes2);
assertEquals(o3.getClass(), structClass);
assertEquals(o3, pojo);
Expand Down Expand Up @@ -180,8 +180,8 @@ public void testDeserializeUnexisted(
ClassLoader classLoader = getClass().getClassLoader();
for (Class<?> structClass :
new Class<?>[] {
Struct.createNumberStructClass("TestSkipUnexistedClass1", 2),
Struct.createStructClass("TestSkipUnexistedClass1", 2)
Struct.createNumberStructClass("TestSkipUnexistedClass3", 2),
Struct.createStructClass("TestSkipUnexistedClass3", 2)
}) {
Fury fury2 =
builder()
Expand All @@ -207,15 +207,15 @@ public void testDeserializeUnexisted(
// https://github.com/alipay/fury/pull/923#issuecomment-1745035339
// Workaround by gc manually.
System.gc();
Thread.sleep(20);
Thread.sleep(1);
byte[] bytes = fury.serialize(pojo);
fury2.getSerializationContext().setMetaContext(context2);
Object o2 = fury2.deserialize(bytes);
assertEquals(o2.getClass(), UnexistedClassSerializers.UnexistedMetaSharedClass.class);
fury2.getSerializationContext().setMetaContext(context2);

System.gc();
Thread.sleep(20);
Thread.sleep(1);
byte[] bytes2 = fury2.serialize(o2);

fury3.getSerializationContext().setMetaContext(context3);
Expand Down

0 comments on commit d0a6d62

Please sign in to comment.