Skip to content

Commit

Permalink
Fix SMB producer compatibility issues (#4667)
Browse files Browse the repository at this point in the history
* Fix SMB producer compatibility issues

* Set smb compatibility test same as 0.11

* Keep old compat check

* Restore test for compatibility check

* javafmt

Co-authored-by: Michel Davit <[email protected]>
  • Loading branch information
clairemcginty and RustedBones authored Jan 25, 2023
1 parent 340509f commit dcaac2b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "type")
public abstract class BucketMetadata<K1, K2, V> implements Serializable, HasDisplayData {

@JsonIgnore public static final int CURRENT_VERSION = 1;
/**
* The VERSION parameter is included in the metadata.json file for every SMB. Take extreme care in
* bumping version: Scio versions prior to 0.12.1 perform a version compatibility check on SMB
* partitions which may fail if the SMB producer bumps to an incompatible version.
*
* <p>The next version bump should be to: 2
*/
@JsonIgnore public static final int CURRENT_VERSION = 0;

// Represents the current major version of the Beam SMB module. Storage format may differ
// across versions and require internal code branching to ensure backwards compatibility.
Expand Down

0 comments on commit dcaac2b

Please sign in to comment.