Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.2, 1.1.3
    • 1.1.4
    • protocol
    • None

    Description

      When I try to save any entity it works fine and the entity gets saved to the database. When the entity is retrieved using ReactiveCrudRepository it throws MappingException with the latest version of r2dbc-mariadb.
      This works fine with older version of the r2dbc-mariadb jar.

      Logs attached.

      _mariadb version 10.10
      Affected versions r2dbc-mariadb 1.1.2, 1.1.3.
      It works fine with the r2dbc version 1.0.3_

      Attachments

        Activity

          diego dupin Diego Dupin added a comment -

          There seems to be some decoding position error. I've not been able to reproduced the issue for now.
          Have you the possibility to have a wireshark log for that exchange or enable log level of "org.mariadb.r2dbc" to trace ?

          diego dupin Diego Dupin added a comment - There seems to be some decoding position error. I've not been able to reproduced the issue for now. Have you the possibility to have a wireshark log for that exchange or enable log level of "org.mariadb.r2dbc" to trace ?
          diego dupin Diego Dupin added a comment -

          In case logs cannot be enable, query and table(s) DDL would help, because LocalDate decoder is accurate, so i wonder if that can be a wrong position due to previous value wrong decoding

          diego dupin Diego Dupin added a comment - In case logs cannot be enable, query and table(s) DDL would help, because LocalDate decoder is accurate, so i wonder if that can be a wrong position due to previous value wrong decoding
          sridharib Sridhar Iyer added a comment -

          Thanks Deigo. I have attached the trace log (error_trace.txt).

          sridharib Sridhar Iyer added a comment - Thanks Deigo. I have attached the trace log (error_trace.txt).
          diego dupin Diego Dupin added a comment -

          ok, thanks for logs, that has permit to identify the issue.

          problem is after reading a MEDIUM value driver leave a resultset pointer in a bad shape : MEDIUM are encoded on 3 bytes server side, but protocol send them in 4 bytes in exchange when using binary protocol.
          This remaining byte is actually not read, making other reads on same row completly wrong.

          this is corrected with https://github.com/mariadb-corporation/mariadb-connector-r2dbc/commit/08b3e06011c7274fe5a6325e5a15e12cf1f38c0f
          correction is available using SNAPSHOT on maven :

          <repositories>
              <repository>
                  <id>sonatype-nexus-snapshots</id>
                  <name>Sonatype Nexus Snapshots</name>
                  <url>https://oss.sonatype.org/content/repositories/snapshots</url>
              </repository>
          </repositories>
           
          <dependencies>
              <dependency>
                  <groupId>org.mariadb</groupId>
                  <artifactId>r2dbc-mariadb</artifactId>
                  <version>1.1.4-SNAPSHOT</version>
              </dependency>
          </dependencies>
          
          

          diego dupin Diego Dupin added a comment - ok, thanks for logs, that has permit to identify the issue. problem is after reading a MEDIUM value driver leave a resultset pointer in a bad shape : MEDIUM are encoded on 3 bytes server side, but protocol send them in 4 bytes in exchange when using binary protocol. This remaining byte is actually not read, making other reads on same row completly wrong. this is corrected with https://github.com/mariadb-corporation/mariadb-connector-r2dbc/commit/08b3e06011c7274fe5a6325e5a15e12cf1f38c0f correction is available using SNAPSHOT on maven : <repositories> <repository> <id>sonatype-nexus-snapshots</id> <name>Sonatype Nexus Snapshots</name> <url>https: //oss.sonatype.org/content/repositories/snapshots</url> </repository> </repositories>   <dependencies> <dependency> <groupId>org.mariadb</groupId> <artifactId>r2dbc-mariadb</artifactId> <version> 1.1 . 4 -SNAPSHOT</version> </dependency> </dependencies>

          People

            diego dupin Diego Dupin
            sridharib Sridhar Iyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.5d
                0.5d

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.