[jira] [Commented] (AMBARI-25469) Bad UTF encoding on Alert listener receiver
[ https://issues.apache.org/jira/browse/AMBARI-25469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026673#comment-17026673 ] Hudson commented on AMBARI-25469: - FAILURE: Integrated in Jenkins build Ambari-branch-2.7 #651 (See [https://builds.apache.org/job/Ambari-branch-2.7/651/]) AMBARI-25469. Bad UTF encoding on Alert listener receiver. (dvitiiuk via (github: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=ae5fe7aad56e6ba0a65a2ffacf15e7e32906]) * (edit) ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py > Bad UTF encoding on Alert listener receiver > --- > > Key: AMBARI-25469 > URL: https://issues.apache.org/jira/browse/AMBARI-25469 > Project: Ambari > Issue Type: Bug > Components: ambari-agent >Affects Versions: 2.7.5 >Reporter: Dmytro Vitiuk >Assignee: Dmytro Grinenko >Priority: Critical > Labels: pull-request-available > Fix For: 2.7.6 > > Time Spent: 0.5h > Remaining Estimate: 0h > > The problem observed on gce cluster during testing of Ambari Kerberos slowness > {code:java} > 2020-01-29 09:42:37,550 ERROR [alert-event-bus-2] > AmbariJpaLocalTxnInterceptor:188 - [DETAILED ERROR] Internal exception (1) : > org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding > "UTF8": 0x00 > at > org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) > at > org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) > at > org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306) > at > org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) > at > org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155) > at > org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:132) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:892) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:964) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:633) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements(ParameterizedSQLBatchWritingMechanism.java:134) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.writesCompleted(DatabaseAccessor.java:1845) > at > org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:4300) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5592) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1646) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1614) > at > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:285) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169) > at > org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134) > at > org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:153) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) > at > com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.saveEntities() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener.onAlertEvent(AlertReceivedListener.java:388) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.CGLIB$onAlertEvent$0() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173$$FastClassByGuice$$3f418344.invoke() > at > com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodI
[jira] [Resolved] (AMBARI-25469) Bad UTF encoding on Alert listener receiver
[ https://issues.apache.org/jira/browse/AMBARI-25469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmytro Grinenko resolved AMBARI-25469. -- Resolution: Fixed > Bad UTF encoding on Alert listener receiver > --- > > Key: AMBARI-25469 > URL: https://issues.apache.org/jira/browse/AMBARI-25469 > Project: Ambari > Issue Type: Bug > Components: ambari-agent >Affects Versions: 2.7.5 >Reporter: Dmytro Vitiuk >Assignee: Dmytro Grinenko >Priority: Critical > Labels: pull-request-available > Fix For: 2.7.6 > > Time Spent: 0.5h > Remaining Estimate: 0h > > The problem observed on gce cluster during testing of Ambari Kerberos slowness > {code:java} > 2020-01-29 09:42:37,550 ERROR [alert-event-bus-2] > AmbariJpaLocalTxnInterceptor:188 - [DETAILED ERROR] Internal exception (1) : > org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding > "UTF8": 0x00 > at > org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) > at > org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) > at > org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306) > at > org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) > at > org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155) > at > org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:132) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:892) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:964) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:633) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements(ParameterizedSQLBatchWritingMechanism.java:134) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.writesCompleted(DatabaseAccessor.java:1845) > at > org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:4300) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5592) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1646) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1614) > at > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:285) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169) > at > org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134) > at > org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:153) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) > at > com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.saveEntities() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener.onAlertEvent(AlertReceivedListener.java:388) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.CGLIB$onAlertEvent$0() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173$$FastClassByGuice$$3f418344.invoke() > at > com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76) > at > org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:44) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) > at > com.google.inject.internal.InterceptorStackCallback.intercept(Intercepto
[jira] [Assigned] (AMBARI-25469) Bad UTF encoding on Alert listener receiver
[ https://issues.apache.org/jira/browse/AMBARI-25469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmytro Grinenko reassigned AMBARI-25469: Assignee: Dmytro Grinenko > Bad UTF encoding on Alert listener receiver > --- > > Key: AMBARI-25469 > URL: https://issues.apache.org/jira/browse/AMBARI-25469 > Project: Ambari > Issue Type: Bug > Components: ambari-agent >Affects Versions: 2.7.5 >Reporter: Dmytro Vitiuk >Assignee: Dmytro Grinenko >Priority: Critical > Labels: pull-request-available > Fix For: 2.7.6 > > Time Spent: 10m > Remaining Estimate: 0h > > The problem observed on gce cluster during testing of Ambari Kerberos slowness > {code:java} > 2020-01-29 09:42:37,550 ERROR [alert-event-bus-2] > AmbariJpaLocalTxnInterceptor:188 - [DETAILED ERROR] Internal exception (1) : > org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding > "UTF8": 0x00 > at > org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) > at > org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) > at > org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306) > at > org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) > at > org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155) > at > org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:132) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:892) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:964) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:633) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements(ParameterizedSQLBatchWritingMechanism.java:134) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.writesCompleted(DatabaseAccessor.java:1845) > at > org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:4300) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5592) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1646) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1614) > at > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:285) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169) > at > org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134) > at > org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:153) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) > at > com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.saveEntities() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener.onAlertEvent(AlertReceivedListener.java:388) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.CGLIB$onAlertEvent$0() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173$$FastClassByGuice$$3f418344.invoke() > at > com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76) > at > org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:44) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) > at > com.google.inject.internal.InterceptorStackCallback.intercep
[jira] [Updated] (AMBARI-25469) Bad UTF encoding on Alert listener receiver
[ https://issues.apache.org/jira/browse/AMBARI-25469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated AMBARI-25469: Labels: pull-request-available (was: ) > Bad UTF encoding on Alert listener receiver > --- > > Key: AMBARI-25469 > URL: https://issues.apache.org/jira/browse/AMBARI-25469 > Project: Ambari > Issue Type: Bug > Components: ambari-agent >Affects Versions: 2.7.5 >Reporter: Dmytro Vitiuk >Priority: Critical > Labels: pull-request-available > Fix For: 2.7.6 > > > The problem observed on gce cluster during testing of Ambari Kerberos slowness > {code:java} > 2020-01-29 09:42:37,550 ERROR [alert-event-bus-2] > AmbariJpaLocalTxnInterceptor:188 - [DETAILED ERROR] Internal exception (1) : > org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding > "UTF8": 0x00 > at > org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) > at > org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) > at > org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306) > at > org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) > at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) > at > org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155) > at > org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:132) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:892) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:964) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:633) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149) > at > org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements(ParameterizedSQLBatchWritingMechanism.java:134) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.writesCompleted(DatabaseAccessor.java:1845) > at > org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:4300) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5592) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1646) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1614) > at > org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:285) > at > org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169) > at > org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134) > at > org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:153) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) > at > com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.saveEntities() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener.onAlertEvent(AlertReceivedListener.java:388) > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.CGLIB$onAlertEvent$0() > at > org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173$$FastClassByGuice$$3f418344.invoke() > at > com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76) > at > org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:44) > at > com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) > at > com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) > at > org.apache.ambari.server.events.lis
[jira] [Updated] (AMBARI-25469) Bad UTF encoding on Alert listener receiver
[ https://issues.apache.org/jira/browse/AMBARI-25469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Akhil Naik updated AMBARI-25469: Description: The problem observed on gce cluster during testing of Ambari Kerberos slowness {code:java} 2020-01-29 09:42:37,550 ERROR [alert-event-bus-2] AmbariJpaLocalTxnInterceptor:188 - [DETAILED ERROR] Internal exception (1) : org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155) at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:132) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:892) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:964) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:633) at org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149) at org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements(ParameterizedSQLBatchWritingMechanism.java:134) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.writesCompleted(DatabaseAccessor.java:1845) at org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:4300) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5592) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1646) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1614) at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:285) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169) at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134) at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:153) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.saveEntities() at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener.onAlertEvent(AlertReceivedListener.java:388) at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.CGLIB$onAlertEvent$0() at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173$$FastClassByGuice$$3f418344.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76) at org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:44) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.onAlertEvent() at sun.reflect.GeneratedMethodAccessor718.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j
[jira] [Created] (AMBARI-25469) Bad UTF encoding on Alert listener receiver
Dmytro Vitiuk created AMBARI-25469: -- Summary: Bad UTF encoding on Alert listener receiver Key: AMBARI-25469 URL: https://issues.apache.org/jira/browse/AMBARI-25469 Project: Ambari Issue Type: Bug Components: ambari-agent Affects Versions: 2.7.5 Reporter: Dmytro Vitiuk Fix For: 2.7.6 The problem observed on gce cluster during testing of Ambari Kerberos slowness {code:java} 2020-01-29 09:42:37,550 ERROR [alert-event-bus-2] AmbariJpaLocalTxnInterceptor:188 - [DETAILED ERROR] Internal exception (1) : org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155) at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:132) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:892) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:964) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:633) at org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149) at org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatchedStatements(ParameterizedSQLBatchWritingMechanism.java:134) at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.writesCompleted(DatabaseAccessor.java:1845) at org.eclipse.persistence.internal.sessions.AbstractSession.writesCompleted(AbstractSession.java:4300) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.writesCompleted(UnitOfWorkImpl.java:5592) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.acquireWriteLocks(UnitOfWorkImpl.java:1646) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitTransactionAfterWriteChanges(UnitOfWorkImpl.java:1614) at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:285) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169) at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134) at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:153) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.saveEntities() at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener.onAlertEvent(AlertReceivedListener.java:388) at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.CGLIB$onAlertEvent$0() at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173$$FastClassByGuice$$3f418344.invoke() at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:76) at org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:44) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) at org.apache.ambari.server.events.listeners.alerts.AlertReceivedListener$$EnhancerByGuice$$c6d5f173.onAlertEvent() at sun.reflect.GeneratedMethodAccessor718.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87) at com.google.common.ev
[jira] [Commented] (AMBARI-25454) API exception on trying to assign permission to user group with custom Ambari Views
[ https://issues.apache.org/jira/browse/AMBARI-25454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026566#comment-17026566 ] Hudson commented on AMBARI-25454: - FAILURE: Integrated in Jenkins build Ambari-branch-2.7 #650 (See [https://builds.apache.org/job/Ambari-branch-2.7/650/]) AMBARI-25454 API exception on trying to assign permission to user group (hapy.lestat: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=bdb06b1299be0a5fafaf9c3f8eece70b002a6920]) * (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AmbariPrivilegeResourceProvider.java > API exception on trying to assign permission to user group with custom Ambari > Views > --- > > Key: AMBARI-25454 > URL: https://issues.apache.org/jira/browse/AMBARI-25454 > Project: Ambari > Issue Type: Bug > Components: ambari-server, ambari-views >Affects Versions: 2.6.0 >Reporter: Dmytro Grinenko >Assignee: Dmytro Grinenko >Priority: Major > Labels: pull-request-available > Fix For: 2.7.6 > > Time Spent: 20m > Remaining Estimate: 0h > > Issue appears when logic trying to fetch allowed statuses for the request > scope. The problem is that views are pushed to the request scope and have no > allowance to have Ambari admin permissions. > Here are several ways to solve the problem: > - do not include views for such kind of the request to the scope > - instead of failing, give a warning to the log, and if there are no objects > left in the scope, show to the user last warning in return > The less intrusive way is to done it in a second way as first way may change > the logic of how it currently work -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (AMBARI-25468) Kerberos keytab injection to the agent commands is slow
Dmytro Grinenko created AMBARI-25468: Summary: Kerberos keytab injection to the agent commands is slow Key: AMBARI-25468 URL: https://issues.apache.org/jira/browse/AMBARI-25468 Project: Ambari Issue Type: Bug Components: ambari-sever Affects Versions: 2.7.4 Reporter: Dmytro Grinenko Assignee: Dmytro Grinenko Fix For: 2.7.6 During test on a big cluster were found that refreshing keytabs operation takes a long amount of time. The result shows the slowness in injectKeytab operation caused at the AgentPublishCommands class. The estimation before looks like 54 mins in total: ~36 mins -> getKerberosDescriptor ~18 mins -> getClusterHostInfo -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (AMBARI-25454) API exception on trying to assign permission to user group with custom Ambari Views
[ https://issues.apache.org/jira/browse/AMBARI-25454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmytro Grinenko updated AMBARI-25454: - Resolution: Fixed Status: Resolved (was: Patch Available) > API exception on trying to assign permission to user group with custom Ambari > Views > --- > > Key: AMBARI-25454 > URL: https://issues.apache.org/jira/browse/AMBARI-25454 > Project: Ambari > Issue Type: Bug > Components: ambari-server, ambari-views >Affects Versions: 2.6.0 >Reporter: Dmytro Grinenko >Assignee: Dmytro Grinenko >Priority: Major > Labels: pull-request-available > Fix For: 2.7.6 > > Time Spent: 20m > Remaining Estimate: 0h > > Issue appears when logic trying to fetch allowed statuses for the request > scope. The problem is that views are pushed to the request scope and have no > allowance to have Ambari admin permissions. > Here are several ways to solve the problem: > - do not include views for such kind of the request to the scope > - instead of failing, give a warning to the log, and if there are no objects > left in the scope, show to the user last warning in return > The less intrusive way is to done it in a second way as first way may change > the logic of how it currently work -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Created] (AMBARI-25467) Ambari REST API "restart required services" fails
Matei C. created AMBARI-25467: - Summary: Ambari REST API "restart required services" fails Key: AMBARI-25467 URL: https://issues.apache.org/jira/browse/AMBARI-25467 Project: Ambari Issue Type: Bug Components: ambari-server Affects Versions: 2.7.3 Environment: {code:java} OS: Ubuntu 18.04.3, kernel v4.15.0-76-generic ambari-server/unknown,now 2.7.3.0-139 amd64 (installed from Hortownworks HDP3.1 repository.) curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3 {code} Reporter: Matei C. I've noticed that trying to restart all services with stale configs via the Ambari API does not work, although the HTTP response from the APi is "201 Created". E.g: {code:java} ### Services that have stale configs: localhost: ~$ curl -su "$ambari_user:$ambari_pass" -H "X-Requested-By:ambari" -X GET "http://localhost:8080/api/v1/clusters/DBDNE_FE/host_components?HostRoles/stale_configs=true"; | grep 'component_name' | sort -u "component_name" : "APP_TIMELINE_SERVER", "component_name" : "ATLAS_CLIENT", "component_name" : "ATLAS_SERVER", "component_name" : "NODEMANAGER", "component_name" : "OOZIE_CLIENT", "component_name" : "OOZIE_SERVER", "component_name" : "RANGER_ADMIN", "component_name" : "RANGER_KMS_SERVER", "component_name" : "RANGER_TAGSYNC", "component_name" : "RANGER_USERSYNC", "component_name" : "RESOURCEMANAGER", "component_name" : "TIMELINE_READER", "component_name" : "YARN_CLIENT", "component_name" : "YARN_REGISTRY_DNS", localhost: ~$ ### Trying to restart with the below API call localhost: ~$ curl -iu "$ambari_user:$ambari_pass" -H "X-Requested-By:ambari" -X POST -H "X-Requested-By: ambari" -X POST -d '{"RequestInfo":{"command":"RESTART","context":"Restart all required services","operati on_level":"host_component"},"Requests/resource_filters":[{"hosts_predicate":"HostRoles/stale_configs=true"}]}' 'http://localhost:8080/api/v1/clusters/DBDNE_FE/requests' HTTP/1.1 201 Created Date: Thu, 30 Jan 2020 08:22:16 GMT X-Frame-Options: DENY X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Cache-Control: no-store Pragma: no-cache Set-Cookie: AMBARISESSIONID=node0taut23atv88uv4ks5bj7ej4j1977.node0;Path=/;HttpOnly Expires: Thu, 01 Jan 1970 00:00:00 GMT User: admin Content-Type: text/plain;charset=utf-8 X-Content-Type-Options: nosniff Content-Length: 0 localhost: ~$ {code} If I check my "ambari-server.log", I see it's complaing about a missing cluster name, which is supplied in the API call URL. *** I could not find any relevant official documentation on this specific API call so maybe it's not correct. *** {code:java} 2020-01-30 08:22:16,533 WARN [ambari-client-thread-4169] RequestResourceProvider:606 - Exception finding requested resources with serviceName = null, componentName = null, hostPredicate = HostRoles/stale_configs=true java.lang.IllegalArgumentException: Invalid arguments, cluster name should not be null at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getHostComponents(AmbariManagementControllerImpl.java:1262) at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getHostComponents(AmbariManagementControllerImpl.java:3812) at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getHostComponents(AmbariManagementControllerImpl.java:3801) at org.apache.ambari.server.controller.internal.HostComponentResourceProvider$2.invoke(HostComponentResourceProvider.java:260) at org.apache.ambari.server.controller.internal.HostComponentResourceProvider$2.invoke(HostComponentResourceProvider.java:257) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.getResources(AbstractResourceProvider.java:317) at org.apache.ambari.server.controller.internal.HostComponentResourceProvider.findResources(HostComponentResourceProvider.java:257) at org.apache.ambari.server.controller.internal.HostComponentResourceProvider.getResources(HostComponentResourceProvider.java:233) at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper.queryForResources(ClusterControllerImpl.java:965) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(ClusterControllerImpl.java:139) at org.apache.ambari.server.controller.internal.RequestResourceProvider.parseRequestResourceFilter(RequestResourceProvider.java:572) at org.apache.ambari.server.controller.internal.RequestResourceProvider.getActionRequest(RequestResourceProvider.java:497) at org.apache.ambari.server.controller.internal.RequestResourceProvider.createResources(RequestResourceProvider.java:209) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:296) at org.apache.ambari.server.api.
[jira] [Updated] (AMBARI-25465) Postgresql service naming convention changed on SUSE 12 SP2
[ https://issues.apache.org/jira/browse/AMBARI-25465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Szilard Antal updated AMBARI-25465: --- Status: Patch Available (was: In Progress) > Postgresql service naming convention changed on SUSE 12 SP2 > --- > > Key: AMBARI-25465 > URL: https://issues.apache.org/jira/browse/AMBARI-25465 > Project: Ambari > Issue Type: Bug > Components: ambari-server >Affects Versions: 2.7.4, 2.7.5 >Reporter: Szilard Antal >Assignee: Szilard Antal >Priority: Major > Labels: pull-request-available > Fix For: 2.7.6 > > Time Spent: 10m > Remaining Estimate: 0h > > Ambari server setup is failing to succeed when being initiated on Suse 12 SP2 > operating system. > The new installation of pgsql 9.6 creates > "/usr/lib/systemd/system/postgresql-9.6.service" instead of > "/usr/lib/systemd/system/postgresql.service". > This was handled for Redhat previously but due to this > [wiki|https://wiki.postgresql.org/wiki/Zypper_Installation] site the same fix > is needed on SLES 12 as well. -- This message was sent by Atlassian Jira (v8.3.4#803005)