----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/75350/#review227205 -----------------------------------------------------------
security-admin/src/main/java/org/apache/ranger/patch/cliutil/TrxLogV2MigrationUtil.java Lines 120 (patched) <https://reviews.apache.org/r/75350/#comment315441> createNamedQuery() doesn't seem the correct method, since a SQL statement is provided as the name. Shouldn't this be createNativeQuery() instead? - Madhan Neethiraj On Jan. 30, 2025, 1:49 p.m., Rakesh Gupta wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/75350/ > ----------------------------------------------------------- > > (Updated Jan. 30, 2025, 1:49 p.m.) > > > Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay > Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, > sanket shelar, Sailaja Polavarapu, and Velmurugan Periasamy. > > > Bugs: RANGER-5123 > https://issues.apache.org/jira/browse/RANGER-5123 > > > Repository: ranger > > > Description > ------- > > Fix the transaction log migration failure when executing > ranger-admin-transaction-log-migrate.sh on a fresh setup by checking for the > existence of the x_trx_log table before execution, ensuring a successful > migration. > > > Diffs > ----- > > distro/src/main/assembly/admin-web.xml 748632809 > embeddedwebserver/scripts/ranger-admin-transaction-log-migrate.sh > > security-admin/src/main/java/org/apache/ranger/patch/cliutil/TrxLogV2MigrationUtil.java > bb8ba0b0b > > > Diff: https://reviews.apache.org/r/75350/diff/3/ > > > Testing > ------- > > The ranger-admin-transaction-log-migrate.sh script has been tested and > verified to check for the x_trx_log table's existence, handling both missing > and existing tables without failure, ensuring successful migration. > > > Thanks, > > Rakesh Gupta > >