You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2022/04/04 19:35:00 UTC

[jira] [Created] (IMPALA-11223) ASM files from different fragments conflict when using asm_module_dir

Joe McDonnell created IMPALA-11223:
--------------------------------------

             Summary: ASM files from different fragments conflict when using asm_module_dir
                 Key: IMPALA-11223
                 URL: https://issues.apache.org/jira/browse/IMPALA-11223
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 4.1.0
            Reporter: Joe McDonnell


For debugging codegen, it is useful to be able to inspect the generated assembly. The asm_module_dir startup parameter directs Impala to dump the codegen assembly to files in a directory. It currently dumps the assembly for a query into '${query_id}.asm', but there are actually multiple codegen operations going on in a single query and the output from one will overwrite the output from previous ones. I added a debug statement to the dumping code, and it gets called multiple times:
{noformat}
I0404 12:25:34.453413  6527 codegen-symbol-emitter.cc:58] 574df02d4b904ee9:9fa6181b00000001] Writing disassembly to: /data/Impala/logs/asm_module_dir/574df02d4b904ee9:9fa6181b00000000.asm
I0404 12:25:34.463084  6528 codegen-symbol-emitter.cc:58] 574df02d4b904ee9:9fa6181b00000000] Writing disassembly to: /data/Impala/logs/asm_module_dir/574df02d4b904ee9:9fa6181b00000000.asm
...
I0404 12:25:34.491320  6529 codegen-symbol-emitter.cc:58] 574df02d4b904ee9:9fa6181b00000004] Writing disassembly to: /data/Impala/logs/asm_module_dir/574df02d4b904ee9:9fa6181b00000000.asm{noformat}
We should fix the filenames so that these collisions do not occur. One option would be to use the fragment id rather than the query id.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org