Code Monkey home page Code Monkey logo

2023-nosql-lsm's People

Contributors

alexblack01 avatar alexnevskiy avatar artyomcool avatar atimofeyev avatar beathuntercode avatar croil avatar dalvikk avatar dmozze avatar fo-xi avatar genryeden avatar hktrp avatar ilyaabramovv avatar incubos avatar jar-cher avatar kirill06344 avatar llav3ji2019 avatar lukna5 avatar nikpro200125 avatar osokindm avatar pashchenko8 avatar petyavasya avatar smirnovdm2107 avatar solosenya avatar sshishigin avatar stormrvge avatar trofik00777 avatar vadim01er avatar vbandurin7 avatar vitekkor avatar y0f0 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

2023-nosql-lsm's Issues

HW2 Не работающие тесты на Windows

Не проходят тесты на ОС Windows для второго домашнего задания. Падают с ошибкой "отказано в доступе" при удалении ssTable во временной директории.
изображение

На системах семейства UNIX все тесты проходят успешно (прогонял тесты конкретно на Ubuntu 22.04).
image_2023-10-01_22-51-53

Тесты на windows

Проблема неработающих тестов на windows (при выданных разрешениях) может быть связана со следующим:
Постпроцессинг тестов пытается удалить файл первого Dao, который еще используется вторым Dao, из-за чего вылетает исключение.
То есть второй объект Dao не создается через createDao(), в следствие чего не закрывается в конце теста.

Чтобы избежать такое поведение можно закрыть второй объект Dao, либо когда делаем reopen перезаписать поле делегата, а не создавать новый объект TestDao.

Пример с закрытием Dao (добавлен dao.close()):

 void variability(Dao<String, Entry<String>> dao) throws IOException {
        final Collection<Entry<String>> entries =
                List.of(
                        entry("key1", "value1"),
                        entry("key10", "value10"),
                        entry("key1000", "value1000"));
        entries.forEach(dao::upsert);
        dao.close();

        dao = DaoFactory.Factory.reopen(dao);
        for (final Entry<String> entry : entries) {
            assertSame(dao.get(entry.key()), entry);
        }
        dao.close();
    }

image

Второй вариант - измененный reopen:

public TestDao<Data, E> reopen() throws IOException {
        delegate = factory.createDao(config);
        return this;
    }

Плавающий тест

Плавающий тест (иногда проходит, иногда валится).
Log:

BasicConcurrentTest > testConcurrentRead_10_000(Dao) > [1] TestDao<name_dao_implementation> FAILED
java.util.concurrent.TimeoutException at TimeoutInvocation.java:70

Flaky tests

Видимо тесты все еще падают по таймауту #49.

Например, здесь #131.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.