[c.t.t.indexing.dao.UserIndexDaoImpl] Update index failed due to: Not able to create index row. A manual re-index is recommended.
com.querydsl.core.QueryException: Caught BatchUpdateException for insert into "Jira_BugTrack"."AO_AEFED0_USER_INDEX" ("UNIQUE_KEY", "USER_KEY", "USER_NAME", "DISPLAY_NAME", "ACTIVE", "EMAIL", "ROLE_ID", "ROLE_NAME", "TEAM_ID", "TEAM_NAME", "FROM_DATE", "TO_DATE", "MEMBERSHIP_ID") values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
at com.querydsl.sql.support.JavaSE7SQLExceptionWrapper.wrap(JavaSE7SQLExceptionWrapper.java:41)
at com.querydsl.sql.DefaultSQLExceptionTranslator.translate(DefaultSQLExceptionTranslator.java:48)
at com.querydsl.sql.Configuration.translate(Configuration.java:459)
at com.querydsl.sql.dml.SQLInsertClause.execute(SQLInsertClause.java:445)
at com.tempoplugin.team.indexing.dao.UserIndexDaoImpl.lambdacreateRows0(UserIndexDaoImpl.java:79)
at com.atlassian.pocketknife.internal.querydsl.DatabaseAccessorImpl.lambdaexecute0(DatabaseAccessorImpl.java:69)
at com.atlassian.sal.core.rdbms.DefaultTransactionalExecutor.executeInternal(DefaultTransactionalExecutor.java:87)
at com.atlassian.sal.core.rdbms.DefaultTransactionalExecutor.lambda0(DefaultTransactionalExecutor.java:43)
at com.atlassian.jira.database.DatabaseAccessorImpl.runInManagedTransaction(DatabaseAccessorImpl.java:131)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
at com.sun.proxy.DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:130)
at com.sun.proxy.000(TransactionalProxy.java:18)
at com.atlassian.activeobjects.tx.TransactionalProxy1.doInTransaction(HostContextTransactionTemplate.java:21)
at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:50)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
at com.sun.proxy.DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:130)
at com.sun.proxy.Proxy1274.execute(Unknown Source)
at com.atlassian.activeobjects.internal.SalTransactionManager.inTransaction(SalTransactionManager.java:42)
at com.atlassian.activeobjects.internal.AbstractLoggingTransactionManager.doInTransaction(AbstractLoggingTransactionManager.java:16)
at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.executeInTransaction(EntityManagedActiveObjects.java:214)
at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects.executeInTransaction(TenantAwareActiveObjects.java:342)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:137)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:137)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.Proxy3569.createRow(Unknown Source)
at com.tempoplugin.team.indexing.UserIndexWriteServiceImpl.updateIndexOnUserReCreated(UserIndexWriteServiceImpl.java:196)
at com.tempoplugin.team.indexing.listeners.TempoUserEventListenerImpl.onUserUpdatedEvent(TempoUserEventListenerImpl.java:65)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:42)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.lambda0(AsynchronousAbleEventDispatcher.java:37)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:85)
at com.atlassian.event.internal.LockFreeEventPublishersynchroniseStatementInvocationHandler.invoke(JdbcWrapper.java:142)
at net.bull.javamelody.JdbcWrapperProxy4421.executeBatch(Unknown Source)
at com.atlassian.jira.ofbiz.sql.StatementWrapper.executeBatch(StatementWrapper.java:154)
at com.atlassian.jira.diagnostic.connection.DiagnosticPreparedStatement.lambda17(DiagnosticPreparedStatement.java:146)
at com.atlassian.diagnostics.internal.platform.monitor.db.DefaultDatabaseDiagnosticsCollector.recordExecutionTime(DefaultDatabaseDiagnosticsCollector.java:70)
at com.atlassian.jira.diagnostic.connection.DatabaseDiagnosticsCollectorDelegate.recordExecutionTime(DatabaseDiagnosticsCollectorDelegate.java:55)
at com.atlassian.jira.diagnostic.connection.DiagnosticPreparedStatement.executeBatch(DiagnosticPreparedStatement.java:146)
at com.querydsl.sql.dml.AbstractSQLClause.executeBatch(AbstractSQLClause.java:192)
at com.querydsl.sql.dml.AbstractSQLClause.executeBatch(AbstractSQLClause.java:202)
at com.querydsl.sql.dml.SQLInsertClause.execute(SQLInsertClause.java:439)
... 125 more
Caused by: java.sql.BatchUpdateException: Data truncation
at net.sourceforge.jtds.jdbc.JtdsStatement.executeBatch(JtdsStatement.java:947)
at org.apache.tomcat.dbcp.dbcp2.DelegatingStatement.executeBatch(DelegatingStatement.java:241)
at org.apache.tomcat.dbcp.dbcp2.DelegatingStatement.executeBatch(DelegatingStatement.java:241)
at sun.reflect.GeneratedMethodAccessor1175.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at net.bull.javamelody.JdbcWrapper.doExecute(JdbcWrapper.java:422)
at net.bull.javamelody.JdbcWrapperDelegatingInvocationHandler.invoke(JdbcWrapper.java:300)
at com.sun.proxy.executeBatch$17(DiagnosticPreparedStatement.java:146)
at com.atlassian.diagnostics.internal.platform.monitor.db.DefaultDatabaseDiagnosticsCollector.recordExecutionTime(DefaultDatabaseDiagnosticsCollector.java:70)
at com.atlassian.jira.diagnostic.connection.DatabaseDiagnosticsCollectorDelegate.recordExecutionTime(DatabaseDiagnosticsCollectorDelegate.java:55)
at com.atlassian.jira.diagnostic.connection.DiagnosticPreparedStatement.executeBatch(DiagnosticPreparedStatement.java:146)
at com.querydsl.sql.dml.AbstractSQLClause.executeBatch(AbstractSQLClause.java:192)
at com.querydsl.sql.dml.AbstractSQLClause.executeBatch(AbstractSQLClause.java:202)
at com.querydsl.sql.dml.SQLInsertClause.execute(SQLInsertClause.java:439)
... 125 more
Assistant
User
данная ошибка появляется в jira server 8.5 при синхронизации с AD. Из-за нее сломалось отображение work log в командах Tempo
Assistant
Если у вас возникла ошибка при синхронизации Jira Server 8.5 с Active Directory, и это, в свою очередь, повлияло на отображение рабочего журнала в Tempo Teams, рекомендуется предпринять следующие шаги для устранения проблемы:
The error message provided indicates a failure in updating an index due to a database-related issue when trying to insert new data into a table. Here's a breakdown of the key points and possible steps to resolve the issue:
Key Points:
Error Type: The primary error is an Arithmetic overflow error converting IDENTITY to data type int, which suggests that there was an attempt to generate an identity value (likely a primary key or auto-increment field) that exceeded the allowed numeric range for an integer.
SQL Operation: The failing operation was an INSERT statement attempting to write data to the AO_AEFED0_USER_INDEX table.
Batch Operation: The operation was part of a batch update, and the error also mentions Data truncation, which implies that some data might not fit into the defined database columns (e.g., a string being too long for its column).
Possible Causes:
Identity Field Issue: The identity field (auto-increment) in the database table might have reached its maximum value. This could happen if the field was defined as an int and reached the maximum positive value storable in an integer (usually 2,147,483,647 for a signed 32-bit integer).
Data Truncation: Fields in the table being too small for the incoming data, possibly due to changes in the data model not being applied to the database schema (e.g., a VARCHAR column not updated to support longer strings).
Troubleshooting and Resolution Steps:
Database Schema Check:
Verify the schema of the AO_AEFED0_USER_INDEX table to ensure that the identity field is appropriately defined (e.g., using a BIGINT instead of INT if a larger range is needed).
Inspect the length of other fields (e.g., USER_NAME, EMAIL) to ensure they can accommodate the incoming data.
Data Audit:
Examine the data that was being inserted to identify potential issues with size or invalid data types.
Manual Re-index:
As suggested in the error, a manual re-index of the affected data may be necessary. Depending on your application and database, this process might involve rebuilding indexes to ensure consistency and performance optimization.
DEBUG Logs:
Use more detailed logging on your application to capture the exact data causing the error to help pinpoint the source of the problem.
Database Maintenance:
Once identified, the identity column can be reset or adjusted as needed (ensure backups are in place before making such changes).
Consult Documentation/Support:
If possible, consult the documentation or support from the application provider for specific guidance on dealing with similar database errors.
Additional Precaution:
If altering primary keys or identity configurations, understand the impact on related tables and ensure that any changes do not disrupt referential integrity or application logic involving the affected tables.
By addressing these points, you should be able to diagnose and resolve the issue that is preventing the index update process from succeeding.
Проверка Логов:
Обратите внимание на другие логи Jira, чтобы увидеть дополнительные сообщения об ошибках или предупреждения, которые могут указать на проблему. Ищите файлы типа atlassian-jira.log или tempo.log.
Подтверждение Настроек Синхронизации:
Проверьте настройки синхронизации с AD в Jira, чтобы убедиться, что они не были случайно изменены, и соответствуют конфигурации вашего Active Directory.
Убедитесь, что учетные данные, используемые для подключения к AD, действительны и имеют все необходимые права для доступа к пользовательским данным.
Проверка Конфигурации Таблицы:
Проверьте конфигурацию таблиц в базе данных, связанных с Tempo и синхронизацией пользователей, на предмет соответствия ожидаемым данным.
Посмотрите, нет ли ошибок в таблицах, например, если некоторые данные не помещаются в заданные столбцы.
Пересоздание Индексов:
Проведите процесс ручного пересоздания индексов для Jira и Tempo. Это может подтвердить целостность данных и устранить проблемы, связанные с индексами.
Используйте встроенные инструменты Jira для пересоздания индексов, такие как интерфейс администрирования Jira.
Обновление Jira и Tempo:
Убедитесь, что вы используете последнюю версию Tempo, совместимую с Jira 8.5.
Рассмотрите возможность обновления Jira до последней версии, если это подтвердит ваши анализ и документация.
Консультация с Поддержкой:
Если проблема сохраняется, обратитесь в службу поддержки Atlassian, предоставив как можно больше информации о вашей текущей конфигурации и возникающих ошибках, включая журналы и экспортированные настройки.
Тестирование в Безопасной Среде:
Постарайтесь воспроизвести проблему в тестовой среде, чтобы подтвердить изменения и исправления, прежде чем вносить их в рабочую систему.
Эти шаги помогут вам локализовать и исправить проблемы, связанные с синхронизацией и отображением данных в системе Jira.