Skip to content

Improve error detection during server termination #358

Open
@ochaplashkin

Description

@ochaplashkin

We added default conditions, while working on #349 and #252:

Segmentation fault:

if self.process.output_beautifier.stderr:find('Segmentation fault') then
    error(
        ('Segmentation fault during process termination (alias: %s, workdir: %s, pid: %d)\n%s')
        ...
    )
end

Memory leak from sanitizer:

if self.process.output_beautifier.stderr:find('LeakSanitizer') then
    error(
	('Memory leak during process termination (alias: %s, workdir: %s, pid: %s)\n%s')
	...
    )
end

Obviously, if we add error handling they will extend the server:stop() method.
It is necessary to think about some kind of uniform approach.

Error codes in Tarantool source code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions