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 "Quanlong Huang (Jira)" <ji...@apache.org> on 2023/06/19 01:52:00 UTC

[jira] [Updated] (IMPALA-12004) 'Preconditions.checkArgument' check failed when drop function

     [ https://issues.apache.org/jira/browse/IMPALA-12004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Quanlong Huang updated IMPALA-12004:
------------------------------------
    Labels: ramp-up  (was: )

> 'Preconditions.checkArgument' check failed when drop function
> -------------------------------------------------------------
>
>                 Key: IMPALA-12004
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12004
>             Project: IMPALA
>          Issue Type: Bug
>    Affects Versions: Impala 4.0.0
>            Reporter: changxin
>            Priority: Minor
>              Labels: ramp-up
>         Attachments: image-2023-03-15-17-03-28-103.png
>
>
> I am using Impala 4.0. When I drop a function, whether it is a regular function or an agg function, it can be deleted successfully, but it will print an error in the log. It prompts that in `org.apache.impala.catalog.Function.fromThrift` method, when checking the attributes of TFunction, binary_type,arg_types and other attributes are not set.
> I checked the call stack.TFunction is set in be’s `{{{}CatalogOpExecutor::HandleDropFunction`{}}}.Then jni calls `org.apache.impala.service.JniFrontend.getCatalogObject`,Then it passes to `org.apache.impala.catalog.Catalog.getTCatalogObject`.Finally it reaches `org.apache.impala.catalog.Function.fromThrift`.In this process,the relevant attributes in TFunction should always exist.
> After that,I checked the result of thrift deserialization after jni to fe and found that the value of TFunction was different from what was set on be side.I think the problem is here,but I don’t know how to debug it further. The following is the log I printed during the troubleshooting process:
>  
> !image-2023-03-15-17-03-28-103.png!
>  
> The error stack is as follows:
> ```
> I0315 16:59:00.008705 3050418 jni-util.cc:286] cb45cf620a3e46e3:8c235e9500000000] java.lang.IllegalArgumentException
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:128)
> at org.apache.impala.catalog.Function.fromThrift(Function.java:392)
> at org.apache.impala.catalog.Catalog.getTCatalogObject(Catalog.java:526)
> at org.apache.impala.service.JniFrontend.getCatalogObject(JniFrontend.java:526)
> I0315 16:59:00.008720 3050418 status.cc:129] cb45cf620a3e46e3:8c235e9500000000] IllegalArgumentException: null
> @ 0x20f2a75 impala::Status::Status()
> @ 0x2b2535d impala::JniUtil::GetJniExceptionMsg()
> @ 0x20be150 impala::JniCall::Call<>()
> @ 0x20bd0cb impala::JniUtil::CallJniMethod<>()
> @ 0x2842bc1 impala::Frontend::GetCatalogObject()
> @ 0x2cc4ed9 impala::CatalogOpExecutor::HandleDropFunction()
> @ 0x2cc4160 impala::CatalogOpExecutor::Exec()
> @ 0x29daaca impala::ClientRequestState::ExecDdlRequest()
> @ 0x29d55fd impala::ClientRequestState::Exec()
> @ 0x28af866 impala::ImpalaServer::ExecuteInternal()
> @ 0x28ae638 impala::ImpalaServer::Execute()
> @ 0x2a0a58a impala::ImpalaServer::ExecuteStatementCommon()
> @ 0x2a0b42b impala::ImpalaServer::ExecuteStatement()
> @ 0x29192d7 apache::hive::service::cli::thrift::TCLIServiceProcessorT<>::process_ExecuteStatement()
> @ 0x299f76b apache::hive::service::cli::thrift::TCLIServiceProcessorT<>::dispatchCall()
> @ 0x299f362 impala::ImpalaHiveServer2ServiceProcessorT<>::dispatchCall()
> @ 0x1fcb3db apache::thrift::TDispatchProcessor::process()
> @ 0x24a3b98 apache::thrift::server::TAcceptQueueServer::Task::run()
> @ 0x24973ba impala::ThriftThread::RunRunnable()
> @ 0x2498a2a boost::_mfi::mf2<>::operator()()
> @ 0x24988be boost::_bi::list3<>::operator()<>()
> @ 0x2498604 boost::_bi::bind_t<>::operator()()
> @ 0x24984d8 boost::detail::function::void_function_obj_invoker0<>::invoke()
> @ 0x2406f45 boost::function0<>::operator()()
> @ 0x2be8827 impala::Thread::SuperviseThread()
> @ 0x2bf1188 boost::_bi::list5<>::operator()<>()
> @ 0x2bf10ac boost::_bi::bind_t<>::operator()()
> @ 0x2bf106d boost::detail::thread_data<>::run()
> @ 0x4665831 thread_proxy
> @ 0x7fc45ffda1a2 start_thread
> @ 0x7fc45c346fac __clone
> I0315 16:59:00.085032 3050418 catalog-op-executor.cc:223] cb45cf620a3e46e3:8c235e9500000000] Could not lookup function catalog object: TDropFunctionParams {
> ```
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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